Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
New Member

Using SNMP to Find a Port Number from a MAC Address on a clustered Switch

Hello all,

I'm trying to use SNMP to find the Port Number from a MAC address on our switches.

I follow the procedure described in this document which works fine for most of our switches:

But in some locations the switches are clustered and only the command switch has an IP address.

As far as I understand the members switches should he accessible with community name MYCOMMUNITY@es1. But this collides with the naming for VLANS which may be reached at MYCOMMUNITY@VLAN. And I need to specifiy the VLAN to get the correct Port Name, if I follow the procedure above.

Is there any way I can solve this?

One possible solution would be to give IP addresses to the member switches too. I have not tried it yet. One of the reasons to cluster the switches was to save real IP-addresses and not have to give them private addresses.

New Member

Re: Using SNMP to Find a Port Number from a MAC Address on a clu

Here is an example of how it looks like, slightly anonymized. It seems like it is possible to talk SNMP to the cluster command switch but the requests to the others are not proxied corrrectly, at least not with this syntax.

$ snmpbulkwalk -r 1 -t 1 -c COMMUNITY@es0@1 .

SNMPv2-SMI::mib- = INTEGER: 50

$ snmpbulkwalk -r 1 -t 1 -c COMMUNITY@es1@1 .

Timeout: No Response from

CreatePlease to create content