Learning How to Create Behavior Models
-
How to Define Conditional Actions with Action Router - How to use Action Router -
In this scenario, you keep getting paged for non-critical nodes. You want to reserve paging for times when specific nodes go down and use email for other nodes.
You will use Action Router to achieve this objective.
This scenario includes three activities:
This first activity will step you through the process of defining a set of conditions under which the Action Router rule will perform the paging action.
To define a rule condition in Action Router:
Admin
menu, choose Action Router Rule List
.
NerveCenter displays the Action Router Rule List window.
New
.NerveCenter displays the Action Router Rule Definition window.
The Action Router Rule Definition window allows you to examine, change, and create a rule's conditions and actions.
Name
field, type PagingTest
.This rule will determine by the property group of the node if NerveCenter should page an administrator or send an email.
if (
in the Rule Condition window.
Node variables
. From the secondary pop-up menu, select $NodePropertyGrp
.
$NodePropertyGrp appears in the Rule Condition
text field.
Rule Condition
text field, type eq
after $NodePropertyGrp.
More
to expand the Rule Condition page.
The expanded Rule Condition page provides a list of all the available objects in the NerveCenter database, so that you do not need to worry about correctly typing the names.
Condition Type
list, select PropertyGroup
.
A list of available property groups appears in the PropertyGroups
text box.
PropertyGroups
list, double-click CriticalDevices
.
CriticalDevices appears in the expression in the Rule Condition
text box.
if( $NodePropertyGrp eq `CriticalDevices') {
return TRUE;
}
else {return FALSE;
}
The Completed Rule Condition of PagingTest
You have just completed building a Rule Condition that tells the Action Router to perform the Rule Action when the node does not belong to the property group CriticalDevices. The next activity will explain how you tell Action Router which actions to perform.
In the last activity you defined the conditions under which the Action Router would perform the actions of the PagingTest rule. You specified that it should carry out the rule actions if the node in question has the CriticalDevices property group.
This activity will step you through the process of defining the action that this rule will carry out should the rule conditions equal true.
To define a rule action in Action Router:
Rule Action
tab.NerveCenter displays the Rule Action page.
New Action
. From the list of actions, select Paging
.The Paging Action window appears.
Pager Number
field, type your pager's phone number.The pager number is the sequence of digits and special Hayes AT commands the Paging action needs to reach the pager. For a list of valid commands, see your modem manual.
Alarm Code
field, either type a number that identifies the network situation being reported or leave it set to the default. The alarm code is a sequence of digits displayed on the pager. The maximum number of digits varies from pager to pager. If you don't supply an alarm code, a default value of 911 is used.
Terminate
field, type the character that terminates the paging connection on your pager. This character is a key used by the paging system to terminate the connection and send the page. If differs from system to system, but is usually # (pound sign) or * (asterisk). Consult your paging system manual to determine the correct key for your system. If you don't specify a key, the Paging action uses the default value #.
OK
.
The Paging action appears in the Rule Action
action list.
Save
. Select Cancel
to close.
The PagingTest rule now appears in the Rule Definition
list.
The Action Router is now available to be used as an alarm action. The next activity will step you through the process of modifying an alarm to include this action.
In the previous activity you defined a rule in Action Router that would page you only when the node in question is part of the CriticalDevices property group.
This activity will step you through the process of modifying the 1BusyNode alarm to include the Action Router action.
To use Action Router in an alarm:
Admin
menu, choose Alarm Definition List
.
NerveCenter displays the Alarm Definition List window.
1BusyNode
alarm.The Alarm Definition window for 1BusyNode appears.
The Transition Definition window appears.
New Action
. From the alarm action list select Action Router
.
The Action Router action is added to the Actions
list.
OK
.
Save
.Now, any time one of the devices in the CriticalDevices property group becomes overwhelmed, in addition to sending the trigger nodeTooBusy to the alarm 1BusyEnterprise, it will also have the Action Router perform its actions.
You have just used Action Router to define a conditional action in your behavior model.
Chapter 9, How to Reset Your Environment will explain how to reset your network environment.
What is Action Router? | Review and Summary |
29 July 2003 |