You can configure OpManager to automatically run a program whenever a fault is detected in the device. For instance, you can configure OpManager to execute a program that corrects the fault or simply produces a sound or that whenever a specific type of an alarm is raised for a device.
To create a profile that executes the specified program, follow the steps given below:
The profile is associated to the selected devices. The program is executed with the specified arguments whenever a fault matching the selected criteria occurs.
Security Advisory: When the Run System Command Profile is triggered by testaction or by an alarm, the configured command will be executed. The command given will be executed as such from the OpManager/bin directory and is equivalent to executing a command from the command prompt (CMD).
(&|<>^!'$(){};#*?[] and cmd.exe references are stripped, while % and - are padded with spaces to prevent exploitation.cmd.exe /c or /bin/bash -c while configuring profiles, as this may enable potential command injection through $variables.Consequently, it is the user's responsibility to validate and sanitize all command inputs during profile configuration to mitigate potential security threats and vulnerability exposure.
Thank you for your feedback!