Designing and Managing Behavior Models
-
Alarm Actions - Perl Subroutine - Functions for Use in Perl Subroutines -
NerveCenter provides a number of functions that you can use in your Perl subroutines. The list below indicates what types of functions are available and where you can find detailed information about each function:
For reference information about these functions, see the section Variable-Binding Functions.
For reference information about these functions, see the section String-Matching Functions.
For reference information about this function, see the section DefineTrigger() Function.
For reference information about this function, see the section FireTrigger() Function.
For reference information about this function, see the section AssignPropertyGroup() Function.
For reference information about this function, see the section in( ) Function.
You use the Counter() function to get the value of an alarm counter for a particular alarm instance. The function can only be called from a Perl Subroutine alarm action or an Action Router rule.
The syntax of the Counter() function is shown below:
Syntax: Counter("counterName")
counterName - The name of an existing alarm counter.
Description: The function returns the value of the specified counter.
The following functions import, export, and delete node parenting relationships from the NerveCenter database. You can use these functions in Perl subroutines that are called from alarms that you transition on-demand. One use for these functions is with the downstream alarm suppression behavior model that is shipped with NerveCenter. For more information, refer to the Open white paper, Downstream Alarm Suppression.
Syntax: LoadParentsFromFile(filename)
filename - The name of the OVPA or manually created file containing the child parent relationships. This file should list each child node followed by the parent nodes in space-delimited fashion.
Description: Imports an OVPA or manually created file containing node parenting relationship information into the NerveCenter database.
Example: This statement loads the node relationship file data from the file nodeparents.dat into the NerveCenter database:
NC:: LoadParentsFromFile(nodeparents.dat)
Syntax: DumpParentsToFile(filename)
filename - The name of the file NerveCenter will output containing the child parent relationships exported from NerveCenter database.
Description: Exports node parenting relationship information from the NerveCenter database to the specified file on the local machine.
Example: This statement exports node relationship information from the NerveCenter database to the file nodeparents.dat:
NC:: DumpParentsToFile(nodeparents.dat)
Description: Deletes node parenting relationship information from the NerveCenter database.
Example: This statement deletes node relationship information from the NerveCenter database.
NC:: RemoveAllParents
Previous: Defining a Perl Subroutine | Next: NerveCenter Variables |
Please send comments or corrections to Information Development | This file was last updated on 10 October © 2002 |