Cisco Support Community
Community Member

SNMP community indexing port query

I have a Catalyst 3750-48PoE with some ports in access and in trunking mode.

When trying to get the port associated to the IfIndex I have the problem that doesn't have VLAN, so community index is not needed, but listing it with snmpwalk the port does not apear, I mean, listing all I can get this:

Fa1/0/13 IfIndex 10001 Port 3 Vlan 40 (Access) - Connected


Fa5/0/39 IfIndex 12039 Port 251 Vlan 40 (Access) - Connected

Fa5/0/40 IfIndex 12040 ??????? No Vlan (Trunk) - Connected

Fa5/0/41 IfIndex 12041 Port 253 Vlan 40 (Access) - Connected


Gi5/0/4 IfIndex 12104 Port 236 No Vlan (Trunk) - Not connected

Querying the Port 251 and Port 253 it works:

*@monitor:~$ snmpwalk -v1 -c public@40


SNMPv2-SMI::mib- = INTEGER: 12039
SNMPv2-SMI::mib- = INTEGER: 12041


Ok, but with no community indexing I don't get the port 252 (Fa5/0/40 - IfIndex 12040), but Port 236 (Gi5/0/4 - IfIndex 12104) (in Trunk mode also) works!!!:

*@monitor:~$ snmpwalk -v1 -c public

SNMPv2-SMI::mib- = INTEGER: 10101

SNMPv2-SMI::mib- = INTEGER: 12104


Why port 252 is not listed? Is another way to find it without community indexing? VLAN is not needed as you see.

Software version is Cisco IOS Software, C3750 Software (C3750-IPBASE-M), Version 12.2(25)SEE3, RELEASE SOFTWARE (fc2)
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Thu 22-Feb-07 15:04 by myl

A bug?


Community Member

Re: SNMP community indexing port query


Although the port is in trunking mode, it's assigned to the vlan 57, therefore, consulting community indexing @57 will fix it.

Regards, and sorry for the inconvenience.

CreatePlease to create content