question

NickL avatar image
NickL asked Spirent_Admin answered

TIP: Debugging SNMP "Cannot load MIB" errors

If upon starting an SNMP session you see "Could not load MIB File" errors such as the one below:

 

Could not load MIB file 'CISCO-IF-EXTENSION-MIB.my'. Details: CISCO-IF-EXTENSION-MIB: Unknown SNMP data type: IfOperStatusReason (of node cieIfOperStatusCause).

 The corresponding MIB need to be placed in the same directory or loaded beforehand.

 

iTest is indicating that this MIB is depending on another MIB which is not located in the same directory.  Typically you can find which MIB needs to be included by looking at the Imports section and cross-referencing it with the error message.  For example, the Imports section for the MIB mentioned in the error above shows:

 

IMPORTS

    MODULE-IDENTITY,

    OBJECT-TYPE,

    Counter32,

    Gauge32,

    Unsigned32,

    Integer32,

    NOTIFICATION-TYPE

        FROM SNMPv2-SMI

    MODULE-COMPLIANCE,

    OBJECT-GROUP,

    NOTIFICATION-GROUP

        FROM SNMPv2-CONF

    TruthValue,

    TimeStamp,

    DisplayString,

    TEXTUAL-CONVENTION

        FROM SNMPv2-TC

    ifIndex,

    InterfaceIndexOrZero,

    ifName,

    ifType,

    ifAdminStatus,

    ifOperStatus

        FROM IF-MIB

    entPhysicalIndex

        FROM ENTITY-MIB

    SnmpAdminString

        FROM SNMP-FRAMEWORK-MIB

    Unsigned64,

    IfOperStatusReason

        FROM CISCO-TC

    ciscoMgmt

        FROM CISCO-SMI;

 

The error iTest is reporting is indicating a problem with IfOperStatusReason.  By examing the Imports we can see that this is dependent on the "CISCO-TC" MIB.  Adding this MIB to the same directory resolved this issue.

iTestsnmp
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Spirent_Admin avatar image
Spirent_Admin answered
Answer in question body
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.