The mcompile command enables you to compile an SNMP MIB file into an intermediate format (.cfg) file that can be registered using the mxmib utility for use with HP Systems Insight Manager (HP SIM).
Observe the following tips:
If the MIB file being compiled includes IMPORTS from other MIBs, the imported MIB files should also be located in the same directory as the MIB file being compiled.
Comment lines in MIB files start with "--" and end with a new line or the next occurrence of "--." Beware of MIBs with "-" characters across the entire line. These lines are intended to be comments. However, extra dashes have canceled the first set of "--" characters.
For example:
-- xyz comments out xyz.
However:
-- -- xyz effectively uncomments xyz.
mcompile expects the END keyword at the end of a module on a line by itself. Be sure there is a new line in the MIB file after the END keyword.
mcompile does not allow redefinition of standard data types. If the MIB file being compiled contains such redefinitions, they should be commented out before running mcompile.
To compile a MIB:
Open an MS-DOS® window or UNIX shell.
Run mcompile to compile an SNMP MIB file into an intermediate format (.cfg).
mcompile recognizes the -d option. This option changes to the specified directory to locate and process the MIB file. The intermediate (.cfg) file is always placed in the same directory as the MIB file. By default, mcompile searches for the MIB file in the current directory.