Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2244
  • Last Modified:

SNMP interface MIB ifindex

Hi,
I am trying to find out the ifindex on the Cisco 2950 switch but can't find the command to do so. I need to monitor this switch's interface via SNMP. I know on cisco WS-C6506-E ,  the command that returns the ifindex is as follows: sh snmp mib ifmib ifindex gigabitEthernet 1/1.
But this command is not supported in Cisco 2950.  Can anyone help?
0
thunder8080
Asked:
thunder8080
3 Solutions
 
from_expCommented:
I would suggest to take snmp walk on a 2950 device. you can use ireasoning mib browser to do that.
0
 
thunder8080Author Commented:
Thx from_exp. Could you please eleborate further as I am not able to unsderstand what you mean.

Thanks.    
0
 
rochey2009Commented:
Hi,

http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=true&objectInput=ifIndex

OID Tree

You are currently viewing your object with levels of hierarchy above your object.
. iso (1) . org (3) . dod (6) . internet (1) . mgmt (2) . mib-2 (1) . interfaces (2)
   |
    - -- ifTable (2)
      |
       - -- ifEntry (1)
         |
         | --   ifIndex (1) object Details
0
 
MysidiaCommented:
I would normally use snmpwalk from a remote UNIX/Linux machine with net-snmp-utils installed
eg
snmpwalk -v1 -c  public  192.168.3.1  ifDescr  

snmpwalk -v1 -c  (COMMUNITY)  (Switch-IP)  ifAlias
snmpwalk -v1 -c  (COMMUNITY)  (Switch-IP)  ifDescr

or

snmpwalk -v1 -c  (COMMUNITY)  (Switch-IP) .1.3.6.1.2.1.2.2.1.2

If you prefer.

SNMP is not a local management interface,  it's a remote management protocol.   I  believe  'show snmp mib',  and the ability to locally see snmp indexes  is a new feature, first introduced in  12.2(2)T. it's listed as avail under 12.2(28)SB, 12.2(33)SRA, 12.2SX
http://www.cisco.com/en/US/docs/ios/netmgmt/command/reference/nm_16.html#wp1012010
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now