HP Systems Insight Manager 7.2 Technical Reference Guide

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.
Procedure 282 Compiling 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 information
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:
On a Windows operating system, 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.
To view MIBs that are preloaded and registered during HP SIM installation:
On a Windows operating system, enter type "c:\program files\hp\systems
insight manager\MIBs\ cfglist?.list" at the command line.
On UNIX, enter cat /opt/mx/mibs/cfglist*.list at the command line.
These are the default directories. If you changed the install action directory during HP SIM
installation, these commands must use your path instead.
You can register HP MIBs using the CLI. The CLI is the same for all CMS types including Windows,
Linux, and HP-UX operating systems.
When registering a MIB, you do not need to run mcompile on the MIB, especially if the
corresponding .cfg file to that MIB exists. If you run mcompile on a MIB and a .cfg file exists,
a new .cfg is generated, which supersedes the old .cfg file and any changes in the old file. In
most cases with an existing .cfg file, edit the .cfg file to make changes unless a new MIB has
been furnished.
You can then register this .cfg file to the HP SIM database using the mxmib -a or mxmib -f
command.
406 Operations