UM-0085-B09
DT80 Range User Manual
Page 111
RG
Multiple Network Interfaces
In this example, a DT8xM is configured to perform regular daily data unloads to an FTP server on the local Ethernet LAN,
which does not have an Internet connection. In the event of an alarm condition, however, the modem interface (which is
the default) is used to send an email alert.
BEGIN"LYREBIRD"
RA2S
IF(1TK(LM,"Ambient")<>5,35)[mailto:alert@womble.org]
RB1D
DO{COPYD dest=ftp://cat:dog@10.33.112.99/lyrebird/?interface=eth start=new}
END
Notice:
option values (but not option names) can be shortened if desired, e.g.
interface=eth
is equivalent to
interface=ethernet
.
DELD - Delete Logged Data
The
DELD
command is used to
delete
data and alarms from one or more store files.
The
DELD
command options are used to:
•
select the data or alarm stores from which you wish to delete records
•
select the range of data records to delete
The options used to select the set of data/alarm stores from which to delete are identical to those used for
LISTD
, apart
from some different defaults, and are listed in
.
You can specify a range of data to delete using the
end=
option, which works in the same way as the equivalent
COPYD
option. That is, you can delete all data older than the specified time.
Note1:
by default
DELD
does not delete archive files – specify
archive=Y
to include them.
Note2:
DELD
does not support the
start=
option.
For example, to delete all logged data for the current job which is older than 30 days, including data in archive files, use:
DELD archive=Y end=-30T
Some points to note:
•
Once the required records have been deleted from an archive file, if the archive file is then empty then the file
will be deleted
•
Live store files are not deleted, even if all records have been deleted
•
If any orphan store files are found (live or archive) then they will be deleted
DELD Option Summary
The following table summarises the available
DELD
options:
Option
Value
Description
Default Value
Store selection options
job=
jobname
Delete records for specified job only
(none)
*
Delete records for all jobs
(none)
Delete records for current job only
sched=
schedule-list
Delete records for specified schedules only
XABCDEFGHIJK
data=
Y
/
N
Delete data (yes/no)
Y
alarms=
Y
/
N
Delete alarms (yes/no)
Y
live=
Y
/
N
Delete from live stores (yes/no)
Y
archive=
Y
/
N
Delete from archive stores (yes/no)
N
src=
drive-list
Search for store files on specified drives only
ABD
path=
folder-path
\
Search for store files in specified folder or sub-folders only
(none)
file-path
Unload from specified store file only
(none)
Search path based on
src
,
job
and
sched
options
Data Range options
end=
yyyy
-
mm
-
dd
T
hh
:
mm
:
ss
.
tt
Delete records earlier than specified timestamp. Date/time
components may be omitted, starting with least significant.
delete all records
-
dd
T
hh
:
mm
:
ss
.
tt
timestamp is specified time,
dd
days ago
-
hh
:
mm
:
ss
.
tt
timestamp is current time, minus the specified offset, rounded down
to the smallest specified time component
m
CVT
hh
:
mm
:
ss
.
tt
date part of timestamp is
m
CV value (seconds since 1-Jan-1989)
yyyy
-
mm
-
dd
T
n
CV
time part of timestamp is
n
CV value (seconds since midnight)