ASAP 3.2 Server Manual

HP NonStop ASAP Server Manual Page 90 of 381
Boolean objectives define multiple sets of simplex objectives in a single goal using
AND and OR operators. A Boolean objective generates a critical alert for all
attributes defined in the goal when it fails, and generates a single action and event
if defined for the goal. For example, GOAL CPU 1, BUSYGOAL = (BUSY < 80
AND QUEUE < 2) defines a Boolean goal for the Busy and Queue length
attributes for CPU 1. It states that the CPU must be less than 80% busy and the
queue length must be less than 2. If either of these conditions is not true the goal
will fail. This goal, GOAL CPU 1, BUSYGOAL = (BUSY < 80 OR QUEUE <
2), states that the CPU must be 80% busy or the queue length must be less than
2. Both conditions must be false for the goal to fail.
The six simplex objective operators defined above can be used in Boolean goals;
they can have multiple occurrences of AND and OR operators; and they can be
nested using multiple levels of parenthesis. A total of eight attributes can be
combined in various ways when using Boolean objectives. The evaluation order is
left to right, starting with the innermost set of parentheses.
 DOTs lets you define recovery actions to be to taken when objectives are not met.
Using the ACTION parameter to the ASAP CI RANK command, a user can define
commands to be sent to command interpreters such as SCF and TACL when
specific objectives are not met. For example, the command RANK CPU, STATUS
ACTION "TACL RELOAD <#OBJECT>, PRIME" WAIT 5 causes ASAP to
automatically reload a failed CPU, waiting 5 minutes between attempts. The token
named <#OBJECT> is automatically replaced in the action string with the number
of the failed processor. Other tokens that you can use in action strings for simplex
and escalating goals:
<#ENTITY>
The entity name
<#OBJECT>
The NonStop OS or OSS object name
<#DOMAIN>
The domain name
<#D1>
Leftmost part of a multilevel domain name
<#D2>
2nd part of a multilevel domain name
<#D3>
3rd part of a multilevel domain name
<#D4>
4th part of a multilevel domain name
<#D5>
5th part of a multilevel domain name
<#ATTR>
The attribute name
<#OP>
The objective operator
<#STATE>
The current state of the attribute
<#LASTSTATE>
The last state of the attribute
<#VALUE>
The value of the attribute