Registering a mib, Registering a mib in hp sim – HP Systems Insight Manager User Manual

Page 340

Advertising
background image

cd

mibsdir

mcompile mymib.mib

or

if you are not running in the MIBs directory:

mcompile -d

mibsdir mymib.mib

3.

Run mxmib to register the MIB with HP SIM.

Related procedures

Registering a MIB

Unregistering a MIB

Viewing a MIB

Editing a MIB

Related topic

Managing MIBs

Registering a MIB

HP Systems Insight Manager (HP SIM) ships with HP MIBs that are registered at installation. In addition, a
number of precompiled

MIBs

are included in the form of .cfg files. These MIBs can be registered at your

convenience. A number of those .cfg files have been edited. If the corresponding MIB is recompiled, then
those edits are lost.

To view a list of currently registered MIBs, including MIBs that you have registered:

In Windows, enter dir "c:\program files\hp\systems insight manager\MIBs\ *.MIB"
at the command line.

On UNIX, enter ls /opt/mx/mibs/*.mib at the command line.

To view MIBs that are preloaded and registered during HP SIM installation:

In Windows, enter type "c:\program files\hp\systems insight manager\MIBs\
cfglist?.list"

at the command line.

On UNIX, enter cat /opt/mx/mibs/cfglist*.list at the command line.

NOTE:

These are the install directories. If you changed the install directory during the HP SIM installation,

these commands must reference your path instead.

HP MIBs can be registered using the command line interface (CLI). The CLI is the same for all CMS types
including Windows, Linux, and HP-UX.

NOTE:

When registering a MIB, it is not always necessary to run mcompile on the MIB especially if the

corresponding .cfg file to that MIB already exists. If you run mcompile on a MIB and a .cfg file exists,
a new .cfg is generated, which supersedes the old .cfg file and any changes in the old file will not be
active. In most cases with an existing .cfg file, it is desirable to edit the .cfg file to make changes unless
a new MIB has been furnished.

This .cfg file can then be registered to the HP SIM

database

using the mxmib -a or mxmib -f command.

Registering a MIB in HP SIM

1.

Open an MS-DOS window or UNIX shell.

2.

Use an editor of your choice to create a file containing a list of the .cfg files to be registered. One
.cfg

per line.

3.

Run mxmib -f

cfglist.list to import a list of MIBs into HP SIM. After the MIB is registered in HP SIM,

you can use mxmib to list or delete the MIB from HP SIM.

Note: You can also use mxmib -a

mymib.cfg to register a single MIB.

Note: The .cfg file being registered must be in the MIBs directory.

340 Tools that extend management

Advertising