[c-nsp] SNMP Question

Per Carlson pelle at hemmop.com
Fri Feb 4 03:17:17 EST 2011


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.



More information about the cisco-nsp mailing list