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
How to setup a mechnaisim to send a mail facility for a job
- nicolas_mulot
- Nouveau
- Posts: 149
- Joined: 07 Jan 2010 12:00
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
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
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.
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.