Compiling a mib – HP Systems Insight Manager User Manual
Page 339
![background image](/manuals/397204/339/background.png)
To edit the .cfg file:
1.
Navigate to the MIB directory:
•
For Windows operating systems, navigate to \program files\hp\systems insight
manager\mibs
.
•
For Linux or HP-UX operating systems, navigate to /opt/mx/mibs.
2.
Run mcompile
mymib.mib to create the .cfg file.
3.
After the .cfg file is created, use an editor of your choice to edit the .cfg file.
To edit trap-specific information in HP SIM:
1.
From HP SIM, select Options
→Events→SNMP Trap Settings.
The SNMP Trap Settings page appears.
2.
Select the MIB name.
3.
Select the trap within the MIB to be edited.
4.
Edit the file with your changes, and click OK to save your changes.
Note: The changes made through the SNMP Trap Settings page are saved to the HP SIM
only. The .cfg and MIB files are not affected.
Related procedures
•
•
•
Related topic
▲
Compiling a MIB
The mcompile command enables you to compile an
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
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:
1.
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 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.
For example:
Managing MIBs 339