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

Can one subscribe to ncs-state ?

rrivasfe
Cisco Employee
Cisco Employee

Hi ,

 

I am trying to subscribe to operational container  

/tfnm:ncs-state/

I wonder if i can subscribe to this operational container. Appreciate the help. 

1 Reply 1

u.avsec
Spotlight
Spotlight

Same problem so I won't open a new thread, just bump this one.

I have an OperSubscriber like this:

    def init(self):
        self.register('/tfnm:ncs-state/ha/mode', priority=100)

and the error I'm getting is:

_ncs.error.Error: badly formatted or nonexistent path (8): Not a cdb path: /ncs-state

 

At the same time I can easily pull the data with maapi like this:

with ncs.maapi.single_read_trans('admin', 'system') as trans:
    root = ncs.maagic.get_root(trans)
    print(root.tfnm__ncs_state.ha.mode)

Any ideas why it is so?

 

EDIT:

Solved my issue the other way around by creating notification listener for _ncs.events NOTIF_HA_INFO

Polls
AI-powered tools for network troubleshooting are likely to be part of everyone’s workflow sooner or later. What is the single biggest challenge or concern you see with adopting these tools in your organization?