Description:
This utility shows what is connected to which ports of an ethernet switch.
It uses SNMP to query the bridge MIB to get MAC addresses and map them to
ports. It then gets mappings from port number to ifIndex and thence to
interface names (either ifName or ifDescr). Then it looks in the data
from arpwatch, if available, and in /proc/net/dev to get MAC to IP# mappings.
Finally, it shows what is on which port.
It's used by macinfo.cgi to make this information available
on a web-page, and update-switch-ports to update the descriptions of switch
ports with the name of the host on that port.
[