Designing and Managing Behavior Models
-
Alarm Actions - Perl Subroutine -
The Perl Subroutine alarm action enables you to execute a Perl subroutine when a particular alarm transition occurs. This action is similar to the Command action in that it enables you to execute a script. However, the Perl Subroutine action can be much more powerful than the Command action because:
Using these functions and variables, you can create scripts that you could not write using another language. The section Perl Subroutine Example presents an example of how you might use the Perl Subroutine action.
To add a Perl Subroutine to a transition:
New Action
button.A pop-up menu listing all alarm actions is displayed.
Perl Subroutine
from the pop-up menu.The Perl Subroutine Action dialog is displayed.
Name
drop-down list.This list contains all the compiled Perl subroutines stored in the NerveCenter database.
OK
button in the Perl Subroutine Action dialog.
OK
button in the Transition Definition window.
Save
button in the Alarm Definition window.Paging | Defining a Perl Subroutine |
29 July 2003 |