13.12.2012 Views

HP OpenView Operations Administrator's Reference - filibeto.org

HP OpenView Operations Administrator's Reference - filibeto.org

HP OpenView Operations Administrator's Reference - filibeto.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples of Message-related Variables<br />

This section contains examples of messages-related variables and<br />

parameters you can use to perform daily tasks.<br />

Configuring OVO<br />

About Variables<br />

❏ Accessing Message Attributes<br />

You can access all message attributes with the following variable:<br />

$OPC_MSG.ATTRIBUTES<br />

All you would need to do is add an attribute name.<br />

For example, to get text of a message, you would use the following:<br />

$OPC_MSG.TEXT<br />

Also when working with attributes that represent strings, you can<br />

access a specific word.<br />

For example, to get the fourth word in the text of a message, you<br />

would use the following:<br />

$OPC_MSG.TEXT[4]<br />

Annotations are an exception to this rule. In annotations, an index<br />

specifies the annotation that are returned.<br />

For example, you would access the seventh annotation of the current<br />

selected messages with the following:<br />

$OPC_MSG.ANNOTATIONS[7]<br />

❏ Finding Duplicate Messages<br />

If you need information about the number of message duplicates for<br />

an application, you would use the following:<br />

$OPC_MSG.DUPLICATES<br />

❏ Extracting Creation Time and Severity<br />

If want to do some statistical calculations, you would specify the<br />

message creation time and the severity, as follows:<br />

$OPC_MSG.CREATED<br />

$OPC_MSG.SEVERITY<br />

Chapter 2 199

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!