4. The MIB Compiler

4 The MIB Compiler

The chapter The MIB Compiler describes the MIB compiler and contains the following topics:

  • Operation
  • Import
  • Consistency checking between MIBs
  • .hrl file generation
  • Emacs integration
  • Deviations from the standard
Note

When importing MIBs, ensure that the imported MIBs as well as the importing MIB are compiled using the same version of the SNMP-compiler.

4.1 Operation

The MIB must be written as a text file in SMIv1 or SMIv2 using an ASN.1 notation before it will be compiled. This text file must have the same name as the MIB, but with the suffix .mib. This is necessary for handling the IMPORT statement.

The association file, which contains the names of instrumentation functions for the MIB