It is currently 13 Dec 2017 6:08


Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 22 Jan 2013 1:38 
Offline
Nouveau
Nouveau
User avatar

Joined: 21 Jan 2010 12:00
Posts: 26
Hi people, i need some information. I need to kill a job every day at 08:00 AM, but yhe problem is i don't know when it start's. If the job was executin fixed for example at 04:00 AM, i could use the ctmkill job option after 4 hours, but the problem s that i never know when it start's, only when it must end.
Any solution or workaround?

Thanks

osafr71


Top
   
 Post subject:
PostPosted: 24 Jan 2013 4:03 
Offline
Nouveau
Nouveau
User avatar

Joined: 28 May 2008 12:00
Posts: 7
BIM ?
On event "Service is late" -> Do kill-Job


Top
   
 Post subject:
PostPosted: 24 Jan 2013 5:53 
Offline
Nouveau
Nouveau
User avatar

Joined: 19 Sep 2012 12:00
Posts: 3
1. Set up a 'shout' destination that maps to a 'p' (for program) on the Control-M Server.
2. On Unix your shout destination script would be something like this -

#! /bin/csh
ctmkilljob -ORDERID $2 &
ctmshout -ORDERID $2 -USER ECS -MESSAGE "Long running job killed" -SEVERITY R &

The first line does the cancel, the second line will send an alert to the ECS console.

3. On the Post Processing panel put this destination in the 'to' field and (importantly) have the message field as just %%ORDERID - then fill in the 'when' and 'param' fields as desired (e.g. Late Time = 0800 means the job will issue the cancel at 8:00 AM).


Top
   
 Post subject:
PostPosted: 24 Jan 2013 8:30 
Offline
Nouveau
Nouveau
User avatar

Joined: 04 Feb 2008 12:00
Posts: 61
Location: Cleveland, OH
On windows:
1. Set up a 'Shout Destination' with 'Logical Name' as "KILLJOB", "S" for 'Adress', "Program" for 'Destination', and "D:\Production\KillJob.bat" for value.

2. KillJob.bat script is below.

cmd /C ctmkilljob -orderid %2

3. On the Post Processing panel put KILLJOB in the 'To' field, put %%ORDERID in the 'Message' field, select "Late Time" in the 'When' field and put 0800 in the 'Param' field.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved