Page 1 of 1
Notifications when jobs starts to execute
Posted: 10 May 2018 11:39
by Dilbert
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?
Re: Notifications when jobs starts to execute
Posted: 27 May 2018 3:51
by fyot
Hi
Yes you can, using PRECMD command. (%%PRECMD)
You can execute a script sending an email before job execution.
Re: Notifications when jobs starts to execute
Posted: 09 Nov 2018 9:06
by Dilbert
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,
Re: Notifications when jobs starts to execute
Posted: 12 Nov 2018 3:39
by Guilherme_HFA
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,
Re: Notifications when jobs starts to execute
Posted: 13 Nov 2018 11:04
by Dilbert
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.