HP Systems Insight Manager 6.3 Command Line Interface Guide

2 Command descriptions
This chapter describes the commands in the Systems Insight Manager CLI. The commands in this
chapter use the following conventions:
Optional items are enclosed in square brackets [ ].
Required parameters are in italics.
The | character indicates a choice between options.
Curly brackets { } indicate an option that requires one or more values.
mcompile
Compiles SNMP mib files into intermediate format (.cfg) files for registering into Systems Insight
Manager through the mxmib utility.
Synopsis
mcompile [–d mib file directory ] filespec
Description
The mcompile command enables you to compile an SNMP MIB file into an intermediate format
(CFG) file that can be registered through the mxmib utility for use with Systems Insight Manager.
If the MIB file being compiled includes IMPORTS from other MIBs, the imported MIB files must be
in the same directory as the MIB file being compiled. If the imported MIB file does not exist in the
directory, mcompile obtains the correct MIB filename from the user.
Options
mcompile recognizes the following options:
-d
Change to the specified directory to locate and process the MIB file. The intermediate
(.cfg) file will be placed in the same directory. By default, mcompile looks for
the MIB file in the current directory and places the intermediate (.cfg) file in the
current directory.
Return values
MeaningValue
The operation completed successfully.0
An error occurred during operation.>0
Examples
Example 1
To compile the MIB file cpqHost.mib located in the mibs folder in the current directory, enter
mcompile -d mibs cpqHost.mib.
Example 2
To compile the MIB file cpqHost.mib located in the c:\test\mibs directory, enter mcompile
-d c:\test\mibs cpqHost.mib.
The output will be similar to the following:
16 Command descriptions