LUA script - Performing a command based on alarm assignment.

Discussion created by eric.rabideau on Aug 22, 2012
Latest reply on Aug 24, 2012 by jonhcw

I need to create a LUA script to send commands on alarms based on Critical and Major alarms receiving a specific assignment.  The logic behind what I'm trying to do would look like this:

1. Nas receives an initial assignment as an alarm update
2. If alarm assignment = 'specific team' and 'major' or 'critical' severity

    3. execute a command line program

4. end if

However, the only time that I want this command to trigger is when the initial assignment is received. Additional counts to the alarm should not be processed by the script.

Anyone have an example of how I can use a LUA script to perform this action?