It is currently 19 Apr 2019 2:31


Post new topic  Reply to topic  [ 25 posts ]  Go to page 1 2 Next
Author Message
PostPosted: 14 May 2008 5:19 
Offline
Nouveau
Nouveau
User avatar

Joined: 07 Dec 2007 12:00
Posts: 72
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


Top
   
 Post subject:
PostPosted: 15 May 2008 1:10 
Offline
Nouveau
Nouveau
User avatar

Joined: 13 Jun 2007 12:00
Posts: 317
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


Top
   
 Post subject:
PostPosted: 16 May 2008 12:05 
Offline
Nouveau
Nouveau
User avatar

Joined: 07 Dec 2007 12:00
Posts: 72
Thanks for the reply.

Thats fine. Any other way inside control-M?


Top
   
 Post subject:
PostPosted: 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)


Top
   
 Post subject:
PostPosted: 21 May 2008 5:50 
Offline
Nouveau
Nouveau
User avatar

Joined: 07 Dec 2007 12:00
Posts: 72
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?


Top
   
 Post subject:
PostPosted: 26 May 2008 4:33 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 1148
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


Top
   
 Post subject:
PostPosted: 28 May 2008 6:32 
Offline
Nouveau
Nouveau
User avatar

Joined: 07 Dec 2007 12:00
Posts: 72
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


Top
   
 Post subject:
PostPosted: 29 May 2008 4:00 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 1148
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


Top
   
 Post subject:
PostPosted: 18 Jun 2008 4:50 
Offline
Nouveau
Nouveau
User avatar

Joined: 07 Dec 2007 12:00
Posts: 72
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


Top
   
 Post subject:
PostPosted: 18 Jun 2008 5:53 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 807
Location: Varese - Italy
Quote:
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.


Top
   
 Post subject:
PostPosted: 18 Jun 2008 8:49 
Offline
Nouveau
Nouveau
User avatar

Joined: 07 Dec 2007 12:00
Posts: 72
oohh yeah, we have server and all the agents on windows only.

so, is it possible only in unix?


Top
   
 Post subject:
PostPosted: 25 Jun 2008 3:10 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 807
Location: Varese - Italy
Quote:
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".


Top
   
 Post subject:
PostPosted: 27 Jun 2008 8:34 
Offline
Nouveau
Nouveau
User avatar

Joined: 07 Dec 2007 12:00
Posts: 72
Thats grt!

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

Thanks in advance,
Raj


Top
   
 Post subject:
PostPosted: 29 Jun 2008 10:41 
Offline
Nouveau
Nouveau
User avatar

Joined: 10 Jan 2007 12:00
Posts: 185
Location: Zagreb, Croatia
mauriziog wrote:
Quote:
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?


Top
   
 Post subject:
PostPosted: 30 Jun 2008 4:23 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 807
Location: Varese - Italy
Quote:
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 25 posts ]  Go to page 1 2 Next

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved