Returns the name of the management server. $OPC_MGMTSV can also be used in automatic and operator-initiated commands.
Availability: From all actions except automatic and operator-initiated commands.
Some variables return TRUE or FALSE, depending on the existence of a specific message attribute. For example, if an automatic action is defined, TRUE is returned. Otherwise FALSE is returned.
If an attribute is empty, an empty string is returned. If you use an attribute that does not exist, it is treated like part of a normal string, which means no evaluation happens and the string remains unchanged. The data returned from variables is exactly the same type as that shown in the Message Properties dialog box. The indexing for word extraction from strings and for access to specific annotations starts with 1, not with 0.
All message variables are replaced per message. This means that if you select two messages, you will receive two requests; each of them might have different values for the parameters.
The same as $OPC_MSG.CMA[name]. Returns the value of the custom
message attribute name. For example, the
$OPC_CUSTOM[device]
variable could return the value
Lan
.
Indicates whether an automatic action is defined. Sample output:
TRUE
Returns the script or program, including its parameters,
performed as an automatic action for the selected message. Sample
output: dist_del.sh 30 warning
Returns the node on which an automatic action has been performed
for the selected message. Sample output:
kernighan.c.com
Returns the current status of the message's automatic action.
The variable can return running, failed, or successful. Sample
output: successful
Indicates whether an operator-initiated action is defined.
Sample output: TRUE
Returns the script or program, including its parameters,
performed as an operator- initiated action for the selected
message. Sample output: ps -ef
Returns the node on which an operator-initiated action has been
performed for the selected message. Sample output:
kernighan.c.com
Returns the current status of the message's operator-initiated
action. The variable can return running, failed, or successful.
Sample output: successful
Indicates whether annotations exist for a message. Returns TRUE
if at least one annotation exists for a message. Otherwise FALSE is
returned. Sample output: TRUE
Returns the nth annotation. Sample output:
Performed Message Correlation;
Message Key Relation:
Message 59d06840-ac4f-71d5-1f67-0f887e320000
with condition id
fe00fa34-9e34-71d5-143e-0f887e320000 ackn'ed
0 messages.
Returns the name of the application related to the selected
message. Sample output: /usr/bin/su(1) Switch User
Same as $OPC_CUSTOM[name].
Returns the date and time the message was created on the managed
node. Sample output: 09/18/01 18:08:08
Returns the number of duplicate messages that have been
suppressed. Sample output: 17
Returns the message group to which the selected message belongs.
Sample output: Security
Returns the text of the instruction. Sample output:
Available space on the device holding the (root) filesystem
is less than the configured threshold. This may lead to
...
Returns the date and time when the last duplicate message was
received on the management server. Sample output: 09/16/01
03:17:23
Returns the message key that is associated with a message.
Sample output: my_appl_down:kernighan.c.com
Returns the unique identification number for the selected
message. Sample output:
217362f4-ac4f-71d5-13f3-0f887e320000
Returns the message IDs (UUIDs) of all the messages currently
selected. IDs are separated by space. Sample output:
85432efa-ab4a-71d0-14d4-0f887a7c0000
a9c730b8-ab4b-71d0-1148-0f887a7c0000
Returns the number of annotations of a message. Sample output:
3
Returns the managed node from which the selected message was
issued. Sample output: kernighan.c.com
Returns the names of all nodes on which the events that
generated currently selected messages took place. The names are
separated by spaces. Duplicate nodes are ignored. Sample output:
kernighan.c.com richie.c.com
Returns the object which was affected by, detected, or caused
the event. Sample output: CPU
Returns the original text of the selected message. Sample
output: SU 09/18 18:07 + 6 root-spooladm
Returns the nth word in the original text of the message. Sample
output: the
Returns the owner of the selected message. Sample output:
opc_op
Returns the date and time the message was received on the
management server. Sample output: 09/18/01
18:08:10
Returns the service name that is associated with the message.
Sample output:
VP_SM:Agent:ServicesProcesses@@kernighan.c.com
Returns the severity of the message. This can be Unknown,
Normal, Warning, Minor, Major, or Critical. Sample output:
Normal
Returns the name of the application or component that generated
the message. Sample output: Message:opcmsg(1|3)
Returns the complete text of the selected message. Sample
output: The following configuration information was
successfully distributed: Templates (OpC30-814)
Returns the nth word in the text of the message text. Sample
output: following
Returns the date and time when the message was acknowledged.
Sample output: 09/18/01 18:11:10
Returns the message type of the message. Sample output:
ECS
Returns the primary node name.
Availability: From all actions except automatic and operator-initiated commands.
Returns the node identifier (GUID) of a node.
Availability: From all actions except automatic and operator-initiated commands.
Returns the identifier (GUID) of a node group.
Returns the display name of a node group.
Returns the ServiceName of a service.
Availability: Supports and fills in the name of the selected service. If a service is not selected, or an action is launched from a Node or Node Group, then these values will be NULL.
Returns the Caption of a service.
Availability: Supports and fills in the caption of the selected service name. If a service is not selected, or an action is launched from a Node or Node Group, then these values will be NULL.
Used to retrieve environment variables from the console that launched the action.
Example: $OPC_ENV(PATH): substitutes the variable with the PATH environment variable from the console machine.
Availability: From the actions launched from configured tools. Not available from the automatic or operator-initiated commands running on the console.