HP Systems Insight Manager 7.2 Command Line Interface Guide

2 Command descriptions
This chapter describes the commands in the HP SIM 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.
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 via the mxmib utility for use with HP SIM. 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.
Options
-d mib file directory
Change to the specified directory to locate and process the MIB file. The mib
file directory must include the absolute path name. The CFG file is placed
in the same directory. By default, mcompile looks for the MIB file in the current
directory and places the CFG file in the current directory.
filespec
Enter the name of the MIB file.
Return values
MeaningValue
Successful completion.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:
mcompile 15