EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  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  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025 
<== Date ==> <== Thread ==>

Subject: Re: Sending alarm warnings via email and text
From: "L. C. De Silva" <[email protected]>
To: Dirk Zimoch <[email protected]>
Cc: [email protected]
Date: Thu, 3 Oct 2013 11:20:12 -0400
Hello guys,

Thanks for all the responses. I much appreciate your input.

Cheers, Chanaka.
On Oct 3, 2013, at 8:05 AM, 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 Martin L. Smith
Next: lvDCOM (LabVIEW -> EPICS PVs on Windows) freddie.akeroyd
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025 
Navigate by Thread:
Prev: Re: Sending alarm warnings via email and text Martin L. Smith
Next: lvDCOM (LabVIEW -> EPICS PVs on Windows) freddie.akeroyd
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025