HP

HP Systems Insight Manager Technical Reference Guide

English
  Tools that Extend Management  |  Managing MIBs  |  Compiling a MIB   

Compiling a MIB

»Table of Contents
»Index
»Notices
»Introduction
»Product Overview
»Getting Started
»Discovery and Identification
»Users and Authorizations
»Networking and Security
»Monitoring Systems, Clusters, and Events
»Storage Integration
»Managing with Tasks
»Tools that Extend Management
»Cluster Monitor
»Command Line Tools
»Creating New Command Line Tools
»Custom Commands
»Configuring DMI Access
»Configuring SNMP Access
»Device Ping
»Disk Thresholds
»License Manager
»Management Processor Tools
»Managing MIBs
»Viewing a MIB
»Editing a MIB
Compiling a MIB
»Registering a MIB
»Unregistering a MIB
»Installing OpenSSH
»PMP Tools
»Removing and Restoring Tools
»Replicate Agent Settings
»RPM Package Manager
»Server Migration Pack
»System Management Homepage
»System Page
»Version Control
»Virtual Machine Management Pack
»WBEM Based Tools
»Available MSA Tools
»Partner Applications
»Reporting
»Administering Systems and Events
»Troubleshooting
»Reference Information
»Printable version
»Glossary
»Using Help
» Related Procedures
» Related Topic

The mcompile command enables you to compile an SNMP MIB file into an intermediate format (.cfg) file that can be registered using the mxmib utility for use with HP Systems Insight Manager (HP SIM).

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 canceled 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. Be 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 an MS-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 SIM.

Related Procedures

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

Related Topic

» Tools that Extend Management - Managing MIBs