[c-nsp] Convert obsolete OIDs to "the new version"

Charles Polisher chas at chasmo.org
Sun Oct 31 14:05:42 EDT 2021


Hi Drew,

ipNetToMediaIfIndex is also deprecated.

RFC1213-MIB defines atIfIndex thusly:

/ "The interface on which this entry's equivalence//
// is effective.  The interface identified by a //
// particular value of this index is //*the same *//
//* interface as identified by the same value of*//
//* ifIndex*//."//
/

ifIndex is defined in IF-MIB (RFC 2863) as .1.3.6.1.2.1.2.2.1.1,
possible a better answer than you came up with?

To answer ytour question, I used a tool I wrote that parses
MIBs and loads them into a SQL database. Here's the query
I used to find atIfIndex:

# select mib,snmpoid,snmpsymb,status,description from flatsnmpoidmap 
where snmpsymb = 'atIfIndex' and mib = 'RFC1213-MIB';

     mib           snmpoid        snmpsymb status description
─────────── ──────────────────── ───────── ────────── 
───────────────────────────────────────────────────────────
RFC1213-MIB .1.3.6.1.2.1.3.1.1.1 atIfIndex Deprecated The interface on 
which this entry's equivalence is         ↵
effective.                                                 ↵
                                                        The interface 
identified by a particular value of         ↵
                                                       this index is the 
same interface as identified by the same ↵
                                                       value of 
ifIndex.                                          ↵

Using the hint of "ifIndex" in the description,
I queried for that:

# select mib,snmpoid,snmpsymb,status,description from flatsnmpoidmap 
where snmpsymb = 'ifIndex';

  mib         snmpoid        snmpsymb status                          
description
────── ──────────────────── ──────── ─────── 
───────────────────────────────────────────────────────────
IF-MIB .1.3.6.1.2.1.2.2.1.1 ifIndex  Current A unique value, greater 
than zero, for each interface.     ↵
                                               It 
is                                                     ↵
                                              recommended that values 
are assigned contiguously starting ↵
                                              from 
1.                                                    ↵
                                               The value for each 
interface sub-layer must remain        ↵
                                              constant at least from one 
re-initialization of the entity'↵
                                              s network management 
system to the next re- initialization.↵

So ".1.3.6.1.2.1.2.2.1.1".

I plan to release the tool (Netlens) into the public domain soon, with a 
public-
accessible web interface. Presently it contains 65 MIB's and 2799 rows.

Hope that helps,
-- 
Charles Polisher

On 10/27/21 11:06, Drew Weaver wrote:
> Hi All,
>
> It seems like ipNetToMediaIfIndex is the replacement for that other OID I mentioned so no problem but still it would be great if anyone knows of a tool or site that handles replacements.
> <snip>
> This question I suppose is not specific to Cisco except that some of the OIDs I need don't exist in NXOS (but they do in other Cisco OS).
>
> In general does anyone know of a tool or a website or something that will take an obsolete OID and suggest a working equivalent?
>
> Specifically, I found this OID to be useful RFC1213-MIB::atIfIndex  (1.3.6.1.2.1.3.1.1  in the past and I am looking for the modern alternative.
> <snip>
> Does anyone know specifically if RFC1213-MIB has been replaced or if there is any other way to get the same information (via SNMP)?


More information about the cisco-nsp mailing list