Previous Topic: Define an Action Sequence

Next Topic: Define a Schedule


Substitution Parameters

In predefined and custom action types and in action sequences, you can use substitution parameters which are replaced by a value when the action is run. Parameters can be selected from drop-down menus of those options where they can be used.

Note: You can use only one substitution parameter for an option.

The following substitution parameters are available:

%SERVER%

The name of the current server. This parameter can be used only for actions assigned to a rule that is created on the server level.

%SERVICE%

The names of all services to which the server belongs, separated by commas. This parameter can be used only for actions assigned to a rule that is created on the service level.

%ACTIONNAME%

The name of the current action. Valid only for actions assigned to a rule.

%RULENAME%

The name of the rule to which the action is assigned. Valid only for actions assigned to a rule.

%EVENTSOURCE%

The source of the event (a system or component). Valid only for actions assigned to the event type rule evaluation.

%EVENTMESSAGE%

The message that the event generates. Valid only for actions assigned to the event type rule evaluation.

The %EVENTMESSAGE[P,0]% and %EVENTMESSAGE[“Regex”]% formats are used for extracting values from messages.

%VMNAME%

The virtual machine name used in string substitution. This parameter can only be used for a virtual machine node of the VMware vCenter Server.

%DATACENTER%

The Datacenter name used in string substitution. This parameter can only be used for a virtual machine node of the VMware vCenter Server.

%HOSTSYSTEM%

The host system used in string substitution. This parameter can only be used for a virtual machine node of the VMware vCenter Server.

%VCSERVER%

The VMware vCenter Server name. This parameter can only be used for a virtual machine node of the VMware vCenter Server.

%STDOUT%

Standard output. This parameter can only be used for an action sequence.

%STDERR%

Standard error. This parameter can only be used for an action sequence.

%EXITCODE%

The exit code returned when the action is run. This parameter can only be used for an action sequence.

%AutoIncrement(0)%, %AutoDecrement(0)%

These parameters are used for automatically generated text. They increase or decrease the counter by 1 in each run. The initial value (represented by the number in parentheses) is set by the user.