How can I remove a Job that is no longer Executing but still shows as Yellow in the Control-M/Enterprise Manager GUI? - INCLUDES VIDEO
Knowledge Article
How can I remove a Job that is no longer Executing but still shows as Yellow in the Control-M/Enterprise Manager GUI? - INCLUDES VIDEO
Control-M/Server for UNIX and Microsoft Windows
Control-M/Server for UNIX and Microsoft Windows
All versions of Control-M/Enterprise Manager and Control-M/Server for UNIX and Microsoft Windows
Control-M/Server for UNIX and Microsoft Windows
Control-M/Server for UNIX and Microsoft Windows
All versions of Control-M/Enterprise Manager and Control-M/Server for UNIX and Microsoft Windows
How can I remove a Job that is no longer Executing but still shows as Yellow in the Control-M/Enterprise Manager GUI? How can I change the "Executing" (Yellow) status of a job that has already completed executing on the Control-M Server?
Control-M/Server version 9.0.22.000 and higher:
Requirements: - Control-M/Server must be running
- The new utility ctm_setnotok utility rather than the force_end_job allows ending a job that is no longer executing Note: This utility does not require SSL to be disabled as in earlier versions - Starting with 9.022.100, this functionality will be available in the Control-M Web client as well with the "Set to NotOK" option in Monitoring
Syntax (Windows and Unix): ctm_setnotok -orderid <order_id in base 36>
Example: ctm_setnotok -orderid 04abw
Control-M/Server 9.0.21.30# and lower:
The Perl script ctm_server/scripts/force_end_job.pl forces a job in a Submitted or Executing state to end NOTOK (COMPSTAT=1) on the Control-M/Server only. If the job is running on the Agent, this will continue running (see Notes below).
Requirements: - Control-M/Server must be running. - SSL is disabled.
Unix:
Version 9.0.20 and higher run this command: $CTM_PERL_HOME/perl $CONTROLM_SERVER/scripts/force_end_job.pl <order_id in base 36> [Y|N(debug)]
Open a Command prompt using "Run as Administrator"
Version 9.0.20.000 and higher run this command: "%CTM_PERL_HOME%\perl" "<CONTROL-M/Server>\ctm_server\scripts\force_end_job.pl" <order_id in base 36> [Y|N (debug)]
Prior to version 9.0.20.000 run this command: "<CONTROL-M/Server>\bmcperl\bin\perl" "<CONTROL-M/Server>\ctm_server\scripts\force_end_job.pl" <order_id in base 36> [Y|N (debug)]
Notes: (1) The job ends NOTOK on the Control-M/Server side only!. The job is not killed on the Control-M/Agent machine. The assumption is that the job ended on the Agent OS and the Agent failed to communicate the state back to Control-M/Server. (2) Only ON Statements of type 'operating system completion code' will be performed. (3) This is an interactive script. The user has to confirm the action. (4) Only the Control-M/Server user can run this program on Unix. (5) There are no security checks on Windows. Therefore, it is recommended to enable execution permissions of this program only to a specific user. (6) No database lock. If the Control-M/Server receives the job status from the Control-M/Agent, before handling the force-end job request, the job will end according to the update from the Agent (even though the force_end_job.pl likely completed successfully) .
Control-M/Server for UNIX and Microsoft Windows
Control-M/Server for UNIX and Microsoft Windows
All versions of Control-M/Enterprise Manager and Control-M/Server for UNIX and Microsoft Windows