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

live-status error

suvdeshm
Cisco Employee
Cisco Employee

I am getting this error for reading config with live-status command in python code. Device is ios-xe C9500-24Y4C.

action_input = device.live_status.cisco_ios_stats__exec["show"].get_input()

  File "/opt/ncs/ncs-5.6.4/src/ncs/pyapi/ncs/maagic.py", line 478, in __getattr__

    super(Node, self).__getattribute__(name)

AttributeError: 'Container' object has no attribute 'cisco_ios_stats__exec'

1 Accepted Solution

Accepted Solutions

suvdeshm
Cisco Employee
Cisco Employee

I resolved this -

It was supposed to be :

action_input = device.live_status.ios_stats__exec[command].get_input()

View solution in original post

1 Reply 1

suvdeshm
Cisco Employee
Cisco Employee

I resolved this -

It was supposed to be :

action_input = device.live_status.ios_stats__exec[command].get_input()