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 10.54.1.201 1.3.6.1.2.1.17.1.4.1.2
...
SNMPv2-SMI::mib-2.17.1.4.1.2.251 = INTEGER: 12039
SNMPv2-SMI::mib-2.17.1.4.1.2.253 = 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 10.54.1.201 1.3.6.1.2.1.17.1.4.1.2
SNMPv2-SMI::mib-2.17.1.4.1.2.1 = INTEGER: 10101
...
SNMPv2-SMI::mib-2.17.1.4.1.2.236 = INTEGER: 12104
***END***
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?
Thanks.