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:
SNMPv2-SMI::mib-126.96.36.199.1.2.251 = INTEGER: 12039
SNMPv2-SMI::mib-188.8.131.52.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!!!:
[email protected]:~$ snmpwalk -v1 -c public 10.54.1.201 184.108.40.206.220.127.116.11.4.1.2
SNMPv2-SMI::mib-18.104.22.168.1.2.1 = INTEGER: 10101
SNMPv2-SMI::mib-22.214.171.124.1.2.236 = 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