03-22-2004 01:31 AM - edited 03-02-2019 02:27 PM
I Have made a program that reads the MAC table of more than 300 switches.
Now i use community indexing to read de MAC table but it takes more than 1 min. to read the MAC table of 1 switch... (thus too long)
Is it possible to read the MAC table on a diverant way.
I thinking of
- Event driven, But i think that the switch do not support this.
- reading MAC info per port base (because i only need the MAC info on the port and not per Vlan)
03-22-2004 07:36 AM
There are three steps involved.
1) get ifIndex of the port
snmpwalk -c public
IF-MIB::ifName.101 = STRING: 4/1
2) get portIndex based on ifIndex
snmpwalk -c public
BRIDGE-MIB::dot1dBasePortIfIndex.385 = INTEGER: 101
3) get the MAC based on portIndex
snmpwalk -c public 14.32.6.12 dot1dTpFdbPort | grep 385
BRIDGE-MIB::dot1dTpFdbPort.0.2.185.144.76.102 = INTEGER: 385
BRIDGE-MIB::dot1dTpFdbPort.0.16.13.56.16.0 = INTEGER: 385
BRIDGE-MIB::dot1dTpFdbPort.0.96.84.144.248.0 = INTEGER: 385
BRIDGE-MIB::dot1dTpFdbPort.0.144.43.69.138.255 = INTEGER: 385
12-05-2017 08:44 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide