Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Get connected devices on switch port via SNMP

I need to know the ip or MAC address of a device which is connected on a switch(for example catalyst 29XX). I think this information should be in the MIB of the switch, bu i can't find it. Can someone tell where in the MIB i have to look.

Thanks.

2 REPLIES

Re: Get connected devices on switch port via SNMP

You can use a snmpwalk to get all MIBs you need. But here is a link to help with the switch cam table and snmp MIBs: http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094a9b.shtml

If you don't have to use snmp, you can always use the show cam dyn command to find the mac addresses.

Hope it helps.

Steve

Bronze

Re: Get connected devices on switch port via SNMP

To retrieve MAC address table, use dot1dTpFdbTable in BRIDGE-MIB. For ip addresses, use ipNetToMediaTable in IP-MIB. That's the MIB equivelant of arp table.

Ming

1801
Views
0
Helpful
2
Replies
CreatePlease to create content