msetrec


Use the msetrec command to set the field values in a global record. Global records are defined in the records directory of a Knowledge Base. The cell uses global records as global variables in rules.

msetrec syntax

The following figure shows the syntax for msetrec.

msetrec syntax

msetrec [-h|?] [-z] [-q] [-c <ConfigFile>]
{-p <Var=Value>} [-n <cellName> | -n @Host[/Port[#Key]]]
-r <Record> -S <Slot> -V <Value>

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

msetrec options

Option

Description

-p Var=Value

Assigns the specified value (Value) to the option (Var)

-r Record

Specifies the global record containing the Slot to be modified

-S Slot

Specifies the Slot to be modified

-V Value

Specifies the Value to set for the specified Slot

msetrec example

The following figure shows an example of msetrec.

Example of msetrec

msetrec -n <cellName> -r test_rec -S slot_list_int -V '[4,5,6]' 

msetrec return codes

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

msetrec return codes

Code

Description

31

Failed to set record slot

 

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