[c-nsp] SNMP MIB question
Justin M. Streiner
streiner at cluebyfour.org
Tue Apr 15 20:38:49 EDT 2008
On Tue, 15 Apr 2008, Gurung, Provin wrote:
> We have been doing snmpwalk's on 1.3.6.1.4.1.9.9.23.1.1.1.1.6
> to get the interface index.
>
> snmpwalk responds with the following output.
>
> .1.3.6.1.4.1.9.9.23.1.1.1.1.6.1 = "FastEthernet0/0"
> [snip]
> .1.3.6.1.4.1.9.9.23.1.1.1.1.6.14 = "FastEthernet0/0.49"
>
> The Cisco SNMP Object Navigator says that the parent node
> (".1.3.6.1.4.1.9.9.23.1.1.1.1") is "cdpInterfaceEntry",
> There is no entry for "6". If this an offical mib entry we can count
> on?
Why not use the MIB-II tree?
1.3.6.1.2.1.2.2.1.2 will give you the same information as above, i.e.
"FastEthernet0/0" and so on...
The ifIndex for that particular interface can be returned as part of the
OID.
I suspect that using the OIDs you have above is only worthwhile if 1.
your device is running CDP and 2. it's not explicitly disabled on certain
interfaces.
Hope this helps
jms
More information about the cisco-nsp
mailing list