Designing and Managing Behavior Models - Alarm Actions - Perl Subroutine -
Paging      Defining a Perl Subroutine

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:

  1. Define the Perl subroutine. This task is documented in the section Defining a Perl Subroutine.
  2. From the Transition Definition window, select the New Action button.

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

  3. Select Perl Subroutine from the pop-up menu.

    The Perl Subroutine Action dialog is displayed.

    perlSubAction

  4. Select a Perl subroutine from the Name drop-down list.

    This list contains all the compiled Perl subroutines stored in the NerveCenter database.

  5. Select the OK button in the Perl Subroutine Action dialog.
  6. Select the OK button in the Transition Definition window.
  7. Select the Save button in the Alarm Definition window.


Paging Defining a Perl Subroutine
29 July 2003