Posted: 30 Jun 2008 6:18
But in the BIM, in the "Do Action" for shout, theres only "Message" tab but no destination tab. Then how can we shout to a program?:O
Controlm-M Users Comunity
https://scheduler-usage.com/forum/
I tried this for jobs other than BIM, its working but it has lot of limitations like we can do echo of the parameters to the server location only not any other.mauriziog wrote: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.
Is it possible to change the standard alers to a script instead of ECS?mauriziog wrote:The do_shout of the BIM goes to the ECS (and the web part of the BIM...).
In this case you can send all the alerts to a script, this do the filter and exec the destination script only for the mesages that arrive from BIM.
The method to send a shout to a script is not limited as you think because you have a centralized point to send e-mails.I have predefined groups of email IDS for ech and every job. so, I need to send email to those particular groups corresponding to the job which has failed. Whats the best way to do it?
I am sorry I didnt understand anythingmauriziog wrote:The method to send a shout to a script is not limited as you think because you have a centralized point to send e-mails.I have predefined groups of email IDS for ech and every job. so, I need to send email to those particular groups corresponding to the job which has failed. Whats the best way to do it?
Another way is to send a shout to ECS (the alert GUI), this message usualy is coded. (note that is also a centralized point: the EM server).
The alerts can be sent to a script, but be carefull ALL Alerts are sent.
In the scritp you must parse the snmp message but you have many informations: jobname, group, application, hour, time, severity, message, etc.
So you can reconize messages from one group of jobs and send an e-mail to a e-mail group.
I've build this for all the jobs that run on MVS controlm that has not the e-mail.
But is also a method to send an e-mail without writing informations on the jobs. In fact by default controlm send an alert if a Job end notok....
So I use it when there are many mail segnalations to do and to administrate, and at job level is hard.
But write well the program: be carefull.
I am sorry I didnt understand anything