Hi All,
I am trying to do this scripted ,hence the use of snmpwalk. On the Nortel/Baystacks I can get the port->MAC association
and then write it to a DB so I can have a web page to look up on what switch and port this MAC is. What I need from you is the MIBS that ave the port that the MAC is on.
these are th ones on a Nortel/Baystack
.1.3.6.1.2.1.17.4.3.1.1 dot1dTpFdbAddress
and
.1.3.6.1.2.1.17.4.3.1.2 dot1dTpFdbPort
is there a similar set on juniper srx-100 srx-250?
Command to list all MACS on Switch
snmpwalk -v 2c -c public 172.17.136.1 .1.3.6.1.2.1.17.4.3.1.1 | awk '{print $1 "," $4 $5 $6 $7 $8 $9}'
.
.
.
SNMPv2-SMI::mib-2.17.4.3.1.1.244.206.70.58.203.14,F4CE463ACB0E
Command to list what Port that specific mac is on:
snmpwalk -v 2c -c public 172.17.136.1 .1.3.6.1.2.1.17.4.3.1.2 | awk '{print $1 "," $4}'|grep 244.206.70.58.203.14
SNMPv2-SMI::mib-2.17.4.3.1.2.244.206.70.58.203.14,17
SNMPv2-SMI::mib-2.17.4.3.1.1.244.206.70.58.203.14,F4CE463ACB0E
| |
SNMPv2-SMI::mib-2.17.4.3.1.2.244.206.70.58.203.14,17
see how 244.206.70.58.203.14 links MAC:F4CE463ACB0E -> Port:17