To send alert to more email IDs
- rajesekhar
- Nouveau
- Posts: 72
- Joined: 07 Dec 2007 12:00
To send alert to more email IDs
Hi,
While sending an alert if a service runs late, BIM allows maximum of 96 characters in the email tab but I want to send for more number of people. Is there any way I can overcome that or is there any work around for that?
Thanks,
Rajesekhar
While sending an alert if a service runs late, BIM allows maximum of 96 characters in the email tab but I want to send for more number of people. Is there any way I can overcome that or is there any work around for that?
Thanks,
Rajesekhar
- rajesekhar
- Nouveau
- Posts: 72
- Joined: 07 Dec 2007 12:00
- rajesekhar
- Nouveau
- Posts: 72
- Joined: 07 Dec 2007 12:00
even the varibles also can store max upto 20 characters ![Sad :(](./images/smilies/icon_sad.gif)
The only thing I found is by adding a condition if the service is running late and then kicking off a job which waits for that condition to be satisfied and sends emial to as many users as I can.
But in that way, I cannot use the BIM Auto edit variables.
any other way?
![Sad :(](./images/smilies/icon_sad.gif)
The only thing I found is by adding a condition if the service is running late and then kicking off a job which waits for that condition to be satisfied and sends emial to as many users as I can.
But in that way, I cannot use the BIM Auto edit variables.
any other way?
- philmalmaison
- Nouveau
- Posts: 1148
- Joined: 08 Jun 2007 12:00
- Location: Ile de France
tssss tssss you must create a file in $HOME of the datacenter with name :
.mailrc
and add your virtual adresse name and mil corresponding like the following example :
TESTMAIL a@titi.com b@titi.com c@titi.com \
d@titi.com e@titi.com
after that create a virtual MAIL destination in SYSTEM shout table :
virtual name TESTMAIL
physical name TESTMAIL
type (M)
(S) for ctrlm server
in your jobs, you can so shout to TESTMAIL, and everybody in the .mailrc for that virtual address will receive the mail
regards
Philmalmaison
.mailrc
and add your virtual adresse name and mil corresponding like the following example :
TESTMAIL a@titi.com b@titi.com c@titi.com \
d@titi.com e@titi.com
after that create a virtual MAIL destination in SYSTEM shout table :
virtual name TESTMAIL
physical name TESTMAIL
type (M)
(S) for ctrlm server
in your jobs, you can so shout to TESTMAIL, and everybody in the .mailrc for that virtual address will receive the mail
regards
Philmalmaison
- rajesekhar
- Nouveau
- Posts: 72
- Joined: 07 Dec 2007 12:00
Hey Phil,
Thanks for the rpely.
Datacenter $ home means, is it "D:\CONTROL-M EM 6.3.01\Default" ?
I have created the file in the above directory as mailrc.txt and included some email IDs.
Is that right?
And can it be used in sending the mail also?
Because in BIM shout goes only to the alert I think.
I tried putting "TESTMAIL" in Email tab in BIM job to send alert when the service is late but thats not working![Sad :(](./images/smilies/icon_sad.gif)
Please correct me where did I go wrong?
Regards,
Rajesekhar
Thanks for the rpely.
Datacenter $ home means, is it "D:\CONTROL-M EM 6.3.01\Default" ?
I have created the file in the above directory as mailrc.txt and included some email IDs.
Is that right?
And can it be used in sending the mail also?
Because in BIM shout goes only to the alert I think.
I tried putting "TESTMAIL" in Email tab in BIM job to send alert when the service is late but thats not working
![Sad :(](./images/smilies/icon_sad.gif)
Please correct me where did I go wrong?
Regards,
Rajesekhar
- philmalmaison
- Nouveau
- Posts: 1148
- Joined: 08 Jun 2007 12:00
- Location: Ile de France
no no you have to create a .mailrc on the corresponding controlm server in $HOME (root of the controlm server)
this option is working with controlm server but is designed in desktop for the jobs.
all other (.mailrc and creating sysout destination mail) are on the controlm server
regards
Philmalmaison
this option is working with controlm server but is designed in desktop for the jobs.
all other (.mailrc and creating sysout destination mail) are on the controlm server
regards
Philmalmaison
- rajesekhar
- Nouveau
- Posts: 72
- Joined: 07 Dec 2007 12:00
I really dont understand ".mailrc"
When I tried to create a new text document and renamed it to .mailrc, it says I have to type a file name.
How come the name can be just .mailrc? It should be soemthing like some.mailrc, right?
And again, whats root of control-m server? Is it D:\CONTROL-M Server\Ctm\Data?
sorry if I am so dumb.
Raj
When I tried to create a new text document and renamed it to .mailrc, it says I have to type a file name.
How come the name can be just .mailrc? It should be soemthing like some.mailrc, right?
And again, whats root of control-m server? Is it D:\CONTROL-M Server\Ctm\Data?
sorry if I am so dumb.
Raj
- rajesekhar
- Nouveau
- Posts: 72
- Joined: 07 Dec 2007 12:00
In windows I use a free program to send e-mail (and attachments) via batch: blat.exe.The only thing I found is by adding a condition if the service is running late and then kicking off a job which waits for that condition to be satisfied and sends emial to as many users as I can.
But in that way, I cannot use the BIM Auto edit variables.
any other way?
I have builded a little program that sends a message to all the distributed list that I want (can be listed in txt files).
In controlm I shout a message to that program and so I send the e-mail.
This is applicable also in a BIM job.
In this manner I send e-mail with attachment (sysout or job output, and so on) using the "shout to".
- rajesekhar
- Nouveau
- Posts: 72
- Joined: 07 Dec 2007 12:00
Please, can you better explain this? How to send shout to program?mauriziog wrote:In controlm I shout a message to that program and so I send the e-mail.
This is applicable also in a BIM job.
In this manner I send e-mail with attachment (sysout or job output, and so on) using the "shout to".
I use feboot mail (similar to blat.exe) and I created .bat file with febootmail and all required parameters for sending mail with attachment, and that .bat works.
I would like to use "shout to" features with that .bat, a created new entry in shout destination tables, named FEBOOTMAIL, put the physical name in format:<path>\mail.bat and in Job definition form se tthe On/Do action with shput to FEBOOTMAIl, but this failed with "SHOUT TO FEBOOTMAIL FAILED The user name could not be found.".
I changed entry in shout destination tables from server to agent, and then failed with: "SHOUT TO C:\SO\so_mail.bat FAILED Failed to execute command '""C:\SO\so_mail.bat" "CMEM6301SQL"
Please, can you give us better explanation how to use this feature?
This is one powerful possibility of controlm.can you give us better explanation how to use this feature
I answer fast, if is not clear ask me more.
0) Define a program that do the echo of the parameters received and redirect the output to a file.
1) ON the CTM server. Create/save the script/program you want to run
2) On the CTM-server define the destination of the shout:
ctmsys + shout destination tables + new + "NAME" (type program, path e name of point 1)) + run on the server.
3) Build a test job with in the steps do_shout to NAME and a message like:
"Example of message".
4) When you execute the program the file of point 0) is writed.
Read it.
The SECOND PARAMETER is your message.
So parsing the second parameter you can do all you want, and have variables passed from controlm to a program.