Mailing List Archive

NXOS output numeric
Howdy,

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?

Thanks,
-Drew

_______________________________________________
cisco-nsp mailing list cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
Re: NXOS output numeric [ In reply to ]
Aloha,

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

[...]

> 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?

Why going thru CLI Text representation when you can read out the
corresponding snmp variable/counter ?

OK it should be fun to be able to read that more directly from the embedded
linutz ...

Just my 0.01 $

Juergen.


_______________________________________________
cisco-nsp mailing list cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/