01-12-2005 07:52 AM
Hi all,
I need your help.I need to discover the IFINDEX for an interface of a Catalyst 6500 running IOS version 12.2(17d).
For discovering the IFINDEX I try to use the command "show snmp mib ifmib ifindex interface_name", but this command is not available on this device:
Cat6521_NUEVO#show snmp mib ?
notification-log show commands for the Notification Log MIB
| Output modifiers
<cr>
Does anyone know if the command has been deprecated? what command should I use instead?
Thanks in advance.
01-12-2005 12:15 PM
I think it is not there in the natove code. You can just poll the ifIndex object directly to get this info.
01-13-2005 12:17 AM
Hi Rmushtaq,
Thanks for your answer.
What do you exactly mean "just poll the ifindex object"?
Thanks.
01-13-2005 02:22 AM
Hi,
if I may answer your question:
Download and install a tool like 'Net-SNMP' (http://net-snmp.sourceforge.net/).
Now you can talk via SNMP to your device, the Object-ID to poll the index is:
portIfIndex.Slot.Port (1.3.6.1.4.1.9.5.1.4.1.1.11.Slot.Port)
Regards
Rolf
01-13-2005 03:40 AM
Here an example for better understanding:
I polled for the ifIndex of Fa6/48, IP-Address is 192.168.1.1, SNMP-Community-String: MySecret.
The response is the ifIndex of Fa6/48: 148
-----------------------------------------------------
C:\>snmpget -h
USAGE: snmpget [OPTIONS] AGENT OID [OID]...
C:\>snmpget -v 1 -c MySecret 192.168.1.1 1.3.6.1.4.1.9.5.1.4.1.1.11.6.48
SNMPv2-SMI::enterprises.9.5.1.4.1.1.11.6.48 = INTEGER: 148
C:\>
-----------------------------------------------------
Hope, thats comprehensible and helps you a bit.
Regards
Rolf
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: