A Shell Command Action Example with Setup & Configuration.

Document ID : KB000009363
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

 An example of Shell Command Action configuration and deployment is provided.

Environment:
All supported APM Releases.
Instructions:

 Here are the steps to test the Shell Command Action feature:

  1. Write a simple batch file C:\mytest\simpleshellcmd.bat with the following content: 

    echo %1 > C:\mytest\smipleshellcmd.log
  2. Define an Alert with shell command Action (See the APM Workstation Guide for details): 

    C:\mytest\simpleshellcmd.bat
  3. 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"