28 compiling and customizing mibs, Mib management tools, Mcompile – HP Systems Insight Manager User Manual
Page 163
28 Compiling and customizing MIBs
HP SIM; provides the capability of managing systems through SNMP and by receiving incoming
SNMP trap events. HP SIM ships with many MIBs pre-configured. For a complete list, see
Appendix I “Out-of-the-box MIB support in HP SIM”
.You can use tools provided by HP SIM to
integrate third-party (non-HP) SNMP v1/v2 MIBs into HP SIM and to provide support for processing
and displaying traps from other systems. The MIB syntax extensions supported by HP SIM provide
additional value in customizing specific trap information. Finally, the set of MIBs included with HP
SIM to provide out-of-the-box support for many HP systems.
Integration of third-party MIBs is a topic for advanced users of HP SIM. Most vendors tend to loosely
follow industry standards for the development of MIBs and MIB compilers. Therefore, it is often the
case that MIBs require some changes and customization on the part of the end-user to properly
integrate the MIBs with a management application such as HP SIM.
This chapter frequently references directories and tool locations throughout the HP SIM directory
structure. This directory structure varies depending upon your installation choices and on the
operating system under which you have installed HP SIM. Typical installation paths are as follows:
Windows
•
C:\Program Files\HP\Systems Insight Manager\
as the
directory
•
C:\Program Files\HP\Systems Insight Manager\mibs
for all MIB and CFG files
•
C:\Program Files\HP\Systems Insight Manager\lbin
for mcompile
•
C:\Program Files\HP\Systems Insight Manager\bin
for mxmib
HP-UX and Linux
•
/opt/mx
as the
•
/opt/mx/mibs
for all MIB and CFG files
•
/opt/mx/bin
for mcompile and mxmib
NOTE:
Compiling MIBs into HP SIM only enables the console to receive SNMP traps from systems.
This does NOT extend the data collection mechanism to collect data points from the compiled MIBs
into the database. This type of functionality is currently not available in HP SIM.
MIB management tools
HP SIM provides three tools for use with MIB integration and trap customization. MIBs are registered
with HP SIM using two command-line tools. These tools are only accessible to the administrator or
root user of the operating system. They are:
•
mcompile
•
mxmib
In addition, HP SIM provides a GUI tool to display and edit the trap settings for MIBs already
compiled using the command-line tools listed above. This tool is the SNMP Trap Settings page.
The remainder of this section discusses each of the tools provided and elaborates on their specific
usage.
mcompile
The mcompile tool verifies the syntax of all MIBs to be loaded into the system. mcompile resolves
all MIB dependencies and, where necessary, converts SNMP v2 MIBs into v1 format for loading
into the HP SIM database. mcompile is located in the
run from the
directory by default so any MIB that you intend to register should be copied to the
directory. While mcompile does provide some capability to specify a different directory to search
MIB management tools 163