This is interesting ... I did not know this could be done from StreamDevice.
I have a Perl script that I run from the alarm handler which uses the CA
Perl module to get the relevant PV info that I want to send and a subroutine
to send the email/text message using the PV info and whatever message I want
to send with it.
Marty
On 10/03/13 07:05, Dirk Zimoch wrote:
On 03.10.2013 07:37, L. C. De Silva wrote:
Hi all,
I am interested in implementing alarm handler warnings via email and text. Is
this supported in EPICS framework? If so, can somebody point me to the
relevant information?
Thanks, Chanaka.
With StreamDevice, you can send emails. Not from the alarm handler, but from a
record. (Handle with care: SCAN=".1 second" may be a bad idea.)
All you need is access to a (not too suspicious) mail server from your IOC and a
little bit of knowledge about the sendmail protocol:
Terminator = CR LF;
ExtraInput = Ignore;
ReplyTimeout = 1000;
@mismatch { out "QUIT"; disconnect; }
mail_start {
connect 10000;
in "220";
out "HELO";
in "250";
out "MAIL FROM:\$1";
in "250";
out "RCPT TO:\$2";
in "250";
out "DATA";
in "354";
out "From: \$1";
out "To: \$2";
out "Subject: Report from \$1";
out "";
}
mail_end {
out ".";
in "250";
out "QUIT";
disconnect;
}
send {
mail_start;
out "Your problem is: %s";
mail_end;
}
- References:
- Sending alarm warnings via email and text L. C. De Silva
- Re: Sending alarm warnings via email and text Dirk Zimoch
- Navigate by Date:
- Prev:
Re: Sending alarm warnings via email and text Dirk Zimoch
- Next:
Re: Sending alarm warnings via email and text L. C. De Silva
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Sending alarm warnings via email and text Dirk Zimoch
- Next:
Re: Sending alarm warnings via email and text L. C. De Silva
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|