-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdsupdt.usg
More file actions
1774 lines (1507 loc) · 95.8 KB
/
Copy pathdsupdt.usg
File metadata and controls
1774 lines (1507 loc) · 95.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1 INTRODUCTION
Program 'dsupdt' is a utility for periodic dataset updates by calling 'dsarch'
to archive data onto CISL Research Data Archive (RDA) Servers.
This application is implemented to:
- Configure update information of controls/local files/remote files for a dataset
- Download/retrieve data files on remote servers or other local machines
- Call specialist-defined routines to validate/convert the downloaded remote
data files
- Build local files based on the remote files, tar and/or compress actions
are automatically applied if necessary
- Archive local files onto RDA Servers by calling 'dsarch'
- Clean the local files and/or other temporary files after the data files
are archived successfully
- Check availability of files on remote servers
- Start update actions via a centralized daemon 'dscheck', via cron job,
or manually
A dataset must be set to work with 'dsarch' before it can be configured for
periodic update by 'dsupdt'. Check help document of 'dsarch' for information
of setting dataset under control of 'dsarch'.
With update information being configured into RDADB for data files, 'dsupdt'
downloads and archives data as in the following steps:
Server Files on remote server or at other local area =========DOWNLOAD/COPY=>
Remote Files at local working area ========================VALIDATE/CONVERT=>
Remote Files ready for building Local Files =============TAR/COMPRESS/BUILD=>
Local Files ready for archive =======================================DSARCH=>
Files on RDA Servers
If not given explicitly, a server file name is the same as remote file name.
For cases of one-to-one matching between remote files and local files, a
remote file name defaults to given local file name if it is not specified.
A local file update record is the minimal configuration to update data files
for a given dataset. Add remote file configuration records for situations that
the remote file name is different from the local file name or multiple remote
files are involved for building a single local file.
Set update control records to start update actions on, or not on, specified
data process computers, or on all available ones. Without update control
record, an update action can be started routinely via cron jabs manually on
a specified computer.
To prevent a DSS specialist from executing 'dsupdt' accidentally to update
data files via update configuration records owned by other specialists, only
the specialist who owns a update record can execute 'dsupdt' against it to
update data. Validation procedures are also added to prevent DSS specialists
from setting up 'dsupdt' configuration on a wrong dataset. If an input file is
used to hold option information for setting up update configuration of a given
dataset, the input file name must start with the dataset number, as in format of
'dsnnn.n.*'; the wildcard '*' matches one or multiple characters valid for file
names. Another validation is to check if a specialist is allowed to execute
'dsupdt' on a given dataset. Action stops if a specialist is not listed as
a owner, unless a Mode option -MD (-MyDataset) is present. The option -MD tells
'dsupdt' to go ahead finish an Action forcefully.
Update procedure of an individual data file is skipped if error occurs during
updating; but execution of 'dsupdt' continues to finish all the other available
updates. Restarting of 'dsupdt' picks up where it was left for the update files
unfinished previously. An email notice is sent to the specialist who starts
update actions of 'dsupdt'. As default, the email includes detail information
of successful updates, and error messages if any.
In the following sections, general usage of 'dsupdt' is described first; and
detail descriptions of different options are given next; and examples are
interspersed through out the document.
2 GENERAL DSUPDT USAGE
dsupdt [[-(DS|Dataset)] dsnnn.n] [Action Option] [Mode Options] [Info Options]
or
dsupdt [-(IF|InputFile)] InputFileNames
Quotes [] indicate optional. A pipeline '|' in parentheses as in format (A|B)
means either A or B can be used. The options applied to 'dsupdt' are divided
into three categories, Action, Mode, and Information (Info for short) options.
Action options are used to specify what tasks this utility to execute; Mode
options are used to modify behaviors of the actions; and the Info options
are used to pass information, one or multiple values, to run 'dsupdt'. An option
can be given in form of either short name or long name, -DS or -Dataset for
example. Some options have alias names for convenience. Option names can be
given in either upper or lower cases, while the values following Info options
are case sensitive.
Option -DS is an Info option which is used to specify a dataset number. If a
dataset number is given as the first option following 'dsupdt' the option name
-DS (-Dataset) can be omitted. Some actions are allowed to be executed without
dataset number, which means that the actions are applied on all available update
control or file records of different datasets.
Specify one of the Action options each time to execute 'dsupdt'. Based on what
Action is chosen, some of the Info options are mandatory and others are optional
and certain Mode options can be applied to alter the behaviors of the Actions.
All options, except Info option -IF (-InputFile), can be given either on command
line or in input files. Input file names are presented per Info option -IF and
can only be provided on command line. Check description of Info option -IF for
detail on how to present options in input files. One or multiple input files,
combined with options on command line, are allowed to run 'dsupdt'. The option
name, -IF (-InputFile), itself can be omitted if a single input file is given on
command line, and action and additional option information are all provided
inside the input file.
When information of update controls/local files/remote files are retrieved,
Info options are used to specify conditions for querying information from
RDADB. Some special signs can be used to further confine the information with
special and complicated conditions; they are '!', '<', '>' and '<>'. These
special signs, if provided on command line, must be quoted or escaped to avoid
of being interpreted by computer OS. The '!', or \!, means exclusion to the
following value(s) and it must be the first item following an Info option name,
while '<' or '>' mean greater or less than the following value, and '<>' means
condition between the following two values. Combine '!' and '<', as syntax "'!'
'<' OptionValue", to make a condition of 'large than or equal to OptionValue'.
Description of an individual option is displayed if 'dsupdt' is issued on
command line as
dsupdt [Option] -(h|help) [Option]
A description is displayed for an option given either before or after -(h|help).
If no option is specified or 'dsupdt' is issued by itself, this whole document
is displayed per UNIX utility 'more'. A hard copy of this help document can be
printed from the saved file: $DSSHOME/dssdb/prog_usage/dsupdt.usg; $DSSHOME is
an environment variable for DSS home directory setup on individual computers.
#The online HTML version of this document is available at
#http://dss.ucar.edu/internal/docs/dsupdt/
3 ACTION OPTIONS
Action options are used to specify what tasks 'dsupdt' executes. No values
are allowed to follow Action options. Multiple tasks may be processed with a
single execution of 'dsupdt' depending on what Action option is chosen. Some of
the comprehensive actions include automatically other simpler actions as
default; and others include additional actions when certain Mode options are
present. Execute 'dsupdt' for one Action as a time, and multiple Action options
provided simultaneously are blocked.
Some actions are setting information into and some getting information from
RDADB for a given dataset, and others are allowed to work on multiple datasets
if dataset number is omitted.
Based on the information being manipulated, the actions are divided into three
categories:
Configuration Actions - create, delete, modify and retrieve information of
update controls, local files and remote files in RDADB,
of a specified dataset
All Information Actions - modify and retrieve information of update controls,
local files and remote files of a specified dataset
all together
Update Actions - download remote files, build local files, archive local
files onto RDA Servers, clean the temporary data files,
check update status of files on remote servers, and
unlock update controls or local files that are locked
by aborted update processes.
3.1 Configuration Actions
Update control, local file and remote file information can be created,
modified, viewed or deleted via Actions in this section:
Set Update Controls - create or modify information of update control
records for a given dataset
Get Update Controls - retrieve information of update control records
for one or all datasets
Set Local Files - create or modify information of local file records
for a given dataset
Get Local Files - retrieve information of local file records
for one or all datasets
Set Remote Files - create or modify information of remote file records
for a given dataset
Get Remote Files - retrieve information of remote file records
for one or all datasets
Delete Update Information - delete update control and local/remote file records
3.1.1 Set Update Controls
-SC or -SetControl (Alias: -SetUpdateControl), creates or modifies update
control information into RDADB for a given dataset. These configuration records
are used to schedule data update actions and the actions are automatically
started via a centralized daemon 'dscheck'. One or multiple control records can
be set each time for a given dataset.
dsupdt [[-(DS|Dataset)] dsnnn.n] -(SC|SetControl) [Mode Options]
-(CI|ControlIndex) UpdateControlIndices
[-(ID|ControlID) ControlIdString]
[-(SN|Specialist) DSSSpecialist]
[-(PI|ParentIndex) ParentControlIndedices]
[-(AN|ActionName) DSUPDTActionNames] # UF, DR, BL, PB, CL, CU
[-(FQ|Frequency) UpdateControlFrequencies] # i.e., 1W, 1M
[-(CO|ControlOffset) UpdateControlOffsets]
[-(CT|ControlTime) UpdateControlTimes]
[-(RI|RetryInterval) ControlRetryInterval] # i.e., 1D, 1D3H, 1M
[-(VI|ValidInterval) UpdateValidInterval] # i.e., 1D, 2D, 1M
[-(UC|UpdateControl) UpdateControlOptions]
[-(MC|EMailControl) EmailControlOptions]
[-(EC|ErrorControl) ErrorControlOptions]
[-(KF|KeepFile) KeepFileOptions]
[-(HO|HourOffset) TimeZoneOffsets]
[-(DT|DataTime) DataUpdatedTimes]
[-(HN|HostName) HostNames]
[-(XC|ExecuteCoomand) CoomandAfterUpdate]
[-(CC|CarbonCopy) Cc'dEmailAddresses]
[-(DB|Debug) DebugModeInfo]
Mode option that can be specified for setting local file action:
-(MD|MyDataset) - sets information into RDADB no matter the specialist who
runs 'dsupdt' owns the dataset or not
-(NC|NewControl) - sets a new update control record into RDADB
If information of an update control exists already in RDADB, the control record
is modified. A new update control record is added if control index is 0 and Mode
option -NC (-NewControl) is present. A dataset name via Info option -DS is
only mandatory when a new control record is added.
For example, set three new update control local files of d277000 via
input file 'd277000.cntl'
dsupdt SC -NC -IF d277000.cntl
<<Content of input file d277000.cntl>>
Dataset<=>d277000
ControlIndex<:>Specialist<:>ParentIndex<:>Action<:>Frequency<:>ControlOffset<:>ControlTime<:>RetryInterval<:>UpdateControl<:>EMailControl<:>ErrorControl<:>KeepFile<:>HourOffset<:>
0<:>zji<:>0<:>UF<:>1W<:>1D9H<:>2011-10-24 09:00:00<:>12H<:><:>A<:>N<:>N<:>0<:>
0<:>zji<:>0<:>UF<:>1M<:>1D15H<:>2011-11-02 15:00:00<:>1D<:><:>A<:>N<:>N<:>0<:>
0<:>zji<:>0<:>UF<:>1M<:>2D15H<:>2011-11-03 15:00:00<:>1D<:><:>A<:>N<:>N<:>0<:>
3.1.2 Get Update Controls
-GC or -GetControl (Alias: -GetUpdateControl), retrieves update control
information for a given dataset.
dsupdt [[-(DS|Dataset)] dsnnn.n] -(GC|GetControl) [Mode Option]
[-(FN|FieldNames) FieldNameString]
[-(CI|ControlIndex) UpdateControlIndices]
[-(ID|ControlID) ControlIdString]
[-(SN|Specialist) DSSSpecialist]
[-(PI|ParentIndex) ParentControlIndedices]
[-(AN|ActionName) DSUPDTActionNames] # UF, DR, BL, PB, CL, CU
[-(FQ|Frequency) UpdateControlFrequencies] # i.e., 1W, 1M
[-(CO|ControlOffset) UpdateControlOffsets]
[-(CT|ControlTime) UpdateControlTimes]
[-(OF|OutputFile) OutputFileName]
[-(DB|Debug) DebugModeInfo]
Mode option that can be specified for getting update control Action:
-(FO|FormatOutput) - format the column output with a fix width for all values
of a given field
Use Info option -FN (-FieldNames) to specify what control fields to be
retrieved. It defaults to 'CLNPAFOTRVUJEKZ' if option -FN is not provided.
Update information of all available fields is retrieved if -FN ALL is given.
Valid field names of update controls and their corresponding Info option names:
Names Info Options Descriptions
C -(CI|ControlIndex) index of update control record
L -(ID|ControlID) descriptive id for a control record
N -(SN|Specialist) DSS specialist who owns the control record
P -(PI|ParentIndex) parent index, refers to a dcupdt.cindex if not 0
A -(AN|ActionName) Update action name for 'dsupdt'
F -(FQ|Frequency) frequency of update control, i.e., 1W, 1M
O -(CO|ControlOffset) time offset for next process, i.e. 2D10H, 3H15N
T -(CT|ControlTime) time to run dsupdt, format: YYY-MM-DD HH:NN:SS
R -(RI|RetryInterval) retry interval for failed dsupdt, i.e. 1M2D, 2H
V -(VI|ValidInterval) update valid interval, i.e., 2D, 1M
U -(UC|UpdateControl) any of B-Begin,C-Current,E-Reset End Date/Time,
F-Future,G-GMT,M-Multi,N-New,O-Miss,
Y-Skip Feb. 29,Z-Allow Zero Filesize
J -(MC|EMailControl) one of A-All, E-Error, N-No, S-Summary, B-Summary when error
E -(EC|ErrorControl) one of I-Ignore Error, Q-Quit on Error, N-Neither
K -(KF|KeepFile) one of S-Server File, R-Remote file, B-Keep Both, N-Neither
Z -(HO|HourOffsset) time zone hour offset, hours ahead of local time
D -(DT|DataTime) time data updated to, format: YYY-MM-DD HH:NN:SS
H -(HN|HostName) hostnames this cindex can/cannot be processed on
S -(SB|SBatchOptions) additional PBS batch options
Q -(QS|QSubOptions) additional PBS batch options
Y -(CC|CarbonCopy) carbon copies for additional email addresses
X -(XC|ExecuteCommand) Command to be executed after successful update
If dataset number is missed, update control information is displayed for all
available control records, of different datasets, owned by the specialist who
runs 'dsupdt'.
For example, to get the update control information of d277000 for default
fields
dsupdt d277000 GC
<<Content of the output>>
Dataset<=>d277000
ControlIndex<:>Specialist<:>ParentIndex<:>Action<:>Frequency<:>ControlOffset<:>ControlTime<:>RetryInterval<:>UpdateControl<:>EMailControl<:>ErrorControl<:>KeepFile<:>HourOffset<:>
1<:>zji<:>0<:>UF<:>1W<:>1D9H<:>2011-10-24 09:00:00<:>12H<:><:>A<:>N<:>N<:>0<:>
2<:>zji<:>0<:>UF<:>1M<:>1D15H<:>2011-11-02 15:00:00<:>1D<:><:>A<:>N<:>N<:>0<:>
3<:>zji<:>0<:>UF<:>1M<:>2D15H<:>2011-11-03 15:00:00<:>1D<:><:>A<:>N<:>N<:>0<:>
3.1.3 Set Local Files
-SL or -SetLocalFile (Alias: -SetLocal), creates or modifies update information
of local files into RDADB for a given dataset. One or multiple records can be
processed each time.
dsupdt [[-(DS|Dataset)] dsnnn.n] -(SL|SetLocalFile) [Mode Options]
-(LI|LocalIndex) LocalFileIndices
[-(LF|LocalFile) LocalFileNames]
[-(CI|ControlIndex) UpdateControlIndices]
[-(PI|ParentIndex) ParentLocalIndedices]
[-(FA|FileArchived) ArchivedFileNames] # auto generated if missed
[-(DC|DownloadCommand) DownloadCommand]
[-(AN|ActionName) DSARCHActionNames] # AS, AW or AQ
[-(OP|Options) DSARCHOptions]
[-(XO|ExecOrder) ExecuteOrderIndices]
[-(FQ|Frequency) DataFrequencies] # i.e., 1W, 1M
[-(EP|EndPeriod) PerirodEndAt] # 0=Sunday/EndMonth if FQ=1W/1M
[-(DI|DueInternval) DataDueInterval] # i.e., 1M2D
[-(ED|EndDate) NextDataEndDate]
[-(EH|EndHour) NextDataEndHour]
[-(VI|ValidInterval) UpdateValidInterval] # i.e., 1D, 2D, 1M
[-(AT|AgeTime) RemoteFileAgeTime] # i.e., 1D, 2D, 1M
[-(WD|WorkDir) WorkingDirectory]
[-(CL|CleanCommand) FileCleaningCommand]
[-(MR|MissRemote) AllowMissRemote] # 'Y' or 'N'
[-(PR|ProcessRemote) AdditionalRemoteFilePrecess] # user defined
[-(BC|BuildCommand) CoomandBuildLocalFile] # user defined
[-(SN|Specialist) DSSSpecialist]
[-(DE|Description) FileDescription] # note, include temporal patterns
[-(DB|Debug) DebugModeInfo]
Mode option that can be specified for setting local file action:
-(MD|MyDataset) - sets information into RDADB no matter the specialist who
runs 'dsupdt' owns the dataset or not
-(NL|NewLocfile) - sets a new update record into RDADB
-(RO|ResetOrder) - resets the executing order indices of the local file
records according to the order as they are given.
If information of a local file exists already in RDADB for a given local file
index, the update record is modified. A new local file record is added if
local file index is 0 and Mode option -NL (-NewLocfile) is present. A dataset
name via Info option -DS is only mandatory when a new control record is added.
Patterns quoted by delimiters can be set in local file names per -LF
(-LocalFile), remote file names per -RF (-RemoteFile), download command per
-DC (-DownloadCommand) and archive file note per -DE (-Description). The
default delimiters are '<' and '>', which can be set differently per Info
option -PD (-PatternDelimiter). A pattern is use for place holder of
temporal or generic matching information of data files and later can be
dynamically replaced with given values during update actions. The pattern
<YYYYMM> is a place holder for a 4-digital year and a 2-digital month. For
example, a local file name is given as 'filename.<YYYYMM>.ext', and the year
and month are replaced by year value 2007 and month value 10 if the data file
is updated to end date of 2007-10-31. Replacing <YYYYMM> with 200710 to get
the local file name as 'filename.200710.ext'.
An local file configuration for a dataset is linked to an existing update
control record for the same dataset, if the Control Index is set into
the local file record via Info option -CI (-ControlIndex). With this setup,
the update action set in the update control record is scheduled to process
automatically against this local file configuration.
For example, set update information of two new local files of d744004 via
input file 'd744004.loc'
dsupdt SL -NL -IF d744004.loc
<<Content of input file d744004.loc>>
Dataset<=>d744004
LocalIndex<:>LocalFile<:>Action<:>ExecOrder<:>ControlIndex<:>FileArchived<:>DownloadCommand<:>Options<:>Frequency<:>DueInterval<:>EndDate<:>ValidInterval<:>WorkDir<:>CleanCommand<:>
0<:>uv.<YYYYMM>.bln<:>AW<:>1<:>0<:><:>cp -p /huron/ftp/rossby/upload/morzel/<:>-GI 11 -DF BINARY<:>1M<:><:>2009-08-31<:><:>$UPDTDATA/zji/BLNWIND<:>rm -f __FN__<:>
0<:>curl.<YYYYMM>.bln<:>AB<:>2<:>0<:><:>cp -p /huron/ftp/rossby/upload/morzel/<:>-GI 12 -DF BINARY<:>1M<:><:>2009-08-31<:><:>$UPDTDATA/zji/BLNWIND<:>rm -f __FN__<:>
3.1.4 Get Local Files
-GL or -GetLocalFile (Alias: -GetLocal), retrieves local file update
information for a given dataset. Update information of specified local
files are retrieved if the local file indices or names are provided.
dsupdt [[-(DS|Dataset] dsnnn.n] -(GL|GetLocalFile) [Mode Option]
[-(FN|FieldNames) FieldNameString]
[-(LI|LocalIndex) LocalFileIndices]
[-(LF|LocalFile) LocalFileNames]
[-(AN|ActionName) DSARCHActionName]
[-(XO|ExecOrder) ExecOrderIndex]
[-(FQ|Frequency) DataFrequencies] # i.e., 1W, 1M
[-(OF|OutputFile) OutputFileName]
[-(DB|Debug) DebugModeInfo]
Mode option that can be specified for getting local file Action:
-(FO|FormatOutput) - format the column output with a fix width for all values
of a given field
Use Info option -FN (-FieldNames) to specify what local file fields to be
retrieved. It defaults to 'LFAIUCOQJNVWZ' if option -FN is not provided.
Update information of all available fields is retrieved if -FN ALL is given.
Valid field names of local files and their corresponding Info option names:
Names Info Options Descriptions
L -(LI|LocalIndex) index of update record
F -(LF|LocalFile) local, original or source file names
A -(AN|ActionName) Action name for 'dsarch'
I -(CI|ControlIndex) update control indices
P -(PI|ParentIndex) parent index, refers to a dlupdt.lindex if not 0
U -(FA|FileArchived) archived file names on RDA Servers
C -(DC|DownloadCommand) command for download Remote file
O -(OP|Options) options following the Action
X -(XO|ExecOrder) order indices for update execution
Q -(FQ|Frequency) frequency of data files, i.e., 1W, 1M
E -(EP|EndPeriod) 0=Sunday/EndMonth if FQ=1W/1M
J -(ED|EndDate) data end date of next update
K -(EH|EndHour) data end hour of next update
N -(DI|DueInterval) data next due period, i.e., 1M2D
V -(VI|ValidInterval) update valid interval, i.e., 2D, 1M
T -(AT|AgeTime) remote file age interval, i.e., 2D, 1M
W -(WD|WorkDir) working directory for processing update
Z -(CL|CleanCommand) command for removing data files after update
M -(MR|MissRemote) flag, Y/N, if allow missing one of remote files
R -(PR|ProcessRemote) external utility to process remote files
B -(BC|BuildCommand) external utility to build local files
S -(SN|Specialist) DSS specialist who owns the local file record
D -(DE|Description) File description, include temporal patterns
Local file update information can be retrieved for specified local file
names per option -LF (-LocalFile). Info option -LF accepts wildcard input
of '%' for matching any number of characters.
If dataset number is missed, update information is displayed for all available
local files, of different datasets, owned by the specialist who runs 'dsupdt'.
For example, to get the local file information of d744004 for default fields for
local file indices 33 and 34
dsupdt d744004 GL -LI 33 34
<<Content of the output>>
Dataset<=>d744004
LocalIndex<:>LocalFile<:>Action<:>ExecOrder<:>ControlIndex<:>FileArchived<:>DownloadCommand<:>Options<:>Frequency<:>DueInterval<:>EndDate<:>ValidInterval<:>WorkDir<:>CleanCommand<:>
33<:>uv.<YYYYMM>.bln<:>AW<:>1<:>0<:><:>cp -p /huron/ftp/rossby/upload/morzel/<:>-GI 11 -DF BINARY<:>1M<:><:>2009-08-31<:><:>$UPDTDATA/zji/BLNWIND<:>rm -f __FN__<:>
34<:>curl.<YYYYMM>.bln<:>Aw<:>2<:>0<:><:>cp -p /huron/ftp/rossby/upload/morzel/<:>-GI 12 -DF BINARY<:>1M<:><:>2009-08-31<:><:>$UPDTDATA/zji/BLNWIND<:>rm -f __FN__<:>
3.1.5 Set Remote Files
-SR or -SetRemoteFile (Alias: -SetRemote), creates and modifies update
information of remote files into RDADB for given dataset and local
file(s). One or multiple remote files can be processed each time.
dsupdt [-(DS|Dataset)] dsnnn.n -(SR|SetRemoteFile) [Mode Option]
-(LI|LocalIndex) LocalFileIndices
-(RF|RemoteFile) RemoteFileNames
[-(DO|DownloadOrder) DownloadOrderIndecies]
[-(DC|DownloadCommand) DownloadCommand] # override the one for
[-(SF|ServerFile) FileNamesOnRemoteServer]
[-(BT|BeginTime) BeginningDay/Hour] # ':' delimited for multiple ones
[-(ET|EndTime) EndingDay/Hour] # ':' delimited for multiple ones
[-(TI|TimeInterval) TimeInterval] # i.e., 2H, 5D
[-(DB|Debug) DebugModeInfo]
Mode option that can be specified for this action include:
-(MD|MyDataset) - sets information into RDADB no matter the specialist who
runs 'dsupdt' owns the dataset or not
Set update information of remote files only when they are needed. For
simple situation that remote and local file names are identical, information
of the local file record is enough to process data update. A remote file
update record is only required if the remote file is different from local
file, including situations that multiple remote files are downloaded and
tarred for a single local file, or a single remote file may be available from
multiple servers.
Local file indices and remote file names must be provided per options -LI
(-LocalIndex) and -RF (-RemoteFile), respectively, for this action to work.
If a download command is specified per Info option -DC (-DownloadCommand) in
the remote file record, it is used for downloading remote file rather than
the one specified in the local file record.
Set file name on the remote server per Info option -SF (-ServerFile) if it
is different from the remote file name. If a server file name is not
set for a remote file record, it is assumed to be the same as the remote
file name.
Data files downloaded remotely or generated via local processes are temporarily
staged on a local disk. They are called remote files until they are further
validated and converted into local files.
Set download order indices per Info option -DO (-DownloadOrder) if a
remote file is accessible from multiple remote servers. Remote file download
action tries the web server with the lowest download index first; and, if
fails, it tries the other servers with higher indices until successful
download.
3.1.6 Get Remote Files
-GR or -GetRemoteFile (Alias: -GetRemote), gets remote file update
information for given condition.
dsupdt [[-(DS|Dataset)] dsnnn.n] -(GR|GetRemotefile) [Mode Option]
[-(FN|FieldNames) FieldNameString]
[-(LI|LocalIndex) LocalFileIndices]
[-(LF|LocalFile) LocalFileNames]
[-(RF|RemoteFile) RemoteFileNames]
[-(DO|DownloadOrder) DownloadOrderIndices]
[-(SF|ServerFile) ServerFileNames]
[-(OF|OutputFile) OutputFileName]
[-(DB|Debug) DebugModeInfo]
Mode option that can be specified for getting remote file Action:
-(FO|FormatOutput) - format the column output with a fix width for all values
of a given field
Use Info option -FN (-FieldNames) to specify what remote file fields to
retrieve. It defaults to 'LFDSCBET' if option -FN is not provided.
Valid remote file field names and their corresponding Info options:
Names Info Options Descriptions
L -(LI|LocalIndex) indices of records
F -(RF|RemoteFile) remote file names
D -(DO|DownloadOrder) download order indices
S -(SF|ServerFile) file names on remote server
C -(DC|DownloadCommand) command for download Remote file
B -(BT|BeginTime) for remote file names, 0 - the first day/hour
E -(ET|EndTime) for remote file names, 0 - the last day/hour
T -(TI|TimeInterval) for remote file names, i.e., 2H, 5D
Update information of all remote files from different datasets, owned by the
specialist who runs 'dsupdt', may be viewed at the same time if dataset number
is omitted.
3.1.7 Delete Update Information
-DL or -Delete, (Alias: -RM|-Remove), deletes one or multiple update
control, local file or remote file records from RDADB.
dsupdt [[-(DS|Dataset)] dsnnn.n] -(DL|Delete) [Mode Option]
-(CI|ControlIndex) UpdateControlIndices
[-(DB|Debug) DebugModeInfo]
or
dsupdt [[-(DS|Dataset)] dsnnn.n] -(DL|Delete) [Mode Option]
-(LI|LocalIndex) LocalFileIndices
[-(DB|Debug) DebugModeInfo]
or
dsupdt [[-(DS|Dataset)] dsnnn.n] -(DL|Delete) [Mode Option]
-(LI|LocalIndex) LocalFileIndices
-(RF|RemoteFile) RemoteFileNames
[-(DO|DownloadOrder) DownloadOrderIndices]
[-(DB|Debug) DebugModeInfo]
Mode option that can be specified for deleting update information Action:
-(MD|MyDataset) - delete records no matter the specialist who runs 'dsupdt'
owns the dataset or not
Use this action to delete update information. Control index must be given
to delete an update control record. Local file index must be given to delete
both local file and remote file records, while remote file name must be also
provided to delete a remote file record. Remote file records associated with a
local file record are all removed if the local file record is deleted.
3.2 All Information Actions
For convenient, all update information configured for a dataset can be created,
modified or viewed together via comprehensive actions of:
Get All Information - retrieve configuration information of update controls,
local files and remote files for a dataset
Set All Information - modify configuration information of update controls,
local files and remote files for a dataset
3.2.1 Get All Information
-GA or -GetAll, retrieves update control, local file and remote file information
for a given dataset. This is a comprehensive action, combining three Get actions,
-GC (-GetControl), -GL (-GetLocalFile) and -GR (-GetRemoteFile).
dsupdt [[-(DS|dataset)] dsnnn.n] -(GA|GetAll) [Mode Option]
[-(CI|ControlIndex) UpdateControlIndices]
[-(LI|LocalIndex) LocalFileIndices]
[-(LF|LocalFile) LocalFileNames]
[-(RF|RemoteFile) RemoteFileNames]
[-(OF|OutputFile) OutputFileName]
[-(DB|Debug) DebugModeInfo]
Mode option that can be specified for getting all Action:
-(FO|FormatOutput) - format the column output with a fix width for all values
of a given field
Section headers are generated as [DCUPDT] for update controls, [DLUPDT] for
local files and [DRUPDT] for remote files.
Info option -OF (-OutputFile) is normally used to specify a file name to
save the retrieved information for later usage. Result of this action is
displayed on screen if no output file is provided. The output file can be
edited and treated as a input file to save the changes back to RDADB per
action -SA (-SetAll).
For example, to get all update control, local file and remote file information
of d277000 for control index 1 with all fields
dsupdt d277000 GA -CI 2 -OF d277000.c1
<<Content of output file d277000.c1>>
Dataset<=>d277000
[DCUPDT]
ControlIndex<:>Specialist<:>ParentIndex<:>Action<:>Frequency<:>ControlOffset<:>ControlTime<:>RetryInterval<:>UpdateControl<:>EMailControl<:>ErrorControl<:>KeepFile<:>HourOffset<:>DataTime<:>HostName<:>
1<:>zji<:>0<:>UF<:>1W<:>1D9H<:>2011-10-24 09:00:00<:>12H<:><:>A<:>N<:>N<:>0<:><:><:>
[DLUPDT]
LocalIndex<:>LocalFile<:>Action<:>ExecOrder<:>ControlIndex<:>FileArchived<:>DownloadCommand<:>Options<:>Frequency<:>EndPeriod<:>DueInterval<:>EndDate<:>EndHour<:>RetryInterval<:>ValidInterval<:>AgeTime<:>WorkDir<:>MissRemote<:>ProcessRemote<:>BuildCommand<:>CleanCommand<:>Specialist<:>Description<:>
51<:>oisst.<YYYY>.asc.gz<:>AB<:>1<:>1<:><:>ncftpget ftp://ftp.emc.ncep.noaa.gov/cmb/sst/oisst_v2/ASCII_UPDATE/<:>-GI 1 -AF GZ -DF ASCII<:>1W<:>6<:><:>2011-10-22<:><:><:><:><:>$UPDTDATA/zji/NCEPSST<:>N<:><:><:>rm -f -LF<:>zji<:><YYYY/MM/DD>-<YYYY/MM/DD><:>
[DRUPDT]
LocalIndex<:>LocalFile<:>RemoteFile<:>ExecOrder<:>DownloadOrder<:>ServerFile<:>DownloadCommand<:>BeginTime<:>EndTime<:>TimeInterval<:>
51<:>oisst.<YYYY>.asc.gz<:>oisst.<YYYY>.asc.Z<:>1<:>0<:><:><:><:><:><:>
This example shows a weekly update of a local file with remote file name
different from the local file name.
3.2.2 Set All Information
-SA or -SetAll, and creates and modifies update control, local file and remote
file information for a given dataset number. This is a comprehensive action,
combining three Set actions, -SC (-SetControl), -SL (-SetLocalFile) and
-SR (-SetRemoteFile).
dsupdt [-(DS|dataset)] dsnnn.n -(SA|SetAll) [Mode Options]
-(IF|InputFile) Input Files
[-(DB|Debug) DebugModeInfo]
Mode option that can be specified for this action include:
-(MD|MyDataset) - sets information into RDADB no matter the specialist who
runs 'dsupdt' owns the dataset or not
-(NC|NewControl) - sets a new update control record into RDADB
-(NL|NewLocfile) - sets a new update record into RDADB
-(RO|ResetOrder) - resets the executing order indices of the local file
records according to the order as they are given per
option -LF (-LocalFile)
At least one input file is need to execute this action since section headers
can be specified in an input file only. One way of creating an input file is
to get one per action -GA (-GetAll) for a dataset. The output file then
can be edited and used as an input file to set the update information back
to RDADB.
3.3 Update Actions
Data update activities can be accomplished through either separate Actions
or one comprehensive Action -UF (-UpdateFile). Actions included in this
section are:
Update Data Files - a comprehensive action to download/convert remote
files, build up local files, archive data files onto
RDA servers, and clean temporary data files. It
combines the following four actions
Download Remote Files - download data files from remote server, process data
files locally to generate new files or do both
Build Local Files - build local files from given remote files
Process Both Files - a comprehensive action to download remote files and
validate/convert them and build up local files
Archive Local Files - archive local files onto RDA Servers via utility
program 'dsarch'
Clean Temporary Files - remove the temporary data files involved in the update
procedure
Unlock Local Files - unlock one or multiple records for them
to be re-updated on a different host
Check Update Status - checks update status of local files via looking at if
remote files are available for retrieving on remote
servers.
3.3.1 Update Data Files
-UF or -UpdateFile, comprehensive action to download/copy server files,
validate/convert the server files into remote files, build up local files from
available remote files, archive local files onto RDA server, and clean
the temporary data files generated during the update procedure.
dsupdt [[-(DS|dataset)] dsnnn.n] -(UF|UpdateFile) [Mode Options]
[-(CI|ControlIndex) UpdateControlIndex]
[-(LI|LocalIndex) LocalFileIndices]
[-(LF|LocalFile) LocalFileNames]
[-(XO|ExecOrder) ExecOrderIndex]
[-(RF|RemoteFile) RemoteFileNames]
[-(SF|ServerFile) ServerFileNames]
[-(DO|DownloadOrder) DownloadOrderIndices]
[-(DC|DownloadCommand) DownloadCommand]
[-(ED|EndDate) NextDataEndDate]
[-(EH|EndHour) NextDataEndHour]
[-(GP|GenericPattern) GenericPatterns]
[-(WD|WorkDir) WorkingDirectory]
[-(MR|MissRemote) AllowMissRemoteFile]
[-(FQ|Frequency) DataFrequency]
[-(PR|ProcessRemote) AdditionalRemoteFilePrecess] # user defined
[-(BC|BuildCommand) CommandBuildLocalFile] # user defined
[-(CD|CurrentDate) CurrentDate] # provide if different than current
[-(CH|CurrentHour) CurrentHour] # provide if different than current
[-(VS|ValidSize) MinSizeForValidFile]
[-(PL|ProcessLimit) MaxNumberOfChildProcesses]
[-(HO|HourOffset) TimeZoneHourOffset]
[-(QS|QsubOptions) PBSBatchOptions]
[-(BP|BatchProcess) [BatchProcessHosts]]
[-(CC|CarbonCopy) Cc'dEmailAddresses]
[-(DB|Debug) DebugModeInfo]
Mode options that can be specified for updating file Action:
-(AW|AnyWhere) - works with Info option -BP (-BatchProcess) to allow
the recorded "dsupdt' command be started anywhere.
-(BG|BackGround) - background process to turn off screen display for both
standard outputs and errors
-(CN|CheckNewer) - for server file is locally, checks if the file is changed
on Server; downloads it again if changed.
-(CP|CurrentPeriod) - allows update of the end date/hour beyond the current
date/hour if the current date/hour lands in the current
update period
a single update if this Mode option is not present;
-(EE-ErrorEmail) - sends email only when error happens during file updates
-(FU|ForceUpdate) - if present, force update at lease for one end data/time,
although the update is not due yet;
-(HU|HourlyUpdate) - forces update of time to hours after successful file
update action
-(IE|IgnoreError) - works with Mode option -MU (-MultipleUpdate) to skip
the error updates and continue finish the later
updates
-(KR|KeepRemote) - keep remote file on local disk by copying it to local
file instead of moving
-(KS|KeepServer) - keep server file on local disk by copying it to remove
file instead of moving
-(LO|LogOn) - turn detail logging on if option -PL is present
-(MO|MissedOnly) - update data file only if it is not archived yet
-(MU|MultipleUpdate) - allows multiple updates if multiple data update
periods are available; it defaults to process
a single update if this Mode option is not present;
-(NE|NoEmail) - does not send email to the specialist after update
-(NY|NoLeapYear) - skips February 29 for leap years
-(QE|QuitError) - quits processing update of a dataset when an error
happens, instead of continuing on other update local files
-(RA|RetryArchive) - force archive of local files by passing option -RA
to 'dsarch'
-(RD|RetryDownload) - retry download the remote file if it is local already
-(RE|ResetEndTime) - if present, reset end datae/hour according to the local file
timestamp;
-(SE|SummaryEmail) - send a summary email to the specialist after update
without detail logging information
-(UB|UseBeginTime) - when present, use the beginning time of update period
for replace temporal pattern of end time in file names
and download commands
-UT|UpdateTime) - forces to update the data end time and next due or
update times
Dataset number is provided per Info option -DS (-Dataset) to process data
update of a single dataset. Some Info options as listed can be provided at
the update running time to identify specified update records and others to
override the update information saved in RDADB. Two special Info options -CD
(-CurrentDate) and -CH (-CurrentHour) can only be proved at run time to
specify current date/hour rather than the default current time.
Multiple update periods may be processed if more than one update frequency
periods exist between the data end date/hour and the current date/hour and
the Mode option -MU (-MultipleUpdate) is present at the run time of update
actions.
As mentioned in the introduction section, an individual data file update
is interrupted if any error encountered during the update process. Error of
download a remote file is, however, allowed if value 'Y' is set for the update
record in RDADB via option -MR (-MissRemote) for situation that a local file
is built from multiple remote files. That means a partial update is allowed.
The partial update behaviors differently if a valid period is set for a update
record in RDADB via option -VI (-ValidInterval). The partial update will be put
on hold until the the remote data file are still not available beyond the valid
period.
If Info Option -PL is present with a value larger than 1, the update actions
of 'dsupdt' forks multiple child processes to process one update record in
each process. This helps dataset update with many time consuming independent
update records.
Additional one or multiple email addresses for notification of update result
can be specified by the Info option -CC (-CarbonCopy). For DSS specialist,
login user names themselves are acceptable, '-CC zji schuster' for example.
This action, -UF (-UpdateFile) can be executed on command line or per cron
jobs to update files configured in the local file records on a specified
computer. The local file records can also be linked to update control record
for this action to be executed via a centralized daemon 'dscheck'. Instead of
adding Mode options at run time for complicated update actions against local
file records, most of the Mode options can be pre-configured into update
control records.
Other than this comprehensive update action, simple actions, -DR
(-DownloadRemote), -BL (-BuildLocal), -AF(-ArchiveFile) or -CF (-CleanFile)
can be used to do step by step for a download/archive procedure. Their
command line syntaxes are similar to Action -UF(-UpdateFile) and are described
following.
3.3.2 Download Remote Files
-DR or -DownloadRemote (Alias: -DownloadRemoteFile), an action to download or
copy server files onto local working disk, or process data locally to
generate new data files. These data files that are downloaded/copied/generated
are called remote files and they are further validated/converted to local files
via Action -BL (-BuildLocal).
dsupdt [[-(DS|dataset)] dsnnn.n] -(DR|DownloadRemote) [Mode Options]
[-(CI|ControlIndex) UpdateControlIndex]
[-(LI|LocalIndex) LocalFileIndices]
[-(LF|LocalFile) LocalFileNames]
[-(RF|RemoteFile) RemoteFileNames]
[-(SF|ServerFile) ServerFileNames]
[-(DO|DownloadOrder) DownloadOrderIndices]
[-(XO|ExecOrder) ExecOrderIndex]
[-(DC|DownloadCommand) DownloadCommand]
[-(PR|ProcessRemote) AdditionalRemoteFilePrecess] # user defined
[-(ED|EndDate) NextDataEndDate]
[-(EH|EndHour) NextDataEndHour]
[-(GP|GenericPattern) GenericPatterns]
[-(WD|WorkDir) WorkingDirectory]
[-(MR|MissRemote) AllowMissRemoteFile]
[-(FQ|Frequency) UpdateFrequency]
[-(CD|CurrentDate) CurrentDate] # provide if different than current
[-(CH|CurrentHour) CurrentHour] # provide if different than current
[-(VS|ValidSize) MinSizeForValidFile]
[-(PL|ProcessLimit) MaxNumberOfChildProcesses]
[-(HO|HourOffset) TimeZoneHourOffset]
[-(QS|QsubOptions) PBSBatchOptions]
[-(BP|BatchProcess) [BatchProcessHosts]]
[-(CC|CarbonCopy) Cc'dEmailAddresses]
[-(DB|Debug) DebugModeInfo]
Mode option that can be specified for downloading file Action:
-(AW|AnyWhere) - works with Info option -BP (-BatchProcess) to allow
the recorded "dsupdt' command be started anywhere.
-(BG|BackGround) - background process to turn off screen display for both
standard outputs and errors
-(CN|CheckNewer) - for server file is locally, checks if the file is changed
on Server; downloads it again if changed.
-(CP|CurrentPeriod) - allows action of the end date/hour beyond the current
date/hour if the current date/hour lands in the current
update period
-(EE-ErrorEmail) - sends email only whne error happens during retrieving
remote files
-(FU|ForceUpdate) - if present, force download at lease for one end data/time,
although the update is not due yet;
-(GZ|GMTZone) - uses GMT dates/times as controlling times
-(HU|HourlyUpdate) - forces update of time to hours after successful remote
file download
-(IE|IgnoreError) - works with Mode option -MU (-MultipleUpdate) to skip
the errors for download remote files and continue
download the later remote files
-(KS|KeepServer) - keep server file on local disk by copying it to remove
file instead of moving
-(LO|LogOn) - turn detail logging on if option -PL is present
-(MO|MissedOnly) - download remote file only if it is not archived yet
-(MU|MultipleUpdate) - allows multiple downloads/copies if multiple data update
periods are available; it defaults to download/copy
a single remote file if this Mode option is not present
-(NE|NoEmail) - does not send email to the specialist after download
-(NY|NoLeapYear) - skips February 29 for leap years
-(QE|QuitError) - quits downloading remote files of a dataset when an
error happens, instead of continuing for other
remote files
-(RD|RetryDownload) - retry download the remote file if it is local already
-(SE|SummaryEmail) - send a summary email to the specialist after update
without detail logging information
-(UB|UseBeginTime) - when present, use the beginning time of update period
for replace temporal pattern of end time in file names
and download commands
If a remote file is on the local disk already, the download action for this
remote file is skipped; the existing remote file must removed manually or Mode
option -RD (-RetryDownload) is present if download/copy is needed again.
A server file is the original data file on remote server. It is specified only
when it is named different from the remote file name.
3.3.3 Build Local Files
-BL or -BuildLocal (Alias: -BuildLocalFile), an action to validate/convert
remote files and build up local files.
dsupdt [[-(DS|dataset)] dsnnn.n] -(BL|BuildLocal) [Mode Options]
[-(CI|ControlIndex) UpdateControlIndex]
[-(LI|LocalIndex) LocalFileIndices]
[-(LF|LocalFile) LocalFileNames]
[-(XO|ExecOrder) ExecOrderIndex]
[-(RF|RemoteFile) RemoteFileNames]
[-(BC|BuildCommand) CommandBuildLocalFile] # user defined
[-(ED|EndDate) NextDataEndDate]
[-(EH|EndHour) NextDataEndHour]
[-(GP|GenericPattern) GenericPatterns]
[-(WD|WorkDir) WorkingDirectory]
[-(FQ|Frequency) UpdateFrequency]
[-(CD|CurrentDate) CurrentDate] # provide if different than current
[-(CH|CurrentHour) CurrentHour] # provide if different than current
[-(VS|ValidSize) MinSizeForValidFile]
[-(PL|ProcessLimit) MaxNumberOfChildProcesses]
[-(QS|QsubOptions) PBSBatchOptions]
[-(BP|BatchProcess) [BatchProcessHosts]]
[-(CC|CarbonCopy) Cc'dEmailAddresses]
[-(DB|Debug) DebugModeInfo]
Mode option that can be specified for building local file Action:
-(AW|AnyWhere) - works with Info option -BP (-BatchProcess) to allow
the recorded "dsupdt' command be started anywhere.
-(BG|BackGround) - background process to turn off screen display for both
standard outputs and errors
-(CP|CurrentPeriod) - allows action of the end date/hour beyond the current
date/hour if the current date/hour lands in the current
update period
-(EE-ErrorEmail) - sends email only when error happens during building
local files
-(FU|ForceUpdate) - if present, force build at lease for one end data/time,
although the update is not due yet;
-(GZ|GMTZone) - uses GMT dates/times as controlling times
-(HU|HourlyUpdate) - forces update of time to hours after successful action
of building local file
-(IE|IgnoreError) - works with Mode option -MU (-MultipleUpdate) to skip
the errors for the action and continue build later
local files
-(KR|KeepRemote) - keep remote file on local disk by copying it to local
file instead of moving
-(LO|LogOn) - turn detail logging on if option -PL is present
-(MO|MissedOnly) - build local file only if it is not archived yet
-(MU|MultipleUpdate) - allows building multiple local files if multiple data
update periods are available; it defaults to build
a single local file if this Mode option is not present
-(NE|NoEmail) - does not send email to the specialist after build
-(NY|NoLeapYear) - skips February 29 for leap years
-(QE|QuitError) - quits building local files of a dataset when an
error happens, instead of continuing for other
local files
-(UB|UseBeginTime) - when present, use the beginning time of update period
for replace temporal pattern of end time in file names
and download commands
The additional routines of data validation and conversion for the remote files
are called by this action if the routines are provided. Nothing is done by
this action if the local files are simply the same as the remote files.
Utilities of compress/uncompress and tar/untar are used to convert remote
files to local files as one to one, multiple to one, or one to multiple.
Local files are the files in their final states ready to be archived.
If a local file is on the local disk already, the build local file action for
this local file is skipped; the existing local file must removed manually if
rebuild is needed.
3.3.4 Process Both Files
-PB or -ProcessBoth, a comprehensive action to download remote files and
validate/convert them and build up local files.
dsupdt [[-(DS|dataset)] dsnnn.n] -(PB|ProcessBoth) [Mode Options]
[-(CI|ControlIndex) UpdateControlIndex]
[-(LI|LocalIndex) LocalFileIndices]
[-(LF|LocalFile) LocalFileName]
[-(XO|ExecOrder) ExecOrderIndex]
[-(RF|RemoteFile) RemoteFileNames]
[-(SF|ServerFile) ServerFileNames]
[-(DO|DownloadOrder) DownloadOrderIndices]
[-(DC|DownloadCommand) DownloadCommand]
[-(PR|ProcessRemote) AdditionalRemoteFilePrecess] # user defined
[-(BC|BuildCommand) CommandBuildLocalFile] # user defined
[-(ED|EndDate) NextDataEndDate]
[-(EH|EndHour) NextDataEndHour]
[-(GP|GenericPattern) GenericPatterns]
[-(WD|WorkDir) WorkingDirectory]
[-(FQ|Frequency) UpdateFrequency]
[-(MR|MissRemote) AllowMissRemoteFile]
[-(CD|CurrentDate) CurrentDate] # provide if different than current
[-(CH|CurrentHour) CurrentHour] # provide if different than current
[-(VS|ValidSize) MinSizeForValidFile]
[-(PL|ProcessLimit) MaxNumberOfChildProcesses]
[-(QS|QsubOptions) PBSBatchOptions]
[-(BP|BatchProcess) [BatchProcessHosts]]
[-(HO|HourOffset) TimeZoneHourOffset]
[-(CC|CarbonCopy) Cc'dEmailAddresses]
[-(DB|Debug) DebugModeInfo]
Mode option that can be specified for downloading file Action:
-(AW|AnyWhere) - works with Info option -BP (-BatchProcess) to allow
the recorded "dsupdt' command be started anywhere.
-(BG|BackGround) - background process to turn off screen display for both
standard outputs and errors
-(CN|CheckNewer) - for server file is locally, checks if the file is changed
on Server; downloads it again if changed.
-(CP|CurrentPeriod) - allows action of the end date/hour beyond the current
date/hour if the current date/hour lands in the current
update period
-(EE-ErrorEmail) - sends email only when error happens during retrieving
remote files and building local files
-(FU|ForceUpdate) - if present, force process at lease for one end data/time,
although the update is not due yet;
-(GZ|GMTZone) - uses GMT dates/times as controlling times
-(HU|HourlyUpdate) - forces update of time to hours after successful action
-(IE|IgnoreError) - works with Mode option -MU (-MultipleUpdate) to skip
the errors for the action and continue download/build
the later remote/local files
-(KR|KeepRemote) - keep remote file on local disk by copying it to local
file instead of moving
-(KS|KeepServer) - keep server file on local disk by copying it to remove
file instead of moving
-(MO|MissedOnly) - process data file only if it is not archived yet
-(LO|LogOn) - turn detail logging on if option -PL is present
-(MU|MultipleUpdate) - allows multiple download/build if multiple data update
periods are available
-(NE|NoEmail) - does not send email to the specialist after action
-(NY|NoLeapYear) - skips February 29 for leap years
-(QE|QuitError) - quits processing updates of a dataset when an
error happens, instead of continuing for other
remote/local files
-(RD|RetryDownload) - retry download the remote file if it is local already
-(SE|SummaryEmail) - send a summary email to the specialist after action
without detail logging information
-(UB|UseBeginTime) - when present, use the beginning time of update period