HP Systems Insight Manager 5.3 Technical Reference Guide

Observe the following tips:
To compile a
MIB
, you must copy the .MIB file to the the default MIB directory.
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 cancel the first set of "--" characters.
Examples:
-- 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.
To compile a MIB:
1. Navigate to the HP SIM root directory and open an MS-DOS® window or UNIX shell.
2. 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 MxMib expects the .cfg file to reside in MIBs directory. It is convenient to
have both files in that directory as the output of mcompile (.cfg) will be in the directory where mcompile
either compiles or is directed to compile in.
For example:
cd
mibsdir
mcompile mymib.mib
or
if you are not running in the MIBs directory:
mcompile -d mibsdir mymib.mib
3. Run mxmib to register the MIB with HP SIM.
For example:
MxMib -a mymib.cfg
Related procedures
Registering a MIB
Unregistering a MIB
Viewing a MIB
Editing a MIB
Related topic
Managing MIBs
Registering a MIB
HP SIM ships with HP MIBs that are registered at installation. In addition, many precompiled
MIBs
are
included in the form of .cfg files. You can register these MIBs at your convenience. Many .cfg files have
been edited. If the corresponding MIB is recompiled, those edits are lost.
To view a list of registered MIBs, including MIBs you have registered:
In Windows, enter dir "c:\program files\hp\systems insight manager\MIBs\ *.MIB"
at the command line.
On UNIX, enter ls /opt/mx/mibs/*.mib at the command line.
Managing MIBs 429