Designing and Managing Behavior Models
-
Alarm Actions - 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.
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:
New Action
button.A pop-up menu of the available actions is displayed.
Command
from the pop-up menu.The Command Action dialog is displayed.
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.
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:
Command
field.
Special Symbol
drop-down list.
OK
button in the Command Action dialog.
OK
button in the Transition Definition window.
Save
button in the Alarm Definition window.Clear Trigger | Delete Node |
29 July 2003 |