[SNMP4J] AgenPro MIB compiler problem

Ed Shober EShober at utsci.com
Wed Sep 26 00:04:30 CEST 2007


I'm having trouble compiling a MIB. The error code given is 1200. The
message

seems to imply that a columnar OBJECT-TYPE cannot be associated with

something other than a SEQUENCE. I want scalar columns of INTEGER or

BITS. The MIB seems to validate with no errors using online validation
sites.

Is this a limitation of AgenPro or am I trying to do something the wrong
way?

 

Example:

 

RouterChassisAlarmBits ::= BITS

{

        powerSupply1    (0),

        powerSupply2    (1),

        fan             (2),

        xptPower        (3),

        smpte           (4)

}

 

routerChassisAlrmStatus OBJECT-TYPE

        SYNTAX     RouterChassisAlarmBits

        MAX-ACCESS read-only

        STATUS     current

        DESCRIPTION

                "Router chassis alarm status" -- a bit set means alarm is
active

::= { routerChassisEntry 5 }

 

RouterChassisEntry ::= SEQUENCE

{

        routerChassisIndex      INTEGER,

        routerChassisName       DisplayString,

        routerChassisDescr      DisplayString,

        routerChassisType       RouterChassisType,

        routerChassisAlrmStatus BITS

}

 




More information about the SNMP4J mailing list