Jump to content English
hp.com home
HP Systems Insight Manager  |  Using Default Tools  |  MIBs  |  Compiling a MIB

MIBs
Compiling a MIB

» HP Systems Insight Manager

»Table of Contents
»Index
»Product Overview
»Getting Started
»Monitoring Systems, Events, and Clusters
»Using Tasks
»Using Default Tools
»Command Line Tools
»Cluster Monitor
»Custom Command Tools
»Device Ping
»Disk Thresholds
»Storage Integration
»License Manager
»Managing Tools
»Plug-in Tools
»Property Pages
»Replicate Agent Settings
»MIBs
»Viewing a MIB
»Editing a MIB
Compiling a MIB
»Registering a MIB
»Unregistering a MIB
»System Management Homepage
»System Page
»Version Control
»Database Tables
»Reporting
»Administering the Software
»Troubleshooting
»Printable Version
»Glossary
»Using Help
Content starts here
» Related Procedures
» Related Topic

The mcompile command allows the user to compile an SNMP MIB file into an intermediate format (.CFG) file that can be registered by way of the mxmib utility for use with HP Systems Insight Manager.

Observe the following tips:

  • If the MIB file being compiled includes IMPORTS from other MIBs, the imported MIB files should also be located in the same directory as the MIB file being compiled.

  • Comment lines in MIB files start with "--" and end with a new line or the next occurrence of "--". Beware of MIBs with "-" characters across the entire line. These lines are intended to be comments. However extra dashes have cancelled the first set of "--" characters.

    For example:

    -- xyz comments out xyz

    however

    -- -- xyz effectively uncomments xyz

  • mcompile expects the END keyword at the end of a module on a line by itself. Make sure there is a new line in the MIB file after the END keyword.

  • mcompile does not allow redefinition of standard data types. If the MIB file being compiled contains such redefinitions, they should be commented out before running mcompile.

To compile a MIB:

  1. Open a DOS window or UNIX shell.

  2. Run mcompile to compile an SNMP MIB file into an intermediate format (.CFG).

    mcompile recognizes the -d option. This option changes to the specified directory to locate and process the MIB file. The intermediate (.CFG) file is always placed in the same directory as the MIB file. By default, mcompile searches for the MIB file in the current directory.

    For example:

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

Related Procedures

» MIBs - Registering a MIB
» MIBs - Unregistering a MIB
» MIBs - Viewing a MIB
» MIBs - Editing a MIB

Related Topic

» Using Default Tools - MIBs