Notifications when jobs starts to execute

Everything about Control-M Enterprise Manager Server installation or setup.
Post Reply
User avatar
Dilbert
Nouveau
Nouveau
Posts: 185
Joined: 10 Jan 2007 12:00
Location: Zagreb, Croatia

Notifications when jobs starts to execute

Post by Dilbert » 10 May 2018 11:39

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?

User avatar
fyot
Nouveau
Nouveau
Posts: 736
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

Re: Notifications when jobs starts to execute

Post by fyot » 27 May 2018 3:51

Hi

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

User avatar
Dilbert
Nouveau
Nouveau
Posts: 185
Joined: 10 Jan 2007 12:00
Location: Zagreb, Croatia

Re: Notifications when jobs starts to execute

Post by Dilbert » 09 Nov 2018 9:06

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,

Guilherme_HFA
Nouveau
Nouveau
Posts: 3
Joined: 18 Jan 2018 3:18

Re: Notifications when jobs starts to execute

Post by Guilherme_HFA » 12 Nov 2018 3:39

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,

User avatar
Dilbert
Nouveau
Nouveau
Posts: 185
Joined: 10 Jan 2007 12:00
Location: Zagreb, Croatia

Re: Notifications when jobs starts to execute

Post by Dilbert » 13 Nov 2018 11:04

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.

Post Reply