search cancel

Unable to compile CPQOneview MIB in CA Spectrum

book

Article ID: 255301

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

Unable to import the mib CPQOneview in MibTool due to the following compile error: 

 

Environment

Release : any

Cause

missing semicolon 

Resolution

The issue is caused by a missing semicolon ";"

The mib contains:

CPQOneView-MIB DEFINITIONS ::= BEGIN

    IMPORTS
        compaq                  FROM CPQHOST-MIB
        DisplayString           FROM RFC1213-MIB
        OBJECT-TYPE             FROM RFC-1212
        sysName                 FROM RFC1213-MIB
        cpqHoTrapFlags          FROM CPQHOST-MIB
        TRAP-TYPE               FROM RFC-1215
 --       enterprises             FROM COMPAQ
 --       NetworkAddress          FROM RFC1155-SMI;        

 --   compaq                  OBJECT IDENTIFIER ::= { enterprises 232 }   
    cpqOneView              OBJECT IDENTIFIER ::= { compaq 179 }     
    cpqOneViewMibRev        OBJECT IDENTIFIER ::= { cpqOneView 1 }
    cpqOneViewComponent     OBJECT IDENTIFIER ::= { cpqOneView 2 }
    cpqOneViewAlert         OBJECT IDENTIFIER ::= { cpqOneViewComponent 1 }
    cpqOneViewAlertDeviceHealth        OBJECT IDENTIFIER ::= { cpqOneViewAlert 100 }

....

the ";" is in a commented line (see line yellow above), modify the line TRAP-TYPE and add ";" so it is like this:

         TRAP-TYPE               FROM RFC-1215;

Then re-import the mib.