KB 600004 How to use #SNMP MIB Compiler
This article describes how to use #SNMP MIB Compiler. #SNMP MIB Compiler compiles MIB documents into .module files.
The MIB documents are typically text files who have no extension, or .mib, or .my. Below are the steps to compile a MIB document,
- Open #SNMP MIB Compiler (Compiler.exe).
- Open a MIB document, such as TCP-MIB.txt.
- Click Compile button on the tool bar.
Note that compiler output is shown in the Output panel.
What are MIB Documents
You should try to learn about the documents from
this Wikipedia article
or an SNMP book.
Compiler output files
If the MIB document is compiled successfully, a .module file is generated in the
folder besides Compiler.exe.
If the compiler fails to compile a MIB module, no .module file is generated, and you need to read the logs in Output panel to troubleshoot the cause.
If after compiling a MIB document is listed in Module List panel as Pending, it means this MIB document has some dependencies that are not yet compiled by the compiler. You need to open those dependencies and compile them before compiling this document.
The .Module File Format
This is a simple format used by #SNMP.
The first line starts with '#' and lists all dependencies.
From the second line on, every line contains one particular SNMP object. The properties of the object are stored as comma separated data.
This format is subject to change in the near future as we are going to support more information on each objects.
#SNMP MIB Browser only accepts .module files generated by #SNMP MIB Compiler.