[c-nsp] SNMP Question

Ziv Leyes zivl at gilat.net
Fri Feb 4 11:37:35 EST 2011


Or you could find the index of the interface from within the device itself with command:
show snmp mib ifmib ifindex <interface name>

HTH
Ziv


-----Original Message-----
From: cisco-nsp-bounces at puck.nether.net [mailto:cisco-nsp-bounces at puck.nether.net] On Behalf Of Per Carlson
Sent: Friday, February 04, 2011 10:17 AM
To: Scott Voll
Cc: cisco-nsp at puck.nether.net
Subject: Re: [c-nsp] SNMP Question

Hi Scott.

> I have found that for my 3845 (running 15.0) with PRI in slots 0/0/0 I 
> can use OID 1.3.6.1.4.1.9.10.19.1.1.9.1.3.0.0

This is the CISCO-POP-MGMT-MIB
(ftp://ftp.cisco.com/pub/mibs/v2/CISCO-POP-MGMT-MIB.my)

The table you are polling is cpmDS0UsageTable where each entry is indexed like:

cpmDS0UsageEntry OBJECT-TYPE
    DESCRIPTION  "An entry in the DS0 Usage table."
    INDEX {cpmDS1SlotIndex, cpmDS1PortIndex, cpmChannelIndex }

As Jeffery proposed, walk this table (1.3.6.1.4.1.9.10.19.1) to find the OIDs. The table contain a mapping (cpmAssociatedInterface) to ifIndex. That way you can figure out which slot/post/channel index corresponds to which interfacce of the router.

To find the ifIndex of the interfaces, walk the OID ifDescr (1.3.6.1.2.1.2.2.1.2). The last ".N" in the OIDs in that table are the ifIndex.

--
Pelle

RFC1925, truth 11:
 Every old idea will be proposed again with a different name and
 a different presentation, regardless of whether it works.

_______________________________________________
cisco-nsp mailing list  cisco-nsp at puck.nether.net https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/

 
 
************************************************************************************
This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************




The information contained in this e-mail message and its attachments is confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the sender, and then delete the message from your computer.  Thank you!

******** This mail was sent via Mail-SeCure System.********



 
 
************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************






More information about the cisco-nsp mailing list