Unsolved
This post is more than 5 years old
16 Posts
0
28475
OID To retrieve dynamic address database?
I was going to right a script to snmpwalk our 3348 and 3448 switches dynamic address databases for when we have a rogue MAC address on our LAN in order to find out where it is.
Does someone know the OID for this on those switches, or if that's even what I need to accomplish this?
Thanks for the help.
Does someone know the OID for this on those switches, or if that's even what I need to accomplish this?
Thanks for the help.
Message Edited by JPLaflamme on 11-06-2006 09:34 AM
Mithrilhall
128 Posts
0
November 6th, 2006 14:00
This will give you the "show bridge address-table".
Here's an example of something you might see:
OID Value
dot1qTpFdbPort.391.0.15.31.33.109.17 2
Take the OID after 391 and that's the MAC address...it just needs to be converted.
The value is the port the MAC address is on.
Message Edited by Mithrilhall on 11-06-2006 10:35 AM
Message Edited by Mithrilhall on 11-06-2006 10:36 AM
Mithrilhall
128 Posts
0
November 6th, 2006 14:00
.1.3.6.1.2.1.17.7.1.2.2.1.2
JPLaflamme
16 Posts
0
November 6th, 2006 14:00
The dynamic addresses seem to start at .1.3.6.1.2.1.17.4.3.1.1.0.
How do I find the port associated with the MAC address?
JPLaflamme
16 Posts
0
November 6th, 2006 15:00
I found that using snmpwalk in Linux on the OID .1.3.6.1.2.1.17.4.3.1.1 returns all the MACS in the database (in hex) but no ports.
Message Edited by JPLaflamme on 11-06-2006 11:13 AM
Mithrilhall
128 Posts
0
November 6th, 2006 15:00
JPLaflamme
16 Posts
0
November 6th, 2006 15:00
I guess when I see "INTEGER: 3" that means port 1/G1?
Seems to work much better/faster on the 3348 than the 3448
Message Edited by JPLaflamme on 11-06-2006 11:56 AM
Mithrilhall
128 Posts
0
November 6th, 2006 15:00
I thought you had posted 3348. Let me check what I have for 3448.
JPLaflamme
16 Posts
0
November 6th, 2006 15:00
JPLaflamme
16 Posts
0
November 6th, 2006 15:00
Mithrilhall
128 Posts
0
November 6th, 2006 15:00
Mithrilhall
128 Posts
0
November 6th, 2006 16:00
I also see vlans in the data.
Message Edited by Mithrilhall on 11-06-2006 12:01 PM
Mithrilhall
128 Posts
0
November 6th, 2006 16:00
I wrote some custom pages to turn ports on/off via snmp. Now I'm working on saving the running configuration to the startup configuration.
JPLaflamme
16 Posts
0
November 6th, 2006 16:00
JPLaflamme
16 Posts
0
November 6th, 2006 16:00
And actually, I just queried a MAC that said it was "INTEGER: 3" (So that should mean port 3) but when I search it in the web interface on the 3348 it's port G1.
Definitely 1.3.6.1.2.1.17.7.1.2 is causing a problem on my 3448's. When I query it with snmpwalk it just keeps timing out and then I can't even get in the web interface but the traffic is still flowing.
Curious, what version 3448's are you using?
Message Edited by JPLaflamme on 11-06-2006 12:59 PM