You can configure Applications Manager to automatically trigger scripts/programs/server commands when an alarm is generated. This will help minimize manual intervention in resolving system/application issues.
This document covers:
To execute a program, follow these steps:
Click Execute Program from the Actions in the left frame and specify the following details:
If the program is on a remote server, specify the Target Hosts on which these actions are to be executed. There are three options available here:
Additionally, you can choose to add a new host. For configuring a new host, enter the following details: Host Name / IP Address, Execution Mode (Telnet/SSH/Powershell), User Name and Password of the host, port number (Default Telnet port no: 23, SSH port no: 22), and then specify the command prompt value (for Telnet/SSH), which is the last character in your command prompt. Default value is $ and possible values are >, #, etc.

Specify the program to be executed either as a command or as a script file. Make sure to implement the following methods if the program is to be executed as a script file:
You can also make use of Replaceable Tags to provide additional arguments to the program specified in this field.
The Abort after field is used to specify the timeout value for the program. Specify the time after which the program should be terminated.
Note: It is important to provide the required time for aborting the command execution since the alarm processing is held up by the program execution. While executing the program, the command runs synchronously in the main alarm processing thread. This delays all subsequent alarms from being processed until the program execution is completed or terminated.

You can view and edit an existing Execute Program or execute that action from the Admin tab > Actions page.
Pointers to where you can use the Execute Program action:
Note: Passing arguments to custom scripts can be further enhanced by using Replaceable Tags.
sample.sh). There is no need to prefix it with sh.run_script.bat with the following content:powershell.exe -ExecutionPolicy Bypass -File "C:\scripts\your_script.ps1"run_script.bat as the program to execute.The Execute Program action option is designed to help you handle application problems and perform automated recovery actions with minimal manual intervention. While it enables quick response to alarms, its usage should be controlled to maintain system security.
Execute Program Action has the integrated ability to run scripts (including PowerShell scripts) and server commands based on the user privileges that run Applications Manager. Caution must be exercised with its usage. Additional security and access control features include:
On performing local execution in Applications Manager, the program or script runs on the same server as the service, inheriting its administrative privileges. This enables it to perform tasks with elevated access but also requires caution, as any unauthorized changes to the script could pose security risks.
Note: Running scripts with elevated privileges can pose security risks if unauthorized users modify them to perform malicious actions.
When a script is executed on a remote server in Applications Manager, it operates with the privileges of the configured user account. This setup allows controlled execution by limiting the script's actions to those allowed by the assigned user permissions. By using this model, security risks are minimized, as scripts can only perform actions within the specific access rights of the user account, preventing unauthorized or potentially harmful actions from taking place outside the user's designated privilege level.
Note: Running scripts with user-specific permissions on remote servers reduces security risks, as scripts cannot perform actions beyond the user's authorized level.
Note: Implement privilege-based access control for scripts, ensuring they operate under the principle of least privilege. Scripts should execute with either administrative or specific user permissions, depending on the chosen execution mode, to enhance security and minimize potential risks.
It allows us to track crucial metrics such as response times, resource utilization, error rates, and transaction performance. The real-time monitoring alerts promptly notify us of any issues or anomalies, enabling us to take immediate action.
Reviewer Role: Research and Development