To send alert to more email IDs

Everything about Batch Impact Manager Server and Web access installation or setup.
User avatar
rajesekhar
Nouveau
Nouveau
Posts: 72
Joined: 07 Dec 2007 12:00

To send alert to more email IDs

Post by rajesekhar » 14 May 2008 5:19

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

User avatar
gglau
Nouveau
Nouveau
Posts: 317
Joined: 13 Jun 2007 12:00

Post by gglau » 15 May 2008 1:10

A few ways:

- create a distribution list in your e-mail server, and send to the distribution list from BIM

- setup rules in an account which forwards a message to intended recipients based on server name in subject, and send to the account from BIM

User avatar
rajesekhar
Nouveau
Nouveau
Posts: 72
Joined: 07 Dec 2007 12:00

Post by rajesekhar » 16 May 2008 12:05

Thanks for the reply.

Thats fine. Any other way inside control-M?

hipikll

Post by hipikll » 16 May 2008 4:27

create mail alias in OS. (if using UNIX)
or try to use SETS to define users and this variables instead of real user in field. (i havent testet id, it's just sugestion)

User avatar
rajesekhar
Nouveau
Nouveau
Posts: 72
Joined: 07 Dec 2007 12:00

Post by rajesekhar » 21 May 2008 5:50

even the varibles also can store max upto 20 characters :(

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?

User avatar
philmalmaison
Nouveau
Nouveau
Posts: 1148
Joined: 08 Jun 2007 12:00
Location: Ile de France

Post by philmalmaison » 26 May 2008 4:33

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

User avatar
rajesekhar
Nouveau
Nouveau
Posts: 72
Joined: 07 Dec 2007 12:00

Post by rajesekhar » 28 May 2008 6:32

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 :(

Please correct me where did I go wrong?

Regards,
Rajesekhar

User avatar
philmalmaison
Nouveau
Nouveau
Posts: 1148
Joined: 08 Jun 2007 12:00
Location: Ile de France

Post by philmalmaison » 29 May 2008 4:00

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

User avatar
rajesekhar
Nouveau
Nouveau
Posts: 72
Joined: 07 Dec 2007 12:00

Post by rajesekhar » 18 Jun 2008 4:50

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

User avatar
mauriziog
Nouveau
Nouveau
Posts: 807
Joined: 08 Jun 2007 12:00
Location: Varese - Italy
Contact:

Post by mauriziog » 18 Jun 2008 5:53

I really dont understand ".mailrc"
I think that you have controlm server on windows and not on unix...
isnt it?
The creation of ".mailrc" is for unix/linux SO.

User avatar
rajesekhar
Nouveau
Nouveau
Posts: 72
Joined: 07 Dec 2007 12:00

Post by rajesekhar » 18 Jun 2008 8:49

oohh yeah, we have server and all the agents on windows only.

so, is it possible only in unix?

User avatar
mauriziog
Nouveau
Nouveau
Posts: 807
Joined: 08 Jun 2007 12:00
Location: Varese - Italy
Contact:

Post by mauriziog » 25 Jun 2008 3:10

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?
In windows I use a free program to send e-mail (and attachments) via batch: blat.exe.
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".

User avatar
rajesekhar
Nouveau
Nouveau
Posts: 72
Joined: 07 Dec 2007 12:00

Post by rajesekhar » 27 Jun 2008 8:34

Thats grt!

Can you please explain how to use that program blat.exe

Thanks in advance,
Raj

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

Post by Dilbert » 29 Jun 2008 10:41

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".
Please, can you better explain this? How to send shout to program?
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?

User avatar
mauriziog
Nouveau
Nouveau
Posts: 807
Joined: 08 Jun 2007 12:00
Location: Varese - Italy
Contact:

Post by mauriziog » 30 Jun 2008 4:23

can you give us better explanation how to use this feature
This is one powerful possibility of controlm.

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.

Post Reply