Managing BMC ProactiveNet events through Run Command on  Server


Server commands run specified executables or scripts and execute an application or script when an event occurs.You can run the executables or scripts through the Run Command on Server functionality. You can run an application or script when an event occurs. Such applications or scripts can be used for escalation management and event integration with other notification systems, such as xMatters. They can also be used to send events directly to ticket systems such as BMC Remedy Service Desk. BMC ProactiveNet Administrator chooses the application or creates the script and decides whether to run the application or script, on the server or on the agent system where the event occurred.

Path: Enter the script you want to execute when an event occurs.

The installationDirectory/pw/pronto/bin/generic_script.pl script, which is provided as a model, shows how arguments can be passed to the script. The script can be modified and moved to the installationDirectory/pw/pronto/usr_apps/bin directory.

Warning

Note

While entering arguments to send server commands, do not enter the + character as an argument. The + character is used as a keyword internally by the BMC ProactiveNet Server. For example, if the command on Server is specified as chmod +x abc.sh, the BMC ProactiveNet Server executes the chmod x abc.sh command. This may lead to unexpected results. The workaround is to write the command in a script file and execute the script using Command On Server Action.

Information
Limitation

The BMC ProactiveNet Server executes the commands on a different thread to prevent them from terminating unexpectedly. So, the event action history records the Run Server commands successfully. Any exception that occurs while executing the command is recorded in the ProactiveNet.log file in the installationDirectory/pw/pronto/logs directory. If the BMC ProactiveNet Server stops responding, this log file can be checked for errors.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC ProactiveNet 9.6