Unable to import CISCOTRAP-mib MIB
search cancel

Unable to import CISCOTRAP-mib MIB

book

Article ID: 144037

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

Trying to import in the CISCOTRAP-mib  it keeps failing with following error:

IMPORTS failed: import mib RFC-1215 does not contain snmp

 

Environment

Release : 10.x

Component : Spectrum Core / SpectroSERVER

Resolution

To successfully import the CISCOTRAP-mib you should do the following modifications:

1) the CISCOTRAP-mib contains

    CISCOTRAP-MIB DEFINITIONS ::= BEGIN

          IMPORTS
              sysUpTime, ifIndex, ifDescr, ifType, egpNeighAddr,
              tcpConnState
                   FROM RFC1213-MIB
              cisco
                   FROM CISCO-SMI
              whyReload, authAddr
                   FROM OLD-CISCO-SYSTEM-MIB
              locIfReason
                   FROM OLD-CISCO-INTERFACES-MIB
              tslineSesType, tsLineUser
                   FROM OLD-CISCO-TS-MIB
              loctcpConnElapsed, loctcpConnInBytes, loctcpConnOutBytes
                   FROM OLD-CISCO-TCP-MIB
              snmp, TRAP-TYPE
                   FROM RFC-1215;

The error "IMPORTS failed: import mib RFC-1215 does not contain snmp" occurs because there is not a RFC-1215 mib in Spectrm that contains the snmp object. Indeed the snmp is resolved in the RFC1215-MIB already presents in Spectrum. 

So correct the line:

FROM RFC-1215;

into

FROM RFC1215-MIB;

However this is not enough, because to resolve locIfReason, tslineSesType, tsLineUser,  loctcpConnElapsed, loctcpConnInBytes, loctcpConnOutBytes you should have already imported in Spectrum the following mibs:

OLD-CISCO-INTERFACES-MIB
OLD-CISCO-TS-MIB
OLD-CISCO-TCP-MIB

These mibs are not present in Spectrum out of the box, so you should ask for them to CISCO or download them from Internet. 

You should be able to copy the content of them from http://www.circitor.fr/Mibs/Mibs.php . Once you have successfully imported on Spectrum you should be able to successfully import the CISCOTRAP-MIB