beautypg.com

26 compiling and customizing mibs, Mib management tools, Mcompile – HP Systems Insight Manager User Manual

Page 117

background image

26 Compiling and customizing MIBs

Systems Insight Manager; provides the capability of managing systems through SNMP and by receiving
incoming SNMP trap events. Systems Insight Manager ships with many MIBs pre-configured. For a complete
list, see

Out-of-the-box MIB support in Systems Insight Manager

.You can use tools provided by Systems Insight

Manager to integrate third-party (non-HP) SNMP v1/v2 MIBs into Systems Insight Manager and to provide
support for processing and displaying traps from other systems. The MIB syntax extensions supported by
Systems Insight Manager provide additional value in customizing specific trap information. Finally, the set
of MIBs included with Systems Insight Manager to provide out-of-the-box support for many HP systems.

Integration of third-party MIBs is a topic for advanced users of Systems Insight Manager. 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 Systems Insight Manager.

This chapter frequently references directories and tool locations throughout the Systems Insight Manager
directory structure. This directory structure varies depending upon your installation choices and on the
operating system under which you have installed Systems Insight Manager. Typical installation paths are as
follows:

Windows

C:\Program Files\HP\Systems Insight Manager\

as the installation 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 installation directory

/opt/mx/mibs

for all MIB and CFG files

/opt/mx/bin

for mcompile and mxmib

NOTE:

Compiling MIBs into Systems Insight Manager 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 Systems Insight Manager.

MIB management tools

Systems Insight Manager provides three tools for use with MIB integration and trap customization. MIBs are
registered with Systems Insight Manager 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, Systems Insight Manager 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 Systems
Insight Manager database. mcompile is located in the \lbin directory and should be run from
the \mibs directory. mcompile looks for all MIB files in the \mibs directory by default
so any MIB that you intend to register should be copied to the \mibs directory. While mcompile
does provide some capability to specify a different directory to search for MIBs, as a best practice HP strongly
recommends you place all MIBs in the \mibs directory. Usage for mcompile is as follows:

mcompile [-d <dirspec>] <mibfile>

MIB management tools

117