Designing and Managing Behavior Models - Alarm Actions - Command -
Clear Trigger      Delete Node

Command

The Command alarm action enables you to execute any command or script when a particular alarm transition occurs. An example of an alarm that uses this action is the predefined alarm IPSweep.

IPSweep Alarm

IPSweep

When the IPSweep transition occurs, this alarm executes a program called ipsweep. This is the program that actually discovers the devices on the subnets you're managing.

 
  To add a Command action to a transition:

  1. In the Transition Definition window, select the New Action button.

    A pop-up menu of the available actions is displayed.

  2. Select Command from the pop-up menu.

    The Command Action dialog is displayed.

    commandAction2

  3. Type the command to be executed in the Command field.

    On Windows systems, the command can be any .exe, .bat, or .cmd file you can invoke from the command line. You can omit the command suffix because the operating system will locate the appropriate file. On UNIX systems, the command can be any executable binary or script file that you can invoke from a shell.

  4. Enter any parameters that the command requires after the command.

    If the parameters are constants, you can simply type them in the Command field following the command name. However, if they will vary from alarm instance to alarm instance (and NerveCenter maintains the information you need in one of its variables), you can use the Special Symbol drop-down list and the button beside it to enter the parameters. For more information, see NerveCenter Variables.

    To enter a variable in your command:

    1. Place your cursor at the appropriate spot in the Command field.
    2. Select a variable from the Special Symbol drop-down list.
    3. Select the button to the right of the Special Symbol field.
  5. Select the OK button in the Command Action dialog.
  6. Select the OK button in the Transition Definition window.
  7. Select the Save button in the Alarm Definition window.


Clear Trigger Delete Node
29 July 2003