[c-nsp] NXOS output numeric

Drew Weaver drew.weaver at thenap.com
Fri Oct 9 12:02:42 EDT 2020


I had a quick question regarding NXOS, is there any way to run a command and have it output numerically only?

Like instead of:

"eth_link_flapped": "5week(s) 1day(s)"

In sh int eth1/45 | json

It would show a normal easily parsed number? For instance the number of seconds since the last time the link flapped?

If not are there any helper libraries for python that you guys have found that can handle these sorts of things before I create one?


More information about the cisco-nsp mailing list