Why not just use the Alarm Manager built-in command "save_to_file"? This can
be used from any static display (i.e. UNACK, ACKED, NEWALM, and AHD). By
default this command is not mapped to any menu or button but you can
configure it using ADMC. Alternately, you can pref it in from the command
line of a script. This will be your best bet if you want to run it with
crontab. Add the following lines to your script:
pref -<amname> amcmd "setdisp AHD"
sleep 1
pref -<amname> amcmd "save_to_file <filename>"
where:
<amname> Name of your Alarm Manager
<filename> Full pathname of the file where you want the alarms
written, usually something like
/usr/fox/customer/alarms/reports/myahd.txt".
This command is documented in B0193RV "Workstation Alarm Management" along
with the other AM built-in commands. You can also write the file in a CSV
format by appending the option "-CSV" to the end of the command, as in:
pref -<amname> amcmd "save_to_file <filename> -CSV"
Kathy
-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On
Behalf Of Penndorf, Rocco (RP)
Sent: Wednesday, July 28, 2004 3:14 AM
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] Extracting Alarm History to ASCII File
Hello List,
does anybody know a way how to automatically extract alarm history to an
ascii file.
I know how to do it using the alarm history display save option but I would
like to make a crontab job saving those informations on a timeframe basis.
Best Regards
Rocco Penndorf
____________________________________________________________________________
_________________________________________________
Sr. Process Control Engineer / Acrylic Acid Plant
DOW - Boehlen
Tel.: +49 (0) 34206-8-7524
Fax: +49 (0) 34206-8-7522
E-Mail: rppenndorf@xxxxxxx
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
foxboro mailing list: http://www.freelists.org/list/foxboro
to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
foxboro mailing list: http://www.freelists.org/list/foxboro
to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave