Power Connect SNMP
Lots of info is available via SNMP from the PowerConnects
snmpwalk -c COMMUNITY -v 1 SWITCHIP 126.96.36.199.188.8.131.52.184.108.40.206.2
Where COMMUNITY and SWITCHIP are replaced with appropriate values.
Dump the MACs per port
The MACs are reported by VLAN with their associated port. There info is backwards from what we want...
SNMPv2-SMI::mib-220.127.116.11.18.104.22.168.2901 = Counter32: 388
SNMPv2-SMI::mib-22.214.171.124.126.96.36.199.2901.0.4.150.30.52.96 = INTEGER: 51
SNMPv2-SMI::mib-188.8.131.52.184.108.40.206.2901.0.4.226.215.60.192 = INTEGER: 156
SNMPv2-SMI::mib-220.127.116.11.18.104.22.168.2901.0.6.103.32.190.214 = INTEGER: 252
SNMPv2-SMI::mib-22.214.171.124.126.96.36.199.2901.0.12.41.154.51.190 = INTEGER: 156
SNMPv2-SMI::mib-188.8.131.52.184.108.40.206.2901.0.12.41.162.29.6 = INTEGER: 156
SNMPv2-SMI::mib-220.127.116.11.18.104.22.168.2901.0.12.41.175.131.50 = INTEGER: 8
The first line above seems to say that 388 MACs are know on the 2901 VLAN (seems reasonable).
The second line says MAC 0.4.150.30.52.96 is on port 51. In hex this is 00:04:96:1E:34:60, which is correct for the 3rd XGE port on unit 1.
Note that for v2 (changed in v3?) of the 6248 software, the MACs are in Q-BRIDGE-MIB which is unlike most other switches and so the MAC reporting doesn't work with tools that are made for the CISCO MIBs.
- 20 Aug 2009