Interesting thought: I wonder if I could pull the spanning tree tables off my switches via SNMP and use them to build a database of port to MAC connections. I already have a table of all the user workstations' MAC addresses.
>>> Andrew Gallo
akg1330@xxxxxxxxx> 01/22/2010 08:47 >>....
Two options I see:
Make a matrix of mac addresses to jack number/office numbers and then
look at the switch's CAM table. You'll then see what port goes to what
office.
If the switch is running spanning tree, you could sniff each port and
look at the source MAC of the BPDU. This should be the MAC address of
the connected switchport.