cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
828
Views
0
Helpful
1
Replies

Couldn't able to print NSO variables or objects

kiran kotari
Cisco Employee
Cisco Employee

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

kiran kotari
Cisco Employee
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

kiran kotari
Cisco Employee
Cisco Employee

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: