Adding Policies
145
FS6300 NMS Administrator’s Reference Guide
10 • Managing Database Policies
Run Command Action.
This action triggers a specific command when an alarm is received.
To run a command:
1.
In
Escalation Policy
window, select
Run Command Action
(under
Action Type
).
Figure 116. Run Command Action
2.
In the
Action Details
section, specify the following:
–
Run Command Action Name:
Enter a name for the run command action.
–
Run Command:
Specify the command string to be executed. The command string should be a machine
executable program on the server that does not require a shell, i.e., it cannot be a batch or shell file. To
use shell scripts or commands, you must invoke the shell as a part of the command string. The com-
mand string should be specified with the full path of the shell, where the server has been started.
–
Command Results:
To append the output or errors from the command to the event message text, select
Append Output or Append Errors. Selecting either option will run the command synchronously in the
main event processing thread. This delays all alarms, following the alarm being processed, until the com-
mand execution completes or is terminated by the timeout option.
–
Abort After:
Enter the timeout for the command. After the time specified in this field has passed, the
command execution is stopped. This is important, if you are appending the output or errors, since all
alarm processing is held up by the command execution.
3.
Click
Update Action
. Then, click
Apply
.