An example of Shell Command Action configuration and deployment is provided.
All supported APM Releases.
Here are the steps to test the Shell Command Action feature:
- Write a simple batch file C:\mytest\simpleshellcmd.bat with the following content:
echo %1 > C:\mytest\smipleshellcmd.log
- Define an Alert with shell command Action (See the APM Workstation Guide for details):
- When the alert gets triggered, output like the following appears in smipleshellcmd.log:
"3/23/12 9:41:45 AM PST Introscope Enterprise Manager (myhost-xw6200:xxx.xxx.xxx.202) reported: The Alert JW Utilization % (aggregate) exceeded caution target of 2: SuperDomain|myhost-xw6200|UnknownProcess|AgentName|CPU|Processor 0:Utilization % (aggregate) = 3"