If you are entering text for an action that refers to a command template, the Text value is appended to the Command value you specified in the command template. Typically, there must be a space between the command and the text. If so, you must specify this space explicitly. You can specify the space at the end of the command or at the beginning of the text.
Space entered at the end of the command
Command “test.exe ”
Text “example_text”
Resulting command that is executed: “test.exe example_text”
Space specified at the beginning of the text
Command “test.exe”
Text “ example_text”
Resulting command that is executed: “test.exe example_text”
No text specified
Command “test.exe example_text”
Resulting command that is executed: “test.exe example_text”
You can also use substitution of environment variables as follows:
Command “test.exe ”
Text “Attention:\_CLASS\:\_INSTANCE\:\_ALERTID\:\_TEXT\”
If the alert event report is
TYPE=al | CLASS=unix_host | INSTANCE=ja | ALERTID=ualert1 | SEV=major | APPL=myapp | TEXT=system crash
The resulting command that is executed is
test.exe Attention:unix_host:ja:ualert1:system crash
Note: To see the Command value of the command template the action refers to, expand the Template value in the details pane by clicking the plus sign (+) next to the property name.