
Auto-Reaction Method: Execute Operating System Command
Use
You can execute any operating system command as an auto-reaction to a monitoring architecture
alert. For security reasons, this does, however, apply only for those commands that have previously been defined in the External Operating System Commands (SM69) transaction.Prerequisites
If an auto-reaction method calls the operating system command, the following parameters are transferred to the command; ensure that the command can process these parameters in the following sequence:
|
Parameter |
Description |
|
<PARAM1> |
Fixed parameter that is defined in transaction SM69 in the Parameter for Operating System Command field (optional) |
|
<PARAM2> |
Additional parameter, that is defined in the definition of the auto-reaction method under PARAMETERS (see below) (optional) |
|
<SYSID> |
System ID of the system in which the alert occurred |
|
<DATE> |
Date and time of the alert |
|
<TIME> |
|
|
<SEVERITY> |
Severity and color of the alert that triggered the auto-reaction. |
|
<COLOR> |
|
|
<SHORTNAME> |
Short name of the monitoring attribute and the name of the monitoring object in which the alert was triggered |
|
<OBJECT> |
|
|
<MESSAGE> |
Message that is assigned to the alert |
You must now define the desired operating system command in the External Operating System Commands transaction. To do this, follow the procedure below:

For information about defining the command, see
External Operating System Commands: Content.
Procedure
Copy Method
We recommend that you leave the original method CCMS_AUTO_REACT_OP_COMMAND unchanged and use it only as a template for your methods. In this way, you can set up as many logical commands as you wish as auto-reactions.
Adjust Method Parameters and Release Method
You must now specify the desired logical command in the method that you have created and release the method as an auto-reaction method.
|
Parameter |
Description |
Default |
|
COMMAND |
Logical command that is to be executed in the case of an alert |
|
|
PARAMETERS |
Additional parameter <PARAM2> that you want to transfer to the command (see above) |
|
|
REACT_ON_ALERTS |
Color of the alert at which the auto-reaction method is to be started: for red and yellow alerts ( YELLOW) or only for red alerts (RED) |
RED |

The COMMAND parameter is required, all other parameters are optional.

By default, the operating system command is executed on the local server of the MTE that generated the alert. If the command is to be executed on a different server, change the execution location on the Execution tab page in the Execute Method On group box.
Assign Method to Desired MTE Classes
You must now assign the method to the desired MTEs or MTE classes. You can use either transaction RZ20 (only for the active properties variant) or transaction RZ21 to do this (see also Change Properties and Maintain Methods). Assignment using transaction RZ20 is described below:
Assign Analysis Method to Only this MTE
Assign Analysis Method to the Selected MTE Class
Result
If an alert is triggered for one of the MTEs to which you have assigned this auto-reaction method, the monitoring architecture automatically calls the logical command with the parameters [<PARAM1>] [<PARAM2>] <SYSID> <DATE> <TIME> <SEVERITY> <COLOR> <SHORTNAME> <OBJECT> <MESSAGE>.