[MIB Designer] MIB systax check confusion on IMPORTS

Frank Fock fock at agentpp.com
Tue Feb 5 01:05:03 CET 2008


These 1502 errors are caused by the invalid SEQUENCE clauses.
The compiler treats SEQUENCE clauses as integral part of a SMI
table definition. This behavior is different from an ASN.1
parser, but consistent with the SMI semantics.

When the table definition is incomplete/incorrect the table
object itself will not be "registered" and thus all objects
below that node in the MIB tree cannot be registered because
they refer to the table object.

That is what is happening below. I do not think that this
is related to the IMPORTS clause.

Best regards,
Frank

PHIL BERGSTRESSER wrote:
> I have the following error messages that shows one of the IMPORT statements has not been fully processed. Is this perhaps because of the 2 other errors later in the MIB? They are both Table row lists, where the final row has a trailing comma. Wrong of course, but should that blow off an IMPORT? The first adIdentity import works for the Module Identity clause, the the 2 others remain undefined. Some of the errors are from subsequent derivatives since the first OBJECT IDENTIFIER definition failed. I can send the whole MIB if needed.
>  
> ------ adTa5kSm.mi2 ------
> adTa5kSm.mi2 #1: [1000] Syntax error: Encountered "}" at line 402, column 8: 
> Was expecting: 
>    ...
>   
> adTa5kSm.mi2 #2: [1000] Syntax error: Encountered "}" at line 758, column 8: 
> Was expecting: 
>    ...
>   
> adTa5kSm.mi2 #3: [1502] The object adTa5kSmTest at line 895, column 14 must be defined or imported (RFC2578 §3.2)
> adTa5kSm.mi2 #4: [1502] The object adTa5kSmAlarms at line 1070, column 13 must be defined or imported (RFC2578 §3.2)
> adTa5kSm.mi2 #5: [1502] The object adTa5kSmStatus at line 733, column 14 must be defined or imported (RFC2578 §3.2)
> adTa5kSm.mi2 #6: [1502] The object adTa5kSmAtpMfg at line 997, column 14 must be defined or imported (RFC2578 §3.2)
> adTa5kSm.mi2 #7: [1502] The object adTa5kSmSystemEntry at line 165, column 14 must be defined or imported (RFC2578 §3.2)
> adTa5kSm.mi2 #8: [1502] The object adTa5kSmClockStatusEntry at line 769, column 14 must be defined or imported (RFC2578 §3.2)
> 
> MIB fragment:
>         adIdentity,
>         adProducts,
>         adMgmt
>             FROM ADTRAN-MIB
> . . .
>         DESCRIPTION
>             "Total Access 5000 SwitchModule 1187020L1 MIB"
>         ::= { adIdentity 750 }
> 
> -- OBJECT IDENTIFIERS
>     adTa5kSm         OBJECT IDENTIFIER ::= { adMgmt 750 }
>     adTa5kSmTraps    OBJECT IDENTIFIER ::= { adProducts 750 }
>     adTa5kSmAlarms   OBJECT IDENTIFIER ::= { adTa5kSmTraps 0 }
>     adTa5kSmConfig   OBJECT IDENTIFIER ::= { adTa5kSm 1 }
>     adTa5kSmProv     OBJECT IDENTIFIER ::= { adTa5kSm 2 }
>     adTa5kSmStatus   OBJECT IDENTIFIER ::= { adTa5kSm 3 }
>     adTa5kSmTest     OBJECT IDENTIFIER ::= { adTa5kSm 4 }
>     adTa5kSmPerfMon  OBJECT IDENTIFIER ::= { adTa5kSm 5 }
>     adTa5kSmAtpMfg   OBJECT IDENTIFIER ::= { adTa5kSm 6 }
> 
> Thank you.
> 
> Phil
> 
> 
> Philip N. Bergstresser
> Design Engineer, SNMP NMS
> ADTRAN, Inc.
> 901 Explorer Blvd, 
> Huntsville, AL  35806
> (256) 963-8399
> 
> _______________________________________________
> MIBDesigner mailing list
> MIBDesigner at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/mibdesigner

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com



More information about the MIBDesigner mailing list