Sending an e-mail/shout when a new alert arrives

Post Reply
User avatar
fyot
Nouveau
Nouveau
Posts: 736
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

Post by fyot » 29 Mar 2007 3:12

Hi,

It's possible to forward all messages received in GAS using SendAlarmToScript parameter throught Administration Facility GUI.

I could see some information following this link

So all messages arrived in your GAS will be send by mail.
Another way is to extract from Control-EM database all messages and proceed to send mail only when you find that sort of message.
That process could be run using a Control-M job.

mpc3000

Post by mpc3000 » 02 Apr 2007 5:24

hello i'am not really sure
but you can do this

as user "controlm" on your UNIX server
submit the command :
ctmshdst
choose at fist list to verify if your user exist
else create them
for target specify "your email"
for type specify "M" ( like mail )
and save
or user the command online :
ctmshout add <table> <Logical> <Physical> <type>
ctmshout update <table> <Logical> <Physical> <type>
where the table is "SYSTEM"
logical dest is "your user in GAS"
physical dest is "your mail"
type is "M" (i'am not sure perhaps U )

good luke

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

Post by philmalmaison » 08 Jun 2007 6:19

for me , you have to make a .mailrc in the $HOME directorie of control-m server, like this one :
alias MAIL_PILOT thierry.malville@sgam.com \
METIER.SGAMASTREINTE@sgam.com
so define the mailbox in controlm server parameters :

ctm_menu/parameter customisation/system parameter and .../shout destination table/create-modify a table/[system]/y
Shout Destination Table 'SYSTEM '
------------------------------------

# Destination Type Adr Logical Name Physical Name
--- ---------------- --- ----------------- -------------------------------
1 O L CONSOLE
2 E L ECS
3 T A GCPFLU /expgcp/admoph/messages/GCPFLU
4 T A GCPNUIT /expgcp/admoph/messages/GCPNUI
5 T A GCPTRT /expgcp/admoph/messages/GCPTRT
6 T A GMCFLU /expgmc/admgmc/messages/GMCFLU
7 T A GMCNUIT /expgmc/admgmc/messages/GMCNUI
8 T A GMCTRT /expgmc/admgmc/messages/GMCTRT
9 T A GPGFLU /expgpg/admg/messages/GPGFLU
10 T A GPGTRT /expgpg/admg/messages/GPGTRT
11 T A GPRFLU /expgpr/admgpr/messages/GPRFLU
12 T A GPRTRT /expgpr/admgpr/messages/GPRTRT
13 L L IOALOG
14 M S MAIL_CTM_PRDADM MAIL_CTM_PRDADM
15 M S MAIL_IS MAIL_IS
16 M S MAIL_NBCK ADMIN_NBCK
17 M S MAIL_PEEE MAIL_PEEE
18 M S MAIL_PILOT MAIL_PILOT
19 M S MAIL_PRFT MAIL_PRFT
20 M S MAIL_PRS MAIL_PRS
21 M S MAIL_PVMSSauv MAIL_PVMSSauv
22 M S MAIL_RPC MAIL_RPC
23 M S MAIL_SER MAIL_SER

q) Quit e#) Edit entry # n) New entry d#) Delete entry #

Enter option:


and create it, so you can put your .mailrc adress in the shout in replacement of ECS

Post Reply