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

How to provide quit in ios-xr live-status command

schallagalla
Level 1
Level 1

Hi All,

 

I need to get the interface utilization from cisco ios xr router. I am trying to run a command which gives utilization. But as it is a terminal command, need to enter 'q' after running the command

 

Output from device: 

RP/0/RP0/CPU0:xr#monitor interface HundredGigE 0/0/0/1
Tue Feb 11 16:24:47.109 
xr Monitor Time: 00:00:02 SysUptime: 5837:06:10


HundredGigE0/0/0/1 is up, line protocol is up
Encapsulation ARPA 

...........

Output Bytes: 184972156916 7982
Output Kbps (rate): 40 ( 0%)

Errors Stats:

...

Quit='q', Freeze='f', Thaw='t', Clear='c', Interface='i',
Next='n', Prev='p'

Brief='b', Detail='d', Protocol(IPv4/IPv6)='r'

 

 

For this, i am trying to run live-status command which is hanging as expected, as it needs to be prompted with q.

 

request devices device xr  live-status exec any args "monitor interface HundredGigE 0/0/0/1 | prompts q"

 

Which is unsuccessful, how to provide quit(or q) to live status command, so that i can implement the same in python api aswell.

 

Thanks in advance.

 

0 Replies 0