MJL85 / natlas

natlas - Network Discovery and Auto-Diagramming
GNU General Public License v2.0
511 stars 110 forks source link

Enhancement Request: show end devices #21

Open coec opened 7 years ago

coec commented 7 years ago

Would be awesome if mnet could show the access port that end devices (servers, printers, etc) are connected on.

refriedjello commented 7 years ago

The script right now is meant to pull information via LLDP/CDP so if the device supports that, it would be possible.

If the end device does not, how would mnet know what device is connected? It could be possible to pull via port description or (more intensively) a OUI vendor lookup.

Your idea is related a bit to one of mine - a way to set more constraints of what is included in the topo table and graph. For instance, I would like to poll all devices up to a depth of 10 lets say, but only include them if their hostname matches a certain regex.

coec commented 7 years ago

Hi and thanks for the really quick response

I was thinking that if the port was an access port, then use the ARP table on the appropriate L3 device to match the CAM on the switch, then do a DNS lookup to resolve the IP to a name.

My python skills are pretty much non-existent or I'd have a go at a patch.

This is an amazing script BTW, almost exactly what I was looking for

Thanks for sharing.

CC