eval statement syntax for poll definition variables

You can evaluate poll definition variables, such as the name of a poll definition or the severity of failure events raised by policies using a poll definition, using the eval statement.

The POLL keyword can be used in threshold expressions or descriptions to evaluate the value of poll definition variables. The following examples illustrate how to evaluate poll definition variables using the POLL keyword in the eval statement.

Sample: Evaluation of the value of poll definition name and associated event severity

The following example can be used in a threshold expression or threshold description, and shows how to evaluate the value of name of the poll definition and the severity of the events generated by poll policies that use this poll definition.
Poll policies that use the eval(text, '&POLL.TEMPLATENAME') poll definition generate events with severity eval(text, '&POLL.EVENTSEVERITY')

Attributes of the POLL keyword

Valid attributes of the POLL keyword are listed in the following table.
Table 1. Attributes of the POLL keyword
Attribute Description
TEMPLATEID Unique identifier for this poll definition.
TEMPLATENAME Name of this poll definition.
TEMPLATETYPE Type of poll definition. This value is derived from the list the user is presented with when creating a new poll definition.
EVENTNAME Text identifier to be used for events raised by poll policies that use this poll definition. This text is written to the alerts.status table as the EventId field, unless the text is modified by the rules file of the probe for Tivoli Netcool/OMNIbus (nco_p_ncpmonitor).
EVENTSEVERITY Severity of failure events raised by poll policies using this poll definition. This text is written to the alerts.status table as the Severity field, unless the text is modified by the rules file of the probe for Tivoli Netcool/OMNIbus (nco_p_ncpmonitor).
POLLINTERVAL Interval in seconds at which each entity in scope for this poll is polled.