Saturday, October 2, 2021

Get BGP uptime in seconds Cisco

I'm trying to pull the BGP neighbour uptime in seconds via Python. From the output of the cli commands "show ip bgp neigh" it puts it in human readable format e.g.

BGP state = Established, up for 3w0d

Does anybody know of a way to get this value via cli output in seconds?

Thanks



No comments:

Post a Comment