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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Sending alarm warnings via email and text |
From: | Dirk Zimoch <[email protected]> |
To: | [email protected] |
Date: | Thu, 03 Oct 2013 14:05:19 +0200 |
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; }