mclassinfo examples


The examples in this section show the usage of the mclassinfo command.

Obtaining a list of classes

To obtain a list of classes used by a cell named grace, type the command shown in the following figure:

Example of mclassinfo command for a list of classes

mclassinfo -n grace -a 0

Example output of mclassinfo command for a list of classes

Class: CORE_EVENT
   Class: MC_CELL_CONTROL
      Class: MC_CELL_START
      Class: MC_CELL_STOP
      Class: MC_CELL_TICK
      Class: MC_CELL_STATBLD_START
      Class: MC_CELL_STATBLD_STOP
      Class: MC_CELL_DB_CLEANUP
      Class: MC_CELL_CONNECT
         Class: MC_CELL_CONNECT_RESOURCES_EXPANDED
         Class: MC_CELL_CONNECT_SUSPENDED
         Class: MC_CELL_CONNECT_RESUMED
      Class: MC_CELL_CLIENT

Obtaining a list of slot names

To obtain a list of slot names used by a cell named grace, type the command shown in the following figure:

Example of mclassinfo command for list of classes

mclassinfo -n grace -a 1

The following figure shows an example of the output.

Example of mclassinfo command output for list of classes

Class: CORE_EVENT
 Slot: event_handle
 Slot: mc_ueid
 Slot: source
 Slot: sub_source
 Slot: hostname
 Slot: origin

Adding slot names and representation types

To add slots names and representation types for use by a cell named grace, type the command shown in the following figure:

Example of mclassinfo command for adding slot names

mclassinfo -n grace -a 2

The following figure shows an example of the output.

Example of mclassinfo command output for adding slot names

Class: CORE_EVENT -Flags: p
 Slot: event_handle - Type: INTEGER
 Slot: mc_ueid - Type: STRING
 Slot: source - Type: STRING
 Slot: sub_source - Type: STRING
 Slot: hostname - Type: STRING
 Slot: origin - Type: STRING

Adding slot flags and default values

To add slot flags and default values for use by a cell named grace, type the command shown in the following figure:

Example of mclassinfo command for adding slot flags

mclassinfo -n grace -a 3

The following figure shows an example of the output.

Example of mclassinfo command output for adding slot flags

Class: CORE_EVENT -Flags: p
 Slot: event_handle - Type: INTEGER - Flags: rkpdh - Def: 0
 Slot: mc_ueid - Type: STRING - Flags: rkPdh - Def:
 Slot: source - Type: STRING - Flags: rkPdh - Def:
 Slot: sub_source - Type: STRING - Flags: rkPdh - Def:
 Slot: hostname - Type: STRING - Flags: rkPdh - Def:
 Slot: origin - Type: STRING - Flags: rkPdh - Def:.

 

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

BMC ProactiveNet 9.6