Scheduler Usage
http://scheduler-usage.com/

Notifications when jobs starts to execute
http://scheduler-usage.com/viewtopic.php?f=13&t=15942
Page 1 of 1

Author:  Dilbert [ 10 May 2018 11:39 ]
Post subject:  Notifications when jobs starts to execute

Hi guys,

is it possible (CTM v9) to set up e-mail notification when job starts to execute? The business wants to know and be notified when job starts to execute. Sending email when job is completed is not enough.
I tried with echo command "job started" but email is sent only when job finished. I want to send it immediately as job starts.
That particular job starts manualy.

Any ideas?

Author:  fyot [ 27 May 2018 3:51 ]
Post subject:  Re: Notifications when jobs starts to execute

Hi

Yes you can, using PRECMD command. (%%PRECMD)
You can execute a script sending an email before job execution.

Author:  Dilbert [ 09 Nov 2018 9:06 ]
Post subject:  Re: Notifications when jobs starts to execute

fyot wrote:
Hi

Yes you can, using PRECMD command. (%%PRECMD)
You can execute a script sending an email before job execution.


Hi Franck! Long time no see you. :)
The problem was that %%PRECMD is not suported in Control-M for Oracle Retail Module.

But, it seems my problem is solved. :) In Control-M 9.0.18.200 and Control-M for Oracle Retail 8.0, BMC introduced "Run pre-exec" and "Run post-exec" check boxes in General tab for Job definition (Oracle retail jobs).
I will check with Oracle team for testing that functionalities. :)

Best regards,

Author:  Guilherme_HFA [ 12 Nov 2018 3:39 ]
Post subject:  Re: Notifications when jobs starts to execute

Dilbert wrote:
fyot wrote:
Hi

Yes you can, using PRECMD command. (%%PRECMD)
You can execute a script sending an email before job execution.


Hi Franck! Long time no see you. :)
The problem was that %%PRECMD is not suported in Control-M for Oracle Retail Module.

But, it seems my problem is solved. :) In Control-M 9.0.18.200 and Control-M for Oracle Retail 8.0, BMC introduced "Run pre-exec" and "Run post-exec" check boxes in General tab for Job definition (Oracle retail jobs).
I will check with Oracle team for testing that functionalities. :)

Best regards,


the run pre-exec should work just fine, however, if it does not, another option would be setting up a dummy job right before the needed job to have an on-do action to send the mail as well.

Regards,

Author:  Dilbert [ 13 Nov 2018 11:04 ]
Post subject:  Re: Notifications when jobs starts to execute

Guilherme_HFA wrote:
Dilbert wrote:
fyot wrote:
Hi

Yes you can, using PRECMD command. (%%PRECMD)
You can execute a script sending an email before job execution.


Hi Franck! Long time no see you. :)
The problem was that %%PRECMD is not suported in Control-M for Oracle Retail Module.

But, it seems my problem is solved. :) In Control-M 9.0.18.200 and Control-M for Oracle Retail 8.0, BMC introduced "Run pre-exec" and "Run post-exec" check boxes in General tab for Job definition (Oracle retail jobs).
I will check with Oracle team for testing that functionalities. :)

Best regards,


the run pre-exec should work just fine, however, if it does not, another option would be setting up a dummy job right before the needed job to have an on-do action to send the mail as well.

Regards,


That Dummy job was my solution to customer, but they are against it.
Anyway, with the new module which supports pre-execution command for Oracle Retail Jobs, now that works.
Old Oracle Retail module just didn't support pre-execution.

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/