Network Management / (OpenView-NNM) Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get MAC adresses via SNMP???

SOLVED
Go to solution
Armin Meier
Occasional Contributor

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!!!
2 REPLIES
Albert E. Whale
Honored Contributor
Solution

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. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com
Highlighted
augusto cossa
Occasional Contributor

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

Hi,

I think you can try MIB Browser and choose:
mgmt
mib_2
interfaces
ifTable
ifEntry
ifPhysAddress

or at command comm (DOS)
issues the command:

arp -g (IPAddress)

hope it's help you

A Cossa
//Add this to "OnDomLoad" event