Mxmib – HP Systems Insight Manager User Manual

Page 117

Advertising
background image

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 26-1 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 Systems Insight Manager

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

If you unregister a MIB from Systems Insight Manager, the corresponding received events in Systems Insight
Manager are automatically deleted.

mxmib

expects to find all files located in the <BASE>\mibs directory. Usage for mxmib is as follows:

mxmib -a <myfile.cfg>

mxmib -f <mylist.list>

mxmib –l

mxmib -t <myfile.mib>

mxmib -d <myfile.mib>

The switches work as follows:

-a registers a new CFG, <myfile.cfg>, or replaces the data of a previously registered MIB.

-f reads and processes a list of CFGs from a file, <mylist.list (one mibname per line)>, to register with
Systems Insight Manager. This file must reside in the <BASE>\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 Systems Insight Manager. Supplying no arguments to mxmib defaults
to running mxmib –l.

-t lists the traps in the specified MIB <myfile.cfg>.

-d unregisters a MIB, <myfile.cfg>, from the Systems Insight Manager database.

The initial command to register the file uses the .cfg extension, but all subsequent commands refer to the
file by its .mib extension.

IMPORTANT:

mxmib

is order sensitive. While the command enables you to compile MIBs whose

dependencies have not been compiled, for optimal results, HP recommends that you register MIBs with
Systems Insight Manager in order of dependency. If you do not compile MIBs in order of dependency,

MIB management tools

117

Advertising