
Volker Goebbels wrote:
Hello,
although I'm very new to this list I have a question ... ;)
I'm trying to dump a MIB file in xml format using smidump. When doing this I get some error outpur like this:
QUANTE-MIB-V1.txt:135: macro `OBJECT-TYPE' has not been imported from module `RFC-1212' QUANTE-MIB-V1.txt:143: macro `OBJECT-TYPE' has not been imported from module `RFC-1212' ... QUANTE-MIB-V1.txt:366: macro `TRAP-TYPE' has not been imported from module `RFC-1215' QUANTE-MIB-V1.txt:367: syntax error, unexpected '{', expecting UPPERCASE_IDENTIFIER or LOWERCASE_IDENTIFIER or NUMBER QUANTE-MIB-V1.txt:368: syntax error, unexpected VARIABLES QUANTE-MIB-V1.txt:369: syntax error, unexpected DESCRIPTION QUANTE-MIB-V1.txt:375: syntax error, unexpected VARIABLES ...
and so on. Does anyone know what's going on there? BTW: I'm using libsmi-0.4.2.
Your MIB contains some errors. I hope the messages above are clear enough to fix them.
In contrast to some other SMI parsers that try to tolerate errors in MIB modules which could lead to undiscovered errors in applications that use such parsers, libsmi is very strict and its checks are based on the SMI RFCs. I strongly suggest to first fix the errors before compiling the MIB modules for further use, even if you are not the original author of the MIB module. For checking the validity of a MIB module, the tools smilint is the better choice.