Designing and Managing Behavior Models - Alarm Actions - Set Attribute -
Send Trap      SMTP Mail

Set Attribute

The Set Attribute alarm action enables you to set selected attributes of an alarm, a mask, a poll, or a node. For alarms, masks, and polls, you can turn an object on or off. For nodes, you can assign the node a property group, or you can suppress or unsuppress the node.

A good example of the use of this action occurs in the predefined alarm DwnStrmSnmpStatus, which is part of a behavior model that suppresses alarms from nodes that are downstream from a router that is down. The state diagram for this alarm is shown in DwnStrmSnmpStatus Alarm.

DwnStrmSnmpStatus Alarm

DwnStrmSnmpStatus

When the behavior model discovers that a node is unreachable because of a router that is down, it fires the trigger Down and uses the Set Attribute action to turn suppression on for the node it is tracking. Suppressing the node causes all insuppressible polls to stop polling the node. Similarly, if the poll IcmpPoll or IcmpFastPoll (both of these polls are insuppressible) determines that the node is reachable again, the alarm uses the Set Attribute action to turn suppression off for the node. At this point, normal polling resumes.

 
  To add a Set Attribute alarm to a transition:

  1. From the Transition Definition window, select the New Action button.

    A pop-up menu listing all alarm actions is displayed.

  2. Select Set Attribute from the pop-up menu.

    The Set Attribute Action dialog is displayed.

    setAttrAction

    In this release of NerveCenter, the Host field is not used.

  3. From the Object Type drop-down list, select the type of object for which you want to set an attribute.
  4. Select the name of the object whose attribute you want set from the Name drop-down list.

    For an alarm, a mask, or a poll, your options include all the objects of that type in the NerveCenter database. For a node, you can select any of the nodes in the NerveCenter database or the variable $NodeName. This variable contains the name of the node associated with the trigger that caused the transition.

  5. Select the object attribute you want to set using the Attribute drop-down list.

    If the Object Type is Alarm, Mask, or Poll, the Attribute field is read only because the only attribute you can set is State (the object's Enabled status). For a node, you can select either Property Group or Suppress.

  6. Select the value to which you want to set the attribute from the Value drop-down listbox.
  7. Select the OK button in the Set Attribute Action dialog.
  8. Select the OK button in the Transition Definition window.
  9. Select the Save button in the Alarm Definition window.


Send Trap SMTP Mail
29 July 2003