cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4456
Views
0
Helpful
4
Replies

show snmp mib ifmib ifindex => HELP NEEDED !!

s.debenito
Level 1
Level 1

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.

4 Replies 4

rmushtaq
Level 8
Level 8

I think it is not there in the natove code. You can just poll the ifIndex object directly to get this info.

Hi Rmushtaq,

Thanks for your answer.

What do you exactly mean "just poll the ifindex object"?

Thanks.

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

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, that’s comprehensible and helps you a bit.

Regards

Rolf

Getting Started

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: