The dot1qTpFdbTable (mib-2.17.7.1.2.2) contains the information regarding the MAC addresses learned the switch. The dot1qTpFdbPort OID (mib-2.17.7.1.2.2.1.2) lists the bridge address table. When you walk this OID, the values returned represent the MAC addresses in decimal form. You need to convert the last 6 decimal values to hex to get the MAC address. The INTEGER value is the port number on which the address was learned.
I tried this on both Dell powerconnect 3448 and 5324. They both works as for example:
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.1.0.15.31.252.154.80 = INTEGER: 49
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.13.0.4.35.177.250.198 = INTEGER: 49
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.13.0.4.35.177.250.210 = INTEGER: 49
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.13.0.12.41.68.152.140 = INTEGER: 49
The number before the last 6 numbers(MAC) is the vlan number.

Post new comment