Hi,
Running smilint (0.4.8) over a MIB definition file I'm responsible for maintining, provoked this error output:
<filename>:<linenum>: [1] last subidentifier assigned to `national' may not be zero
The source file had, at that point:
::= { iso
member-body(2)
gb(826)
national(0)
eng-ltd(1)
<etc>
}
Looking at http://www.oid-info.com/get/1.2.826.0.1 shows that this appears to be perfectly legal though.
I found that by changing the source to
::= { iso
member-body(2)
gb(826)
0
eng-ltd(1)
<etc>
}
the error was suppressed, but IMO this is a bug in parser-smi.c (lines 976 & following), not in my MIB.
Thoughts?
I got the following "internal-other" error because of the quotes in my
description text.
It was easy to find the problem but would be nice if this could be
handled more gracefully.
Snip from Mib file:
orchNBAStHcOvStatus OBJECT-TYPE
SYNTAX OrchNBAStHcStateTC
MAX-ACCESS read-only
STATUS current
DESCRIPTION "
Indicates the overall health-check state
for the
NBA system.
This may be "ok", "warning" or "fail". See
the
description in OrchNBAStHcStateTC for
further
information regarding these states.
"
::= { orchNBAStHcOverall 3 }
Result from libsmi:
mibs/ORCHESTRIA-NBA-MIB.mib:2485: [1] {internal-other} syntax error,
unexpected LOWERCASE_IDENTIFIER, expecting COLON_COLON_EQUAL
mibs/ORCHESTRIA-NBA-MIB.mib:2489: [5] {internal-flushing} warning:
flushing recent incorrect declaration, see previous error(s)
Additional descriptions of some error/warning messages:
Error: internal-other (level 1)
Message: %s
Description: An unspecified error occured. Please submit a detailed bug
report
to the libsmi maintainer or the libsmi mailing list at
.
Tony Hicks
CA
Senior Software Engineer
Tel: +44-1823-424063
Anthony.Hicks(a)ca.com
<mailto:Andrew.Stickler@ca.com> <http://www.ca.com/>