mkb syntax


The following figure shows the syntanx for the mkb command.

mkb syntax

mkb [-h|-?] [-z] [-q] [-v] [-n <CellName> | -n @Host[/Port[#Key]] ]
[-f <ManifestFile>] [-b <BinFile>] [-c <ClassFile>] [-d <DataFile>] [-a <Arch>]
[-j <RecordFile>] [-l <LibFile>] [-m <Directory>] [-o <CollectorFile>] [-p] [-r <RuleFile>]

The following table lists the command-specific options for mkb. For a list of common command options that apply to all CLI commands, see Event-management-common-command-options.

mkb options

Option

Description

-a Arch

Specifies the platform architecture

-b BinFile

Binary file name

-c ClassFile

Imports the specified ClassFile.baroc that defines the class definitions

-d DataFile

Imports the specified_DataFile_.baroc that defines data instances

-f manifest

Specifies the path to the manifest.kb file

-j RecordFile

Imports RecordRile.baroc that defines the record definitions

-l LibFile

Imports the specified library file (filename.wic ) 
Note: The -l option for the mkb command overrides the -loption in  Common options for event management CLI commands.

-m Directory

Creates a new Knowledge Base directory hierarchy based on the contents of the designated manifest.kb file

-o CollectorFile

Imports the specified CollectorFile.mrl that defines the collector definitions

-p

Prints the contents of the designated manifest.kb file, along with the names of the .load files in the various directories comprising the Knowledge Base 
Note: The -p option for mkb overrides the common CLI -poption listed in Event-management-common-command-options

-r RuleFile

Imports the specified_RuleFile_mrl that defines the rule definitions

Use the options described in the following table to add new files to the Knowledge Base that you specified with the -f option. The new files are also described in the following table:

mkb new file options

mkb option

Description

-a Arch

 

Specifies the platform architecture:

  • h - HP-UX
  • l - Linux
  • p - AIX (Power PC)
  • s - Solaris (Sparc)
  • w - Microsoft Windows (Intel)

 

-b BinFile

Adds the binary file (BinFile) for the architecture

-c ClassFile

Adds the class file (ClassFile to the designated Knowledge Base

-o CollectorFile

Adds the collector file (CollectorFile) to the designated Knowledge Base

-d DataFile

Adds the data file (DataFile) to the designated Knowledge Base

-l LibFile

Adds the library file (LibFile) to the designated Knowledge Base 
Note: The -l option for the mkb command overrides the -loption in Event-management-common-command-options

-r RuleFile

Adds the rule file (RuleFile) to the designated Knowledge Base

Each of the above options causes mkb to copy the designated files into the proper Knowledge Base directory and adds information to the .load file of that directory.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC TrueSight Infrastructure Management 11.3.07