I'm working on a network automation project. I'm writing a python script that will remotely scan Ubuntu servers and network switches and then do its best to reconstruct the network's physical topology in a diagram. I think the script can do this, like so: For every Ubuntu server, make a list of the server's physical interfaces. If an interface is UP/UP, note its MAC address. For every network switch, examine all UP/UP ports that could be...
Originally asked by Pete on Stack Exchange (askubuntu) (CC BY-SA 4.0).