Discussion:
Online MIB check tools --share with you!
Alexander King
2010-05-10 08:31:18 UTC
Permalink
http://wwwsnmp.cs.utwente.nl/ietf/mibs/validate/

http://www.muonics.com/Tools/smicheck.php

The two websites can check MIB files online,I test it,it is very convenient,the first website can choice the Severity level(1-Most tolerant,6-Most strict).

I cannot find where the check tool smilint is wrong,it just check SNMPv1 MIB files.when the MIB file use SNMPv2,I got a lot of warning information.
Dave Shield
2010-05-10 08:48:08 UTC
Permalink
Post by Alexander King
http://wwwsnmp.cs.utwente.nl/ietf/mibs/validate/
I cannot find where the check tool smilint is wrong,it just check SNMPv1 MIB
files.when the MIB file use SNMPv2,I got a lot of warning information.
Three comments:
- the 'smilint' tool is not connected with the Net=SNMP project in any way.
If you have questions about this program, then please contact the
libSMI team about it, rather than us.

- the web validation interface you mention above is itself built
around smilint!

- smilint *does* accept SNMPv2-style MIB files.
If you are seeing lots of warnings, that's probably because there are
things wrong with the MIB files you are checking. Possibly full errors,
possibly poor MIB design.
Remember that the whole purpose of smilint is to crawl over your
MIB file and tear it to pieces. It's *meant* to complain about anything
that's not 100% kosher. The level of pickiness depends on exactly
how you are invoking it, but if you can get yout MIB files past smilint,
you can be pretty certain that allother SNMP tools will be happy too.

Dave
Alexander King
2010-05-10 09:57:21 UTC
Permalink
I am sorry,I didnot know it before.

My MIB file in net-snmp-5.4.2 environment can use snmptranslate got the whole structure rightly(no warning).

I googled some webpages told me the smilint tool can check the mib file,so I tried it,I want to this tool can give me some king of promise that my mib file is total right to get the right generated codes,now,obviously I am wrong.


OMG,another bad idea from me.SORRY.



alex








------------------ Original ------------------
From: "Dave Shield"<***@liverpool.ac.uk>;
Date: Mon, May 10, 2010 04:48 PM
To: "Alexander King"<***@qq.com>;
Cc: "net-snmp-users"<net-snmp-***@lists.sourceforge.net>;
Subject: Re: Online MIB check tools --share with you!
Post by Alexander King
http://wwwsnmp.cs.utwente.nl/ietf/mibs/validate/
I cannot find where the check tool smilint is wrong,it just check SNMPv1 MIB
files.when the MIB file use SNMPv2,I got a lot of warning information.
Three comments:
- the 'smilint' tool is not connected with the Net=SNMP project in any way.
If you have questions about this program, then please contact the
libSMI team about it, rather than us.

- the web validation interface you mention above is itself built
around smilint!

- smilint *does* accept SNMPv2-style MIB files.
If you are seeing lots of warnings, that's probably because there are
things wrong with the MIB files you are checking. Possibly full errors,
possibly poor MIB design.
Remember that the whole purpose of smilint is to crawl over your
MIB file and tear it to pieces. It's *meant* to complain about anything
that's not 100% kosher. The level of pickiness depends on exactly
how you are invoking it, but if you can get yout MIB files past smilint,
you can be pretty certain that allother SNMP tools will be happy too.

Dave

------------------------------------------------------------------------------

_______________________________________________
Net-snmp-users mailing list
Net-snmp-***@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Dave Shield
2010-05-10 10:15:09 UTC
Permalink
Post by Alexander King
My MIB file in net-snmp-5.4.2 environment can use snmptranslate got the
whole structure rightly(no warning).
snmptranslate simply confirms that the Net-SNMP parser is happy with
your MIB file. It does *not* provide any real guarantee of validity.

We have a fairly pragmatic view towards MIB parsing - if we can work
out what was intended, we'll read in the MIB file. (To try and avoid lots
of questions on the mailing list asking "Why doesn't my MIB load")

Frank and Juergen are much more thorough.
If there's something wrong with your MIB file, they want you to fix it!
Post by Alexander King
I googled some webpages told me the smilint tool can check the mib file,so I
tried it,I want to this tool can give me some king of promise that my mib
file is total right to get the right generated codes,now,obviously I am
wrong.
OMG,another bad idea from me.SORRY.
Not at all.
Running yout MIB files through smilint is A Very Good Idea.

I would just ask you to be careful about making statements like
"smilint can't handle SNMPv2 MIBs".

Dave

Continue reading on narkive:
Loading...