SNMP Manager Programmer's Guide
Reference Summary
SNMP Manager Programmer’s Guide–134249
9-16
MIB Compiler Invocation
MIB Compiler Invocation
mibcomp [-numbers | -statistics | -nametree | -readtree]
[-exclude MIB-module-name.MIB-object-name]...
[-l file-search-path]...
[-o output-file-name]
[-nowarn]
[-quiet]
{@ automated-response-file-name | MIB-file-name}...
-numbers
Creates an output file containing a line describing each subtree
and leaf in a MIB file. For subtrees, the OID and name appear.
For leaves, the OID, name, and syntax appear.
-statistics
Generates some simple statistics about the MIB objects parsed.
The statistics are written to your standard output stream.
-nametree
Generates an output file containing C code defining an array of
structures that your manager can use for OID-to-name conversion
and vice versa. The file is compiled into the manager, so the
manager must be recompiled whenever you want it to handle
additional MIB objects using the -nametree output.
-readtree
Generates an output file containing ASCII text describing MIB
objects. The file can be loaded at run time by a manager that can
interpret the text format to perform OID-to-name conversion and
vice versa. Because the -readtree file is dynamically read,
changing its contents does not require manager recompilation.
-exclude MIB-
module-name.
MIB-object-
name
Eliminates output for selected MIB objects.
-l file-
search-path
Specifies the subvolumes or directories the MIB compiler should
use to find input files.
-o output-
file-name
Specifies the name of the output file for containing information
generated using the -numbers, -nametree, or -readtree options. If
you omit this option, the MIB compiler file uses an output file
named output, creating it in your local subvolume or directory if
it does not already exist or overwriting information in the file if it
does exist.
-nowarn
Suppresses ASN.1 syntax-checking warning messages. To
suppress warning messages for the last in a series of input files,
specify the -nowarn option before the last input file name. To
suppress warning messages for multiple input files, specify the
-nowarn option before the input file names.