HP Systems Insight Manager 5.2 Update 2 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 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.
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 Systems Insight Manager (HP SIM) ships with HP MIBs that are registered at installation. In addition, a
number of precompiled
MIBs
are included in the form of .cfg files. These MIBs can be registered at your
convenience. A number of those .cfg files have been edited. If the corresponding MIB is recompiled, then
those edits are lost.
To view a list of currently registered MIBs, including MIBs that 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 409