Skip to main content

CWM - Automate - Agent - Command - Delete Running

Summary

This script should be used as an autofix for our internal monitor, 'ProVal - Production - Automate - Machines With Stuck Commands [G]'. The script will delete the stuck commands from the target machine. It will check for the command status ID '2' (status 2 indicates the commands that are stuck in an executing state) on the target machine and will remove them from the database.

Sample Run

The script is a function script that cannot run manually.

Dependencies

CWA - Automate - Monitor - Machines With Stuck Commands

Variables

Document the various variables in the script. Delete any section that is not relevant to your script.

NameDescription
CheckThis variable stores the count of commands detected in an executing state

Process

This script will execute with the monitor and will delete all the executable commands from the database of the machine.

Output

  • Script log