4.1.2 Verifying that a command specified as an automated action was executed
After you have finished specifying the automated action, check whether the command was executed according to your specifications. This subsection describes how to verify that the automated action for executing the batch file errornotice.bat to send an error notification to the management server (a Windows machine) is executed when an event whose severity level is Error is issued.
Prerequisites
OS user mapping must be configured according to the procedure in 2.2.1 Configuring user mapping.
Procedure
-
In the Event Console window, click the Execute Command button. The Execute Command window appears.
-
Set the items in the Execute Command window as described below, and then click the Execute button.
Item
Setting
Command type
Select Command of managed host.
Event information to inherit
Clear the Inherit event information check box.
Target host
Enter the following:
hostA
Command
Enter the following:
-
In Windows:
"Base-path\bin\jevsend" -e SEVERITY=Error
-
In Linux:
/opt/jp1base/bin/jevsend -e SEVERITY=Error
An event of severity level Error is issued on host A.
In the Action column in the event list, an executed action icon () is displayed for the event that triggered the automated action.
-
-
In the Event Console window, select the event issued in step 2. To display the Action Log window, select View, and then select Action Log.
-
In the Action Log window, confirm that Ended is displayed in the Status column for the action shown in the Log list.
Related topics
-
2.1 Overview of the Event Console window in the manual GUI Reference
-
2.36 Action Log window in the manual GUI Reference
-
2.40 Execute Command window in the manual GUI Reference