cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
200
Views
0
Helpful
1
Replies
Highlighted
Cisco Employee

Couldn't able to print NSO variables or objects

In [29]: list(root.kicker__kickers.data_kicker)
---------------------------------------------------------------------------
Error Traceback (most recent call last)
<ipython-input-29-896aaac1edfe> in <module>
----> 1 list(root.kicker__kickers.data_kicker)

/opt/ncs/current/src/ncs/pyapi/ncs/maagic.py in __len__(self)
1072 """
1073 if self._backend:
-> 1074 return self._backend._num_instances(self._path)
1075 else:
1076 return len(self._cache)

/opt/ncs/current/src/ncs/pyapi/ncs/maagic.py in _num_instances(self, path)
131
132 def _num_instances(self, path):
--> 133 return self.num_instances(path)
134
135 def _cursor(self, path, enum_cs_nodes, want_values,

/opt/ncs/current/src/ncs/pyapi/ncs/maapi.py in proxy(self2, *args, **kwargs)
1202 else:
1203 real = getattr(_tm.maapi, name)
-> 1204 return real(self2.maapi.msock, self2.th, *args, **kwargs)
1205 setattr(Transaction, name, proxy)
1206 return getattr(self, name)

Error: system call failed (24): Failed to write 54 bytes to ConfD: Bad file descriptor

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

Looks like the transaction closed, and you are trying to fetch something from CDB after the transaction is closed.

View solution in original post

1 REPLY 1
Highlighted
Cisco Employee

Looks like the transaction closed, and you are trying to fetch something from CDB after the transaction is closed.

View solution in original post