Network Management / (OpenView-NNM) Support and News Forum
Showing results for 
Search instead for 
Do you mean 

How to get MAC adresses via SNMP???

SOLVED
Go to Solution
Occasional Advisor

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!!!
1 ACCEPTED SOLUTIONS
Honored Contributor Honored Contributor

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
2 REPLIES
Honored Contributor Honored Contributor

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
Frequent Advisor

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