Mailing List Archive

Convert obsolete OIDs to "the new version"
Hello,

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.

We can see here that it is indeed obsolete https://github.com/YangModels/yang/blob/master/vendor/cisco/xe/1661/MIBS/RFC1213-MIB.yang

But it doesn't mention which OID is meant to replace it unless I missed that.

Does anyone know specifically if RFC1213-MIB has been replaced or if there is any other way to get the same information (via SNMP)?

Thanks for any suggestions,
-Drew




_______________________________________________
cisco-nsp mailing list cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
Re: Convert obsolete OIDs to "the new version" [ In reply to ]
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.

Thanks again.

-----Original Message-----
From: cisco-nsp <cisco-nsp-bounces@puck.nether.net> On Behalf Of Drew Weaver
Sent: Wednesday, October 27, 2021 1:53 PM
To: 'cisco-nsp@puck.nether.net' <cisco-nsp@puck.nether.net>
Subject: [c-nsp] Convert obsolete OIDs to "the new version"

Hello,

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.

We can see here that it is indeed obsolete https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_YangModels_yang_blob_master_vendor_cisco_xe_1661_MIBS_RFC1213-2DMIB.yang&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=OPufM5oSy-PFpzfoijO_w76wskMALE1o4LtA3tMGmuw&m=29z5jgS_1rGIeHpGadUQbGiJwJeCcB9yUXGf91--XHE&s=KN894W_czZrlGSDgGOJhaxkMezba_FcCbhXr7HxUk5w&e=

But it doesn't mention which OID is meant to replace it unless I missed that.

Does anyone know specifically if RFC1213-MIB has been replaced or if there is any other way to get the same information (via SNMP)?

Thanks for any suggestions,
-Drew




_______________________________________________
cisco-nsp mailing list cisco-nsp@puck.nether.net https://urldefense.proofpoint.com/v2/url?u=https-3A__puck.nether.net_mailman_listinfo_cisco-2Dnsp&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=OPufM5oSy-PFpzfoijO_w76wskMALE1o4LtA3tMGmuw&m=29z5jgS_1rGIeHpGadUQbGiJwJeCcB9yUXGf91--XHE&s=Pooe4K_ReTmG4yzsZir8Q68J_XsEjtjh12EWbMSMCE0&e=
archive at https://urldefense.proofpoint.com/v2/url?u=http-3A__puck.nether.net_pipermail_cisco-2Dnsp_&d=DwICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=OPufM5oSy-PFpzfoijO_w76wskMALE1o4LtA3tMGmuw&m=29z5jgS_1rGIeHpGadUQbGiJwJeCcB9yUXGf91--XHE&s=GaHFWWT4_6GHWMfzTKXyzFlZoOC1cxVOfsnqT7nnq50&e=
_______________________________________________
cisco-nsp mailing list cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
Re: Convert obsolete OIDs to "the new version" [ In reply to ]
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)?
_______________________________________________
cisco-nsp mailing list cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/