How to get MAC adresses via SNMP??? (50 Views)
Occasional Advisor
Armin Meier
Posts: 14
Registered: ‎05-03-1999
Message 1 of 3 (50 Views)
Accepted Solution

How to get MAC adresses via SNMP???

Hi there you all!!

I am searching for a way to get the number of MAC adresses a switch has learned or even better a list of the adresses a switch has learned.

Is there any MIB Var. telling me that and I am just to blind to see???
We are using cisco 1900 and 2900. So if you got any idea...

I already wrote the script to get those values, it is just the variables...

Other hints are welcome
The Trouble with Troubleshooting is ... sometimes trouble shoots back!!!
Honored Contributor
Albert E. Whale, CISSP
Posts: 988
Registered: ‎04-24-2000
Message 2 of 3 (50 Views)

Re: How to get MAC adresses via SNMP???

It's a little tricky to pull it off, but the following MIB should give you what you want.

Try the following untill you get the info you want.

snmpwalk ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaPhysAddress

Hope that helps.
Sr. Systems Consultant @ ABS Computer Technology, Inc. &
Frequent Advisor
augusto cossa
Posts: 126
Registered: ‎05-29-2000
Message 3 of 3 (50 Views)

Re: How to get MAC adresses via SNMP???


I think you can try MIB Browser and choose:

or at command comm (DOS)
issues the command:

arp -g (IPAddress)

hope it's help you

A Cossa
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.