beautypg.com

Mxmib – HP Systems Insight Manager User Manual

Page 156

background image

In this example, TRAP-TYPE and sysName are readily resolved as in the example above.
hpSwitchBladeType2-Mgmt is resolved by mcompile checking HP-SWITCH-PL.MIB. agSlotNumber
is resolved from BLADETYPE2-SWITCH.MIB and ipCurCfgGwIndex is resolved from
BLADETYPE2-NETWORK.MIB

.

To illustrate further how imports are resolved — the following procedure is how mcompile would
attempt to resolve the import for hpSwitchBladeType2-Mgmt:

Procedure 41 How MIB imports are resolved

1.

Search for a file named HP-SWITCH-PL-MIB.mib (module name, uppercase).

2.

Search for a file named HP-SWITCH-PL.mib (module name without -MIB, uppercase).

3.

Search for hp-switch-pl.mib (convert name to lowercase for case sensitivity in
Linux/HP-UX).

4.

Search for hp-switch-pl.mib.mib (convert name to lowercase for case sensitivity in
Linux/HPUX).

5.

Report an error indicating that the imported MIB could not be found.

A major consideration when importing MIBs is locating variables from other third-party MIBs. In
many cases, MIBs are named to match module names. However, in some circumstances it might
be necessary to rename MIB files to match the module names prior to compilation. For example,
some vendors might provide MIB files with different extensions such as .my. In this case, before
using mcompile, the mibfile.my file must be renamed to mibfile.mib.

mxmib

The mxmib tools registers MIBs into the HP SIM database by using their corresponding CFG files.
This tool has the capability to list all registered MIBs, to display a list of traps contained in each
individually registered MIB, and to unregister MIBs that you or the system have previously registered.

IMPORTANT:

While it is possible to unregister MIBs currently registered in the HP SIM database,

HP strongly advises you do not unregister any files that have been registered by default. Doing so
can impair HP SIM's ability to correctly process traps from other HP systems on the network.

If you unregister a MIB from HP SIM, the corresponding received events in HP SIM are automatically
deleted.

mxmib

expects to find all files located in the \mibs directory. Usage for mxmib is as

follows:

mxmib -a
mxmib -f
mxmib -l
mxmib -t
mxmib -d

The switches work as follows:

-a registers a new CFG, , or replaces the data of a previously registered MIB.

-f reads and processes a list of CFGs from a file, , to
register with HP SIM. This file must reside in the \mibs directory and the full CFG
filename must be listed on individual lines. Each line in the file is processed as it would be by
running the mxmib -a command individually on each individual MIB file.

-l lists all the MIBs registered in HP SIM. Supplying no arguments to mxmib defaults to running
mxmib -l.

-t lists the traps in the specified MIB .

-d unregisters a MIB, , from the HP SIM database.

156

Compiling and customizing MIBs