HP Systems Insight Manager 7.2 Technical Reference Guide
3. Enter vi file.mib from a shell prompt.
Editing a MIB
The HP MIBs configuration (.cfg) file can be edited with trap specific information, such as:
• TYPE. This is a simplified form of the actual trap name. Change the type if it does not describe
the device for you.
• SEVERITY. Some vendors use the default INFORMATIONAL for severity levels. Change the
severity to a level that reflects your judgment of the problem. Alternatively, you can change
a Major or Critical severity for a trap message that is not a critical situation in your environment.
Only you know if this is the case. The only valid options for HP SIM include: Critical, Major,
Minor, Warning, and Informational.
• MSG_FORMATTER. This string constructs enhanced messages that can be sent to a pager or
e-mail address. This string can be modified in the REV or the MIB.
• ENABLE. By default, all traps are enabled. Trap handling gives you control over the volume
of messages. Disable nuisance messages, such as unnecessary informational messages or
repeated trap messages for an event that has not been corrected.
• DESCRIPTION. This is vendor-supplied. Replace it with specific instructions, a precise reference
source, or a website referral.
• CATEGORY. This lists the HP SIM category types and UNKNOWN.
Procedure 280 Editing 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 to edit the .cfg file.
Procedure 281 Editing 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 in the MIB.
4. Edit the file with your changes, and then click OK to save your changes.
The changes made through the SNMP Trap Settings page are saved to the HP SIM database
only. The .cfg and MIB files are not affected.
Related information
Compiling a MIB
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 SIM.
Observe the following tips:
• To compile a MIB, you must copy the .MIB file to 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
Managing MIBs 405