How to setup a mechnaisim to send a mail facility for a job

All questions about Control-M jobs definitions
Post Reply
User avatar
shiva2010
Nouveau
Nouveau
Posts: 30
Joined: 15 Jun 2010 12:00
Contact:

How to setup a mechnaisim to send a mail facility for a job

Post by shiva2010 » 30 Aug 2010 3:53

How to setup an alert mechanisim I Want an email facility in case of job failure can any guide me..what step needs to be followed..

Regards,

Shiva

User avatar
catchtony
Nouveau
Nouveau
Posts: 50
Joined: 12 Sep 2008 12:00
Contact:

Post by catchtony » 30 Aug 2010 4:28

Which version of Control-M you are using ?

User avatar
shiva2010
Nouveau
Nouveau
Posts: 30
Joined: 15 Jun 2010 12:00
Contact:

Post by shiva2010 » 30 Aug 2010 4:30

control-m 6.4.01

User avatar
nicolas_mulot
Nouveau
Nouveau
Posts: 149
Joined: 07 Jan 2010 12:00

Post by nicolas_mulot » 30 Aug 2010 5:33

First you need to configure your ctm server for mails.
To do so, open ctm_menu, then “6 - Parameter Customization”, then “6 - Simple Mail Transfer Protocol Parameters”.
You must set the parameter “1 - SMTP Server (Relay) Name” to an appropriate value (your smtp server).
You must specify an existing sender name, in a proper mail address format in “2 - Sender Email” parameter.

From now on, you can specify DoMail in the “Steps” tab of your jobs to warn you when such or such situation occurred.

In addition, if you want to SHOUT alerts to mail, you must specify a logical destination that will match the real mail address (yours for example) where to send the mails.
In the following lines, this logical name is “MAILALERT”: you can change it to any value you prefer.
To do so, still in main menu of ctm_menu, select “6 - Parameter Customization”, then “3 - System Parameters and Shout Destination Tables”, then “1) Shout Destination Tables”.

The following menu appears:
Active Shout Destination Table: SYSTEM

1) Create/Modify a Table
2) Set Active Table
3) List Tables
4) Delete Table

q) Quit and return to main menu

Enter Option:

Select 1, which displays the following:
Shout Destination Tables
------------------------
SYSTEM

Table to create/modify or 'q' to quit [SYSTEM]:


Hit enter and confirm (Y) that you want to update the active table.
Create a new entry with “n”.
To the subsequent prompts, enter, in the following sequence:
-M you want a destination of type MAIL
-S the controlm server will handle the alarm
-MAILALERT this is the logical name which you will specify in your SHOUTs
-your mail address this is where the alerts will be sent.

You can now test the solution by running the following command under controlm user prompt:

ctmshout –dest=MAILALERT –message=”hello from control-m”

From that point on, you can specify in your job definitions “Postproc” tabs, for exemple:
Shout When: NOTOK
To: MAILALERT
Message: JOB %%JOBNAME has problems

User avatar
catchtony
Nouveau
Nouveau
Posts: 50
Joined: 12 Sep 2008 12:00
Contact:

Post by catchtony » 30 Aug 2010 5:33

Follow the steps below in case of Unix based CONTROL-M/Servers only :-

Step 1: Create a New Shout Destination of type "program" via the ctmsys utility on Control-M/Server. You can find more information regarding defining Shout Destination in the Control-M/Server Administration Guide at http://www.bmc.com/supportu/documents/1 ... /21661.pdf

Use the following settings:

Dest. Type = M for Mail
Address Type = S for Server
Logical Name = Mailto
Physical Name = abc@xyz.com

Step 2: Create a new job or modify an existing job via Control-M/Desktop that you want to have the job email on failure.

Under the "PostProc" Tab, modify the below settings. Modify the "When", "To" and "Urgency" parameters as desired.
Shout:
When = NOTOK
To = Mailto Urgency = <set> Message field = %%JOBNAME Failed on %%NODEID by %%OWNER in %%SCHEDTAB %%DATE

Try this.

User avatar
shiva2010
Nouveau
Nouveau
Posts: 30
Joined: 15 Jun 2010 12:00
Contact:

Post by shiva2010 » 31 Aug 2010 6:07

nicolas_mulot & catchtony Thanks a lot I will try this ..

User avatar
k2p6v5s
Nouveau
Nouveau
Posts: 27
Joined: 10 May 2010 12:00

Post by k2p6v5s » 09 Jan 2011 12:27

This mail is very informative...

thanks so much... :)

Post Reply