Python script to print *useful* CDP neighbor information; one line per neighbor
I wanted a way to print a CDP brief on NXOS switches to list each neighbor's local interface, neighbor interface, hostname, and IP addresses (mgmt or otherwise).
Requires python on box; tested with N7710 running 8.3.2 and N950(4|8) running 7.0(3)I7(6).
Example from N9K: https://i.imgur.com/s74rgI9.png
Github: https://github.com/derek-shnosh/network-code/tree/master/python
Ninj-edit: Supports multiple neighbors per interface for situations where dumb-switches are forwarding CDP information blindly.
Posted Oct 15, 2019, 8:24 PM UTC · edited
le gasp! NXOS can run python?
Man I need to test this out.
Thanks for coming up with this tool and delivering knowledge to my eyeballs XD
So can Nexus 3/5/7k
So can isr4k i hear. Just getting in to network automation...... pretty frickin cool if u ask me!
I agree!