Designing and Managing Behavior Models - Defining Property Groups and Properties - Using the Node List Window - Using the Set Attribute Alarm Action -
Previous: Using the AssignPropertyGroup() Function     Next: Using OID to Property Group Mappings

Using the Set Attribute Alarm Action

There are two ways to change a node's property group using alarm-transition actions: using the Perl Subroutine action and using the Set Attribute action. For information on changing a node's property group using the Perl Subroutine action, see the section In a Perl Subroutine. Using a Perl Subroutine action to change a property group is appropriate when you want to use Perl to do something more complex than simply change the property group of the node associated with the trigger that causes the alarm transition (or the property group of any other node, for that matter). If the only action you would take from a Perl subroutine is to change a property group, you should use the Set Attribute action instead. This approach will save you the trouble of having to write and compile a Perl subroutine.

 
  To add to an alarm transition a Set Attribute action that changes a node's property group:

  1. Open the Transition Definition dialog by double-clicking on the transition to which you want to add the Set Attribute action.

    Transition Definition Dialog

    transitionDefinition.gif

  2. Select the New Action button.

    NerveCenter displays the new-action popup menu.

  3. Select the Set Attribute action.

    NerveCenter displays the Set Attribute Action dialog.

    Set Attribute Action Dialog

    setAttrAction.gif

  4. Leave the Object Type value set to Node since you want to set an attribute of a node.
  5. Usually you'll leave the Name value set to $NODE.

    $NODE stands for the name of the node associated with the trigger that caused the alarm transition. However, you can change the value to the name of any node in the NerveCenter database if you know in advance the name of the node whose property group you want to change.

  6. Select Property Group from the Attribute drop-down list.
  7. Select a property-group name using the Value drop-down list.

    The property group you choose will become the new property group for the node you chose in step 5 whenever this alarm transition takes place.

  8. Select the OK button in the Set Attribute Action dialog.

    The dialog is dismissed, and the newly defined action appears in the Actions list in the Transition Definition dialog.

  9. Select the OK button in the Transition Definition dialog.
  10. Select the Save button in the Alarm Definition window.


Previous: Using the AssignPropertyGroup() Function Next: Using OID to Property Group Mappings
Please send comments or corrections to Information Development
This file was last updated on 10 October 2000