ERROR: "Premature end of file" when compiling NET-SNMP-AGENT-MIB

  • 3834962
  • 30-Apr-2007
  • 30-Apr-2012

Environment

Novell ZENworks 6.5 Server Management Support Pack 2 - ZSM6.5 SP2 Management and Monitoring Service
Novell ZENworks 7 Server Management Support Pack 1 - ZSM7 SP1 Management and Monitoring Service
 

Situation

Using ConsoleOne MIB compiler to compile MIBs with embedded comments, for example,NET-SNMP-AGENT-MIB generates an error:
 
ERROR: Premature end of file and ConsoleOne hangs.

Resolution

In the case of NET-SNMP-AGENT-MIB, the problem is with the embedded comment.  Comments start with two dashes and may occur at the first character on a line, but not embedded within definition text.  This is a limitation of the compiler, not with the MIB syntax.
 
Modify the MIB using a text editor that will save as a clear text file and remove the embedded comments.
 
For example change the following:
 
DEFVAL { 5 --seconds-- }
 
to this:
 
DEFVAL { 5 }

Status

Reported to Engineering