Template:FAQ:MIBs 01

From Net-SNMP Wiki
Revision as of 22:34, 21 October 2006 by Dts12 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

That depends what you mean by a "MIB compiler". There are at least two types of tool that are commonly referred to by this name.

The first is a tool to check MIB files for validity. This functionality is mostly integrated within the MIB parser (part of the Net-SNMP library) and hence included in all the applications. The tool 'snmptranslate' is probably the most appropriate for this purpose. Note that the parser is fairly forgiving (see 'What ASN.1 parser is used' below), so this should not be regarded as a stamp of approval.

The second type of tool is one to turn a MIB specification into C code, specifically one designed to aid agent implementation. The command 'mib2c' is an example of such a tool for the Net-SNMP agent. See the CODING section for more information.