MIB Manager command-line options
MIB Manager has a command-line utility that you can use to import MIB data and export rules files. You can issue commands manually or call them programmatically.
$NCHOME/omnibus/bin/nco_mibmanager_batch [options]
%NCHOME%\omnibus\bin\nco_mibmanager_batch [options]
On Windows operating systems, the output from MIB Manager is displayed in a new console.
The following table describes the available command-line options. The -exportmibs, -exportobjects, and -exportoids options can parse regular expressions that conform with the Java pattern engine.
Use full directory paths when you specify directories. For example: nco_mibmanager_batch -importdir "C:\anydir\mibs"
Command-line option | Description |
---|---|
-clean | Use this option when you first run the MIB Manager command-line utility, if you previously used the MIB Manager graphical utility. If you do not use this option, an error is displayed. |
-exportdir string | Use this option to specify the directory to
which generated rules files are exported. Enclose the directory path
in double quotation marks ("). For example:
|
-exportmibs string | Use this option to specify the name of the MIB
to be exported. You can use regular expressions to specify multiple
MIBs. For example, the following command exports objects from a
MIB named
The following command exports
objects from all MIBs whose names contain
|
-exportnewdirectory | Use this option to specify that exported files
are written to a new directory, within the existing export directory.
The new subdirectory is automatically named with a time stamp. Use
this option to ensure that existing rules files are not overwritten. For example:
|
-exportobjects string | Use this option to specify the name of the MIB
object to be exported. You can use regular expressions to specify
multiple objects. For example, the following command exports all
objects named
The following
command exports all objects whose names begin with
|
-exportoids string | Use this option to specify the OID to be exported.
You can use regular expressions to specify multiple OIDs. For example,
the following command exports all objects with the OID
The following
command exports all objects whose OIDs begin with
The following
command exports all objects with the OIDs
|
-exportscope ALL|TRAPS|OBJECTS |
Use this option to specify which type of MIB
objects are exported. This option takes the following values:
For example:
|
-filetype csv| |
Use this option to specify the file format in
which the generated files are exported. This option is required for
export operations. The available parameters are as follows:
|
-help | Use this option to display help information about the command-line options. |
-importdir string | Use this option to specify the directory from
which MIB files are imported. Enclose the directory path in double
quotation marks ("). For example:
|
-importdirtraverse | Use this option to specify that MIB Manager traverses subdirectories when it is searching for
MIB files to import. For example:
|
-messagelevel ERROR|WARN| |
Use this option to specify the level of message
logging. This option takes the following values:
|
-messagelog string | Use this option to specify the directory to
which the message log file, mibmanager.log, is
written. Enclose the directory path in double quotation marks ("). The default is NCHOME/omnibus/log. |
-searchpath string | Use this option to specify a semicolon delimited
list of directories that MIB Manager can search to resolve MIB dependencies. Enclose
the directory path in double quotation marks ("). For example:
The following command searches 3 specific directories for dependencies:
|