rda-python-dscheck 2.0.6__py3-none-any.whl → 2.0.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rda_python_dscheck/dscheck.usg +507 -411
- {rda_python_dscheck-2.0.6.dist-info → rda_python_dscheck-2.0.7.dist-info}/METADATA +1 -1
- {rda_python_dscheck-2.0.6.dist-info → rda_python_dscheck-2.0.7.dist-info}/RECORD +7 -7
- {rda_python_dscheck-2.0.6.dist-info → rda_python_dscheck-2.0.7.dist-info}/WHEEL +0 -0
- {rda_python_dscheck-2.0.6.dist-info → rda_python_dscheck-2.0.7.dist-info}/entry_points.txt +0 -0
- {rda_python_dscheck-2.0.6.dist-info → rda_python_dscheck-2.0.7.dist-info}/licenses/LICENSE +0 -0
- {rda_python_dscheck-2.0.6.dist-info → rda_python_dscheck-2.0.7.dist-info}/top_level.txt +0 -0
rda_python_dscheck/dscheck.usg
CHANGED
|
@@ -1,103 +1,157 @@
|
|
|
1
1
|
|
|
2
2
|
1 INTRODUCTION
|
|
3
3
|
|
|
4
|
-
'dscheck' is
|
|
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
|
-
|
|
4
|
+
'dscheck' is the command-line interface to the centralized batch-processing
|
|
5
|
+
system for the GDEX Research Data Archive Management System (GDEXMS). It lets
|
|
6
|
+
DECS specialists schedule, monitor, control, and clean up deferred (delayed)
|
|
7
|
+
executions of utility programs such as 'dsarch', 'dsupdt', and 'dsrqst', as
|
|
8
|
+
well as any specialist-defined command.
|
|
9
|
+
|
|
10
|
+
The mental model has three layers:
|
|
11
|
+
|
|
12
|
+
1. A check record - a row in GDEXDB that captures one deferred command:
|
|
13
|
+
its name, arguments, owner, working directory, target
|
|
14
|
+
host, retry policy, and current status.
|
|
15
|
+
2. A daemon control - a row in GDEXDB that tells the centralized 'dscheck'
|
|
16
|
+
daemon how many concurrent processes of a given
|
|
17
|
+
command a given specialist may run on a given host,
|
|
18
|
+
and at what host priority.
|
|
19
|
+
3. The dscheck daemon - a long-running process that wakes on a fixed
|
|
20
|
+
interval, adds due 'dsupdt'/'dsrqst' check records,
|
|
21
|
+
and starts (or restarts) commands from check
|
|
22
|
+
records on hosts chosen according to daemon
|
|
23
|
+
control configuration.
|
|
24
|
+
|
|
25
|
+
Typical lifecycle of a deferred command:
|
|
26
|
+
|
|
27
|
+
added ---> pending ---> running ---> finished (purged to history)
|
|
28
|
+
\ \
|
|
29
|
+
\ +---> failed (E) [purged]
|
|
30
|
+
\ \
|
|
31
|
+
+--> retried (if reprocessing supported, e.g. dsarch)
|
|
32
|
+
|
|
33
|
+
A check record is locked while its command runs so the same command is never
|
|
34
|
+
started twice. When the command finishes successfully, or fails terminally,
|
|
35
|
+
the check record is moved to check history. History records can be reviewed
|
|
36
|
+
with the utility 'viewcheckusage'.
|
|
37
|
+
|
|
38
|
+
Failure handling depends on the calling utility. 'dsarch' supports
|
|
39
|
+
check-reprocessing: failed checks remain in GDEXDB until the command
|
|
40
|
+
succeeds or its maximum retry count is reached. 'dsrqst' and 'dsupdt' have
|
|
41
|
+
their own recovery paths and do not rely on dscheck retries; for them, an
|
|
42
|
+
errored check is purged with status 'E'.
|
|
43
|
+
|
|
44
|
+
A check is owned exclusively by the specialist who submitted it. Other
|
|
45
|
+
specialists cannot accidentally process or delete it.
|
|
46
|
+
|
|
47
|
+
What 'dscheck' can do:
|
|
48
|
+
|
|
49
|
+
- Configure daemon controls per (specialist, command, host) so that the
|
|
50
|
+
daemon knows where, how many at a time, and in what host order to run
|
|
51
|
+
commands. Without daemon controls, recorded commands are not started
|
|
52
|
+
automatically.
|
|
53
|
+
- Add a check record to schedule a deferred run of any specialist-defined
|
|
54
|
+
command.
|
|
55
|
+
- Inspect daemon controls and check records currently in GDEXDB.
|
|
56
|
+
- Email the current status of one or more checks (including any error
|
|
57
|
+
messages) to a specialist.
|
|
58
|
+
- Remove check records that are no longer needed.
|
|
59
|
+
- Unlock a check whose lock was left behind after an abnormal termination.
|
|
60
|
+
- Interrupt a running check and recursively kill all of its child
|
|
61
|
+
processes.
|
|
62
|
+
- Add due 'dsupdt' and 'dsrqst' work to dscheck records.
|
|
63
|
+
- Process checks (start them on the configured hosts) in daemon mode or
|
|
64
|
+
on demand.
|
|
65
|
+
- Verify daemon-host connectivity for a specialist.
|
|
66
|
+
|
|
67
|
+
The remainder of this document is organized as follows. Section 2 covers
|
|
68
|
+
general usage and conventions. Section 3 describes Action options grouped
|
|
69
|
+
by what they manipulate (daemon controls, check records, check processing,
|
|
70
|
+
host connectivity, batch options). Section 4 lists Mode options that modify
|
|
71
|
+
how an action behaves. Section 5 lists Information options that pass values
|
|
72
|
+
into an action.
|
|
52
73
|
|
|
53
74
|
2 GENERAL DSCHECK USAGE
|
|
54
75
|
|
|
55
76
|
dscheck [Action Option] [Mode Options] [Info Options]
|
|
56
|
-
|
|
77
|
+
or
|
|
57
78
|
dscheck [-(IF|InputFile)] InputFileNames
|
|
58
79
|
|
|
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
|
-
|
|
80
|
+
Notation:
|
|
81
|
+
[] - the enclosed element is optional.
|
|
82
|
+
(A|B) - either A or B may be used (a short form and a long form).
|
|
83
|
+
-OPT - an option name. Names are case-insensitive; values are not.
|
|
84
|
+
|
|
85
|
+
Every dscheck invocation has at most one Action option, which selects the
|
|
86
|
+
task to perform. Mode options change how the chosen action behaves. Info
|
|
87
|
+
options carry the data the action needs (indices, names, hostnames, dates,
|
|
88
|
+
etc.). Each action documents which Info options are required and which are
|
|
89
|
+
optional.
|
|
90
|
+
|
|
91
|
+
Many options have an alias for convenience; for example, -UnLock is an
|
|
92
|
+
alias for the Mode option -UL (-UnLockCheck). Both short and long forms
|
|
93
|
+
are accepted, and aliases are noted with each option.
|
|
94
|
+
|
|
95
|
+
2.1 Quick Start
|
|
96
|
+
|
|
97
|
+
Show the full document, paged through 'more':
|
|
98
|
+
dscheck
|
|
99
|
+
|
|
100
|
+
Show the description of a single option:
|
|
101
|
+
dscheck -h -AC
|
|
102
|
+
dscheck -AC -h
|
|
103
|
+
|
|
104
|
+
List your own daemon control records:
|
|
105
|
+
dscheck -GD
|
|
106
|
+
|
|
107
|
+
List your own active check records:
|
|
108
|
+
dscheck -GC
|
|
109
|
+
|
|
110
|
+
Add a deferred run of a script on PBS:
|
|
111
|
+
dscheck -AC -CM myscript.sh -HN PBS
|
|
112
|
+
|
|
113
|
+
Email yourself the status of all your active checks:
|
|
114
|
+
dscheck -EC
|
|
115
|
+
|
|
116
|
+
Start the dscheck daemon (typical for the operator):
|
|
117
|
+
dscheck -PC -DM start
|
|
118
|
+
|
|
119
|
+
2.2 Filters and Special Characters in Queries
|
|
120
|
+
|
|
121
|
+
For Get-style actions (-GD, -GC), Info options are interpreted as query
|
|
122
|
+
filters. Four characters refine those filters; quote or escape them on the
|
|
123
|
+
command line so the shell does not consume them:
|
|
124
|
+
|
|
125
|
+
'!' - negate the match. Must appear immediately after the option name.
|
|
126
|
+
'<' - less-than comparison against the next value.
|
|
127
|
+
'>' - greater-than comparison against the next value.
|
|
128
|
+
'<>' - range between the next two values (inclusive).
|
|
129
|
+
|
|
130
|
+
The combination "'!' '<' value" expresses 'greater than or equal to value'.
|
|
131
|
+
|
|
132
|
+
2.3 Input Files
|
|
133
|
+
|
|
134
|
+
Every option except -IF (-InputFile) may be supplied either on the command
|
|
135
|
+
line or in an input file. -IF is itself only valid on the command line.
|
|
136
|
+
A single dscheck invocation may combine command-line options with one or
|
|
137
|
+
more input files. If the only options are inside a single input file, the
|
|
138
|
+
-IF prefix may be omitted:
|
|
139
|
+
|
|
140
|
+
dscheck mycheck.in
|
|
141
|
+
|
|
142
|
+
See the description of -IF in Section 5.2 for the input-file format
|
|
143
|
+
(comments, action/mode markers, single-value assignments, and tabular
|
|
144
|
+
multi-value assignments, including delimiter overrides).
|
|
145
|
+
|
|
146
|
+
2.4 Getting Help
|
|
147
|
+
|
|
148
|
+
dscheck # full document, displayed via 'more'
|
|
149
|
+
dscheck -(h|help) # full document
|
|
150
|
+
dscheck [Option] -(h|help) # description of [Option]
|
|
151
|
+
dscheck -(h|help) [Option] # same as above
|
|
152
|
+
|
|
153
|
+
A printable copy of this document is the file dscheck.usg installed under
|
|
154
|
+
the python package rda_python_dscheck.
|
|
101
155
|
|
|
102
156
|
#The online HTML version of this document is available at
|
|
103
157
|
#https://gdex-docs-dscheck.readthedocs.io
|
|
@@ -105,46 +159,51 @@ rda_python_dscheck.
|
|
|
105
159
|
|
|
106
160
|
3 ACTION OPTIONS
|
|
107
161
|
|
|
108
|
-
Action
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
162
|
+
An Action option selects what 'dscheck' does. Action options take no
|
|
163
|
+
values, and exactly one Action option may be supplied per invocation.
|
|
164
|
+
|
|
165
|
+
Action options are grouped into four categories:
|
|
166
|
+
|
|
167
|
+
Daemon Control Actions - create, modify, view, and delete daemon
|
|
168
|
+
control records that govern how, where, and
|
|
169
|
+
how concurrently commands run.
|
|
170
|
+
Check Actions - add, view, delete, and unlock individual
|
|
171
|
+
check records.
|
|
172
|
+
Check Process Actions - start commands from check records, interrupt
|
|
173
|
+
running commands, or email check status.
|
|
174
|
+
Daemon Host Connectivity - verify that daemon hosts are reachable for
|
|
175
|
+
a specialist.
|
|
176
|
+
|
|
177
|
+
A fifth, narrower action -SO (-SetOptions) builds batch options dynamically
|
|
178
|
+
and is documented in Section 3.5.
|
|
125
179
|
|
|
126
180
|
3.1 Daemon Control Actions
|
|
127
181
|
|
|
128
|
-
|
|
129
|
-
command a specialist may run on a specified host, and the priority order in
|
|
130
|
-
which hosts are selected. The centralized daemon reads these records
|
|
131
|
-
periodically, so specialists can update daemon control values at any time
|
|
132
|
-
without restarting the daemon.
|
|
182
|
+
A daemon control record answers three questions for the dscheck daemon:
|
|
133
183
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
184
|
+
- Whose checks? (specialist login)
|
|
185
|
+
- For which command? (utility program name, or 'ALL')
|
|
186
|
+
- On which host, at what concurrency, at what priority?
|
|
187
|
+
(hostname, ProcessLimit, Priority)
|
|
188
|
+
|
|
189
|
+
Daemon controls are read by the daemon on every cycle, so changes take
|
|
190
|
+
effect without restarting the daemon. A specialist with no daemon control
|
|
191
|
+
records will have no checks started automatically.
|
|
192
|
+
|
|
193
|
+
Available actions:
|
|
194
|
+
|
|
195
|
+
Set Daemon Control - create or modify daemon control records.
|
|
196
|
+
Get Daemon Control - retrieve existing daemon control records.
|
|
197
|
+
Delete Daemon Control - remove daemon control records by index.
|
|
139
198
|
|
|
140
199
|
3.1.1 Set Daemon Control
|
|
141
|
-
-SD or -SetDaemon, creates or modifies daemon control records in GDEXDB
|
|
142
|
-
given specialist login names, commands, and hostnames. One or
|
|
143
|
-
can be set per
|
|
200
|
+
-SD or -SetDaemon, creates or modifies daemon control records in GDEXDB
|
|
201
|
+
for given specialist login names, commands, and hostnames. One or many
|
|
202
|
+
records can be set per invocation.
|
|
144
203
|
|
|
145
204
|
dscheck -(SD|SetDaemon) [Mode Option]
|
|
146
205
|
[-(DI|DaemonIndex) controlIndices]
|
|
147
|
-
[-(CM|Command) UtilityProgramNames] # ALL for any command
|
|
206
|
+
[-(CM|Command) UtilityProgramNames] # ALL for any command name
|
|
148
207
|
[-(SN|Specialist) DECSSpecialists]
|
|
149
208
|
[-(HN|HostName) HostMachineNames]
|
|
150
209
|
[-(MH|MatchHost) FlagToMatchHostname]
|
|
@@ -152,33 +211,33 @@ categories:
|
|
|
152
211
|
[-(PO|Priority) HostListOrder]
|
|
153
212
|
|
|
154
213
|
Available mode option:
|
|
155
|
-
-(ND|NewDaemon) -
|
|
214
|
+
-(ND|NewDaemon) - add a new daemon control record (required when the
|
|
215
|
+
daemon index is 0).
|
|
156
216
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
daemon control record.
|
|
217
|
+
An existing record matching the (specialist, command, hostname) triple
|
|
218
|
+
is updated in place. To create a new record, supply daemon index 0 and
|
|
219
|
+
the -ND mode option; this guards against creating records by accident.
|
|
220
|
+
The (specialist, command, hostname) triple must be unique.
|
|
162
221
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
222
|
+
Special hostnames and commands:
|
|
223
|
+
HN = PBS - submit the command to the PBS batch system.
|
|
224
|
+
CM = ALL - apply to any command not otherwise configured for this
|
|
225
|
+
specialist.
|
|
166
226
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
227
|
+
Example - configure schuster on PBS for any command, with up to 4
|
|
228
|
+
concurrent checks at priority 1 (lower number = higher priority), driven
|
|
229
|
+
from input file daemon.ctl:
|
|
170
230
|
|
|
171
|
-
|
|
231
|
+
dscheck -SD -ND -IF daemon.ctl
|
|
172
232
|
|
|
173
|
-
<<Content of input file daemon.ctl>>
|
|
174
|
-
DaemonIndex<:>Specialist<:>Command<:>Hostname<:>ProcessLimit<:>Priority<:>
|
|
175
|
-
0<:>schuster<:>ALL<:>PBS<:>4<:>1<:>
|
|
233
|
+
<<Content of input file daemon.ctl>>
|
|
234
|
+
DaemonIndex<:>Specialist<:>Command<:>Hostname<:>ProcessLimit<:>Priority<:>
|
|
235
|
+
0<:>schuster<:>ALL<:>PBS<:>4<:>1<:>
|
|
176
236
|
|
|
177
237
|
|
|
178
238
|
3.1.2 Get Daemon Control
|
|
179
|
-
-GD or -GetDaemon, retrieves daemon control records
|
|
180
|
-
|
|
181
|
-
by the specialist running 'dscheck' are returned.
|
|
239
|
+
-GD or -GetDaemon, retrieves daemon control records. With no Info-option
|
|
240
|
+
filters, only records owned by the current specialist are returned.
|
|
182
241
|
|
|
183
242
|
dscheck -(GD|GetDaemon) [Mode Option]
|
|
184
243
|
[-(FN|FieldNames) FieldNameString]
|
|
@@ -192,57 +251,61 @@ DaemonIndex<:>Specialist<:>Command<:>Hostname<:>ProcessLimit<:>Priority<:>
|
|
|
192
251
|
[-(DB|Debug) DebugModeInfo]
|
|
193
252
|
|
|
194
253
|
Available mode option:
|
|
195
|
-
-(FO|FormatOutput) -
|
|
254
|
+
-(FO|FormatOutput) - pad each column to a uniform width for readability.
|
|
196
255
|
|
|
197
|
-
|
|
198
|
-
|
|
256
|
+
-FN (-FieldNames) selects which daemon-control fields to retrieve as a
|
|
257
|
+
string of single-letter codes. When -FN is omitted, all fields are
|
|
258
|
+
returned.
|
|
199
259
|
|
|
200
|
-
|
|
260
|
+
Field codes for daemon control records:
|
|
201
261
|
|
|
202
|
-
|
|
262
|
+
Code Info Option Description
|
|
203
263
|
I -(DI|DaemonIndex) daemon control index
|
|
204
|
-
C -(CM|Command) command
|
|
264
|
+
C -(CM|Command) command name of a utility program
|
|
205
265
|
H -(HN|Hostname) computer hostname
|
|
206
|
-
M -(MH|MatchHost)
|
|
207
|
-
S -(SN|Specialist) DECS specialist
|
|
208
|
-
P -(PL|ProcessLimit)
|
|
209
|
-
O -(PO|Priority) host priority
|
|
266
|
+
M -(MH|MatchHost) flag controlling hostname match
|
|
267
|
+
S -(SN|Specialist) DECS specialist this control applies to
|
|
268
|
+
P -(PL|ProcessLimit) max concurrent processes for this control
|
|
269
|
+
O -(PO|Priority) host priority within this control
|
|
210
270
|
|
|
211
|
-
|
|
212
|
-
|
|
271
|
+
-SN, -CM, and -HN accept the SQL-style '%' wildcard. Pass -SN ALL to
|
|
272
|
+
retrieve every specialist's records (or a specific other specialist by
|
|
273
|
+
login name).
|
|
213
274
|
|
|
214
|
-
|
|
215
|
-
-SN (-Specialist). To view all control records, use -SN ALL.
|
|
275
|
+
Example - retrieve all daemon control records owned by you:
|
|
216
276
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
dscheck GD
|
|
277
|
+
dscheck -GD
|
|
220
278
|
|
|
221
279
|
|
|
222
280
|
3.1.3 Delete Daemon Control
|
|
223
281
|
-DL or -Delete (Alias: -RM, -Remove), removes one or more daemon control
|
|
224
|
-
records from GDEXDB
|
|
282
|
+
records from GDEXDB by daemon control index.
|
|
225
283
|
|
|
226
284
|
dscheck -(DL|Delete)
|
|
227
285
|
-(DI|DaemonIndex) DaemonControlIndices
|
|
228
286
|
[-(DB|Debug) DebugModeInfo]
|
|
229
287
|
|
|
230
|
-
Deleting a daemon control record removes the
|
|
231
|
-
|
|
288
|
+
Deleting a daemon control record removes the configuration for one
|
|
289
|
+
(specialist, command, hostname) combination. Existing check records are
|
|
290
|
+
not removed.
|
|
291
|
+
|
|
232
292
|
|
|
233
293
|
3.2 Check Actions
|
|
234
294
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
295
|
+
Check records are created automatically by the dscheck daemon for due
|
|
296
|
+
'dsupdt' and 'dsrqst' actions. Other commands - including 'dsarch' calls
|
|
297
|
+
and any specialist-defined script - are added manually with -AC.
|
|
298
|
+
|
|
299
|
+
Available actions:
|
|
300
|
+
|
|
301
|
+
Add Check - add a check record for a deferred command.
|
|
302
|
+
Get Check - retrieve check records and field values.
|
|
303
|
+
Delete Check - delete check records that should no longer run.
|
|
304
|
+
Unlock Check - clear leftover lock information after an abnormal exit.
|
|
243
305
|
|
|
244
306
|
3.2.1 Add Check
|
|
245
|
-
-AC or -AddCheck, adds a check record
|
|
307
|
+
-AC or -AddCheck, adds a check record so that a command runs later,
|
|
308
|
+
driven by the dscheck daemon (or by an explicit -PC invocation).
|
|
246
309
|
|
|
247
310
|
dscheck -(AC|AddCheck) [Mode Option]
|
|
248
311
|
-(CM|Command) CommandNames
|
|
@@ -262,48 +325,54 @@ DaemonIndex<:>Specialist<:>Command<:>Hostname<:>ProcessLimit<:>Priority<:>
|
|
|
262
325
|
[-(DB|Debug) DebugModeInfo]
|
|
263
326
|
|
|
264
327
|
Available mode option:
|
|
265
|
-
-(AW|AnyWhere) -
|
|
266
|
-
the command
|
|
328
|
+
-(AW|AnyWhere) - leave the working directory empty in the check record
|
|
329
|
+
so the command may run from any location.
|
|
330
|
+
|
|
331
|
+
Defaults:
|
|
332
|
+
Owner - the specialist running 'dscheck'.
|
|
333
|
+
Working directory - the current directory at the time of -AC.
|
|
334
|
+
Host - none specified; daemon control governs placement.
|
|
267
335
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
336
|
+
Use -PI (-ParentIndex) to make the new check wait for an existing parent
|
|
337
|
+
check to finish before it can run. Use -QS to pass options through to
|
|
338
|
+
qsub when the command will run as a PBS batch job.
|
|
271
339
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
340
|
+
Limitations:
|
|
341
|
+
- Shell redirections and pipes (>, >>, |, <) are not supported in the
|
|
342
|
+
deferred command line. Wrap such commands in a shell script and add
|
|
343
|
+
the script.
|
|
275
344
|
|
|
276
|
-
|
|
277
|
-
Wrap complex commands in a simple shell script instead.
|
|
345
|
+
Examples:
|
|
278
346
|
|
|
279
|
-
|
|
280
|
-
|
|
347
|
+
List files containing 'test' in the current directory, capture stdout to
|
|
348
|
+
a log, and also display it on screen:
|
|
281
349
|
|
|
282
|
-
|
|
350
|
+
dscheck -AC -CM test1.sh -HN PBS
|
|
283
351
|
|
|
284
|
-
<<Content of shell script test1.sh>>
|
|
285
|
-
#!/bin/sh
|
|
286
|
-
(ls -l | grep test) | tee test1.out
|
|
352
|
+
<<Content of shell script test1.sh>>
|
|
353
|
+
#!/bin/sh
|
|
354
|
+
(ls -l | grep test) | tee test1.out
|
|
287
355
|
|
|
288
|
-
|
|
289
|
-
|
|
356
|
+
List files containing 'test', capturing stdout and stderr to separate
|
|
357
|
+
log files:
|
|
290
358
|
|
|
291
|
-
|
|
359
|
+
dscheck -AC -CM test2.sh -HN PBS
|
|
292
360
|
|
|
293
|
-
<<Content of shell script test2.sh>>
|
|
294
|
-
#!/bin/sh
|
|
295
|
-
(ls -l | grep test) 1> test2.out 2>test2.err
|
|
361
|
+
<<Content of shell script test2.sh>>
|
|
362
|
+
#!/bin/sh
|
|
363
|
+
(ls -l | grep test) 1> test2.out 2>test2.err
|
|
296
364
|
|
|
297
|
-
|
|
365
|
+
Add the executable 'test3' for deferred execution on PBS:
|
|
298
366
|
|
|
299
|
-
|
|
367
|
+
dscheck -AC -CM test3 -HN PBS
|
|
300
368
|
|
|
301
|
-
The command 'test3' must be executable
|
|
302
|
-
PBS
|
|
369
|
+
The command 'test3' must be executable from the working directory on
|
|
370
|
+
the PBS machine.
|
|
303
371
|
|
|
304
372
|
|
|
305
373
|
3.2.2 Get Check
|
|
306
|
-
-GC or -GetCheck, retrieves check
|
|
374
|
+
-GC or -GetCheck, retrieves check records from GDEXDB. With no filter,
|
|
375
|
+
returns active check records owned by the current specialist.
|
|
307
376
|
|
|
308
377
|
dscheck -(GC|GetCheck) [Mode Options]
|
|
309
378
|
[-(FN|FieldNames) FieldNameString]
|
|
@@ -322,91 +391,93 @@ DaemonIndex<:>Specialist<:>Command<:>Hostname<:>ProcessLimit<:>Priority<:>
|
|
|
322
391
|
[-(DB|Debug) DebugModeInfo]
|
|
323
392
|
|
|
324
393
|
Available mode options:
|
|
325
|
-
-(CS|CheckStatus) -
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
-(FO|FormatOutput) - formats each column to a uniform fixed width
|
|
394
|
+
-(CS|CheckStatus) - include detailed status: progress percentage for
|
|
395
|
+
running commands and error messages for failed ones.
|
|
396
|
+
-(FO|FormatOutput) - pad each column to a uniform width for readability.
|
|
329
397
|
|
|
330
|
-
|
|
331
|
-
|
|
398
|
+
-FN (-FieldNames) selects which fields to retrieve as a string of
|
|
399
|
+
single-letter codes. When -FN is omitted, the default field set is
|
|
400
|
+
"COVTUPFJDNW".
|
|
332
401
|
|
|
333
|
-
|
|
402
|
+
Field codes for check records:
|
|
334
403
|
|
|
335
|
-
|
|
404
|
+
Code Info Option Description
|
|
336
405
|
C -(CI|CheckIndex) check index
|
|
337
406
|
O -(CM|Command) original command name
|
|
338
|
-
V -(AV|ArgumentVector) argument
|
|
339
|
-
T -(DS|Dataset) dataset ID
|
|
340
|
-
A -(AN|ActionName) action name for
|
|
341
|
-
U -(ST|Status) check status for
|
|
342
|
-
B -(DF|DownFlags)
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
407
|
+
V -(AV|ArgumentVector) argument string after the command (<= 100 chars)
|
|
408
|
+
T -(DS|Dataset) dataset ID the command runs against
|
|
409
|
+
A -(AN|ActionName) action name for the command
|
|
410
|
+
U -(ST|Status) check status for the recorded command
|
|
411
|
+
B -(DF|DownFlags) storage down flags: D-DRDATA, G-GLADE,
|
|
412
|
+
O-ObjectStore
|
|
413
|
+
P -(PQ|PBSQueue) PBS batch queue name (e.g. gdex, htc)
|
|
414
|
+
R -(PI|ParentIndex) parent check index this check waits on
|
|
415
|
+
F -(FC|FileCount) number of files to be processed
|
|
416
|
+
J -(DC|DoneCount) number of files already processed
|
|
417
|
+
K -(TC|TryCount) number of times the command has run
|
|
418
|
+
L -(MC|MaxCount) maximum number of tries allowed
|
|
419
|
+
Z -(SZ|DataSize) total bytes processed for the command
|
|
420
|
+
D -(CD|CheckDate) date the command was first recorded
|
|
421
|
+
Y -(CT|CheckTime) time the command was first recorded
|
|
422
|
+
H -(HN|HostName) host(s) the command can or cannot run on
|
|
423
|
+
N -(SN|Specialist) specialist who owns the check
|
|
424
|
+
W -(WD|WorkDir) working directory for the command
|
|
425
|
+
M -(MO|Modules) modules to load in the batch job script
|
|
426
|
+
I -(EV|Environments) environment variables for the batch job
|
|
427
|
+
Q -(QS|QsubOptions) additional qsub options
|
|
428
|
+
X -(AX|ArgumentExtra) additional argument string beyond 100 chars
|
|
429
|
+
E -(ER|ErrorMessage) error message from a failed command
|
|
430
|
+
|
|
431
|
+
Use -CI (-CheckIndex) to fetch specific records. To inspect another
|
|
432
|
+
specialist's records, supply -SN with the appropriate login name.
|
|
363
433
|
|
|
364
434
|
|
|
365
435
|
3.2.3 Delete Check
|
|
366
|
-
-DL or -Delete, removes
|
|
367
|
-
the specified check indices.
|
|
436
|
+
-DL or -Delete, removes check records from GDEXDB by check index.
|
|
368
437
|
|
|
369
438
|
dscheck -(DL|Delete)
|
|
370
439
|
-(CI|CheckIndex) CheckIndices
|
|
371
440
|
[-(DB|Debug) DebugModeInfo]
|
|
372
441
|
|
|
373
|
-
A deleted check
|
|
374
|
-
|
|
442
|
+
A deleted check is moved to check history and remains visible via the
|
|
443
|
+
utility program 'viewcheckusage'.
|
|
375
444
|
|
|
376
445
|
|
|
377
446
|
3.2.4 Unlock Check
|
|
378
|
-
-UL or -UnLockCheck (Alias: -UnLock),
|
|
379
|
-
|
|
447
|
+
-UL or -UnLockCheck (Alias: -UnLock), clears stale lock information from
|
|
448
|
+
a check record.
|
|
380
449
|
|
|
381
|
-
When a
|
|
382
|
-
check record. If the process aborts abnormally,
|
|
383
|
-
not be cleared
|
|
384
|
-
|
|
450
|
+
When a check is being processed, the running process ID and hostname are
|
|
451
|
+
written into the check record. If the process aborts abnormally, that
|
|
452
|
+
lock may not be cleared. Unlocking a check allows it to be reprocessed
|
|
453
|
+
or purged.
|
|
385
454
|
|
|
386
455
|
dscheck -(UL|UnLockCheck)
|
|
387
456
|
-(CI|CheckIndex) CheckIndices
|
|
388
457
|
[-(DB|Debug) DebugModeInfo]
|
|
389
458
|
|
|
390
|
-
|
|
459
|
+
-CI is required.
|
|
391
460
|
|
|
392
461
|
|
|
393
462
|
3.3 Check Process Actions
|
|
394
463
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
464
|
+
The dscheck daemon starts and restarts deferred commands automatically.
|
|
465
|
+
Operators (and, in non-daemon mode, specialists) can also drive command
|
|
466
|
+
execution from the command line, interrupt running commands, and email
|
|
467
|
+
status summaries.
|
|
399
468
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
469
|
+
Available actions:
|
|
470
|
+
|
|
471
|
+
Process Check - start commands from check records (daemon or
|
|
472
|
+
non-daemon mode).
|
|
473
|
+
Interrupt Check - stop a running command and recursively kill its
|
|
474
|
+
process tree.
|
|
475
|
+
Email Check - email a specialist the current status of one or more
|
|
476
|
+
check records.
|
|
406
477
|
|
|
407
478
|
3.3.1 Process Check
|
|
408
|
-
-PC or -ProcessCheck,
|
|
409
|
-
|
|
479
|
+
-PC or -ProcessCheck, drives command execution from check records, in
|
|
480
|
+
either daemon mode or non-daemon mode.
|
|
410
481
|
|
|
411
482
|
dscheck -(PC|ProcessCheck) [Mode Options]
|
|
412
483
|
[-(CI|CheckIndex) CheckIndices]
|
|
@@ -417,31 +488,32 @@ DaemonIndex<:>Specialist<:>Command<:>Hostname<:>ProcessLimit<:>Priority<:>
|
|
|
417
488
|
[-(DB|Debug) DebugModeInfo]
|
|
418
489
|
|
|
419
490
|
Available mode options:
|
|
420
|
-
-(BG|BackGround) -
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
491
|
+
-(BG|BackGround) - run as a background process; suppress screen output.
|
|
492
|
+
-(CP|CheckPending) - identify and kill long-pending checks.
|
|
493
|
+
-(LO|LogOn) - enable detailed logging in daemon mode.
|
|
494
|
+
-(NC|NoCommand) - do not actually execute remote commands (dry run).
|
|
495
|
+
-(WU|WithdsUpdt) - in non-daemon mode, add check records for due
|
|
496
|
+
'dsupdt' actions configured in update controls.
|
|
497
|
+
-(WR|WithdsRqst) - in non-daemon mode, add check records for 'dsrqst'
|
|
498
|
+
records due to be built or purged.
|
|
499
|
+
|
|
500
|
+
Daemon mode (-DM start):
|
|
501
|
+
The daemon sleeps for -WI seconds (default 120) between cycles. Each
|
|
502
|
+
cycle, it adds due 'dsupdt' and 'dsrqst' check records, then starts
|
|
503
|
+
or restarts checks on hosts chosen by daemon control priorities.
|
|
504
|
+
-DM stop, -DM logon, and -DM logoff stop the daemon, enable detailed
|
|
505
|
+
logging, and disable detailed logging respectively.
|
|
506
|
+
|
|
507
|
+
Non-daemon mode:
|
|
508
|
+
Without -DM, dscheck processes the current set of check records once.
|
|
509
|
+
-WU and -WR must be set explicitly if you want due 'dsupdt'/'dsrqst'
|
|
510
|
+
work to be added before processing. -CI restricts processing to
|
|
511
|
+
specific check indices.
|
|
440
512
|
|
|
441
513
|
3.3.2 Interrupt Check
|
|
442
|
-
-IC or -InterruptCheck,
|
|
443
|
-
|
|
444
|
-
|
|
514
|
+
-IC or -InterruptCheck, stops a running command and recursively kills
|
|
515
|
+
its child processes. The check's lock is released as part of the
|
|
516
|
+
interrupt.
|
|
445
517
|
|
|
446
518
|
dscheck -(IC|InterruptCheck) [Mode Option]
|
|
447
519
|
-(CI|CheckIndex) CheckIndices
|
|
@@ -449,13 +521,14 @@ DaemonIndex<:>Specialist<:>Command<:>Hostname<:>ProcessLimit<:>Priority<:>
|
|
|
449
521
|
|
|
450
522
|
Available mode option:
|
|
451
523
|
-(FI|ForceInterrupt) - required to interrupt a check that is currently
|
|
452
|
-
being processed
|
|
524
|
+
being processed; without it dscheck only warns.
|
|
453
525
|
|
|
454
|
-
|
|
526
|
+
-CI is required.
|
|
455
527
|
|
|
456
528
|
3.3.3 Email Check
|
|
457
|
-
-EC or -EmailCheck,
|
|
458
|
-
|
|
529
|
+
-EC or -EmailCheck, emails a specialist a status report for their check
|
|
530
|
+
records. With no filters, the report covers all of the recipient's
|
|
531
|
+
active checks; otherwise it is restricted to the records that match.
|
|
459
532
|
|
|
460
533
|
dscheck -(EC|EmailCheck)
|
|
461
534
|
[-(CI|CheckIndex) CheckIndices]
|
|
@@ -469,10 +542,12 @@ DaemonIndex<:>Specialist<:>Command<:>Hostname<:>ProcessLimit<:>Priority<:>
|
|
|
469
542
|
[-(CC|CarbonCopy) Cc'dEmailAddresses]
|
|
470
543
|
[-(DB|Debug) DebugModeInfo]
|
|
471
544
|
|
|
472
|
-
Any error messages
|
|
545
|
+
Any error messages stored on a failed check are included in the email.
|
|
546
|
+
|
|
473
547
|
|
|
474
548
|
3.4 Daemon Host Connectivity
|
|
475
|
-
-CH or -CheckHost,
|
|
549
|
+
-CH or -CheckHost, verifies that the hosts referenced in daemon control
|
|
550
|
+
records are reachable from the current host for the given specialist.
|
|
476
551
|
|
|
477
552
|
dscheck -(CH|CheckHost)
|
|
478
553
|
[-(DI|DaemonIndex) controlIndices]
|
|
@@ -483,9 +558,12 @@ DaemonIndex<:>Specialist<:>Command<:>Hostname<:>ProcessLimit<:>Priority<:>
|
|
|
483
558
|
[-(PO|Priority) ProcessPriority]
|
|
484
559
|
[-(DB|Debug) DebugModeInfo]
|
|
485
560
|
|
|
561
|
+
|
|
486
562
|
3.5 Set Batch Options Dynamically
|
|
487
|
-
-SO or -SetOptions (Alias: -SetBatchOptions),
|
|
488
|
-
|
|
563
|
+
-SO or -SetOptions (Alias: -SetBatchOptions), evaluates batch options
|
|
564
|
+
whose values begin with '!' so that PBS options can be assembled
|
|
565
|
+
dynamically (for example, by resolving environment- or workload-derived
|
|
566
|
+
values at submission time).
|
|
489
567
|
|
|
490
568
|
dscheck -(SO|SetOptions)
|
|
491
569
|
[-(HN|HostName) HostNames]
|
|
@@ -498,204 +576,222 @@ DaemonIndex<:>Specialist<:>Command<:>Hostname<:>ProcessLimit<:>Priority<:>
|
|
|
498
576
|
|
|
499
577
|
4 MODE OPTIONS
|
|
500
578
|
|
|
501
|
-
Mode options modify the behavior of Action
|
|
502
|
-
|
|
579
|
+
Mode options modify the behavior of an Action option. They take no values.
|
|
580
|
+
Each Mode option is meaningful only with specific actions; the relevant
|
|
581
|
+
action is noted with each one below.
|
|
503
582
|
|
|
504
|
-
-AW or -AnyWhere, used with
|
|
505
|
-
directory empty
|
|
583
|
+
-AW or -AnyWhere, used with -AC (-AddCheck): leave the check's working
|
|
584
|
+
directory empty so the command may run from any location.
|
|
506
585
|
|
|
507
|
-
-BG or -BackGround (Alias: -b),
|
|
586
|
+
-BG or -BackGround (Alias: -b), run as a background process and suppress
|
|
508
587
|
all screen output and error messages.
|
|
509
588
|
|
|
510
|
-
-CP or -CheckPending,
|
|
511
|
-
|
|
589
|
+
-CP or -CheckPending, used with -PC (-ProcessCheck): identify and kill
|
|
590
|
+
checks that have been pending too long.
|
|
591
|
+
|
|
592
|
+
-CS or -CheckStatus, used with -GC (-GetCheck): include detailed status
|
|
593
|
+
for each check, including progress percentage for running commands and
|
|
594
|
+
error messages for failed ones.
|
|
512
595
|
|
|
513
|
-
-
|
|
514
|
-
|
|
515
|
-
|
|
596
|
+
-FI or -ForceInterrupt, required with -IC (-InterruptCheck) to actually
|
|
597
|
+
interrupt a check that is currently being processed; without it, dscheck
|
|
598
|
+
prints a warning instead of interrupting.
|
|
516
599
|
|
|
517
|
-
-
|
|
518
|
-
|
|
600
|
+
-FO or -FormatOutput, used with Get-style actions (-GD, -GC): pad each
|
|
601
|
+
column to a uniform width computed from the data, for readability.
|
|
519
602
|
|
|
520
|
-
-
|
|
521
|
-
|
|
603
|
+
-LO or -LogOn (Alias: -LoggingOn), used with -PC -DM start: enable
|
|
604
|
+
detailed daemon logging from startup. Detailed logging is off by default.
|
|
522
605
|
|
|
523
|
-
-
|
|
524
|
-
|
|
606
|
+
-MD or -MyDataset, allows a specialist to access check information for
|
|
607
|
+
a dataset owned by a different specialist.
|
|
525
608
|
|
|
526
|
-
-
|
|
527
|
-
|
|
609
|
+
-NC or -NoCommand (Alias: -NoRemoteCommand), used with -PC: skip the
|
|
610
|
+
actual remote command execution (dry run).
|
|
528
611
|
|
|
529
|
-
-
|
|
530
|
-
|
|
612
|
+
-ND or -NewDaemon, required with -SD (-SetDaemon) when the daemon
|
|
613
|
+
control index is 0, so that a new daemon control record is created.
|
|
614
|
+
This guard prevents creating records by accident.
|
|
531
615
|
|
|
532
|
-
-
|
|
533
|
-
|
|
534
|
-
daemon control records from being added unintentionally.
|
|
616
|
+
-NT or -NoTrim, skip stripping spaces and comments from input values
|
|
617
|
+
when reading input files; this speeds up parsing of large input files.
|
|
535
618
|
|
|
536
|
-
-
|
|
537
|
-
|
|
619
|
+
-WR or -WithdsRqst, used with -PC (-ProcessCheck) in non-daemon mode:
|
|
620
|
+
add 'dsrqst' records due to be built or purged to check records before
|
|
621
|
+
processing.
|
|
538
622
|
|
|
539
|
-
-
|
|
540
|
-
|
|
623
|
+
-WU or -WithdsUpdt, used with -PC (-ProcessCheck) in non-daemon mode:
|
|
624
|
+
add due 'dsupdt' update controls to check records before processing.
|
|
541
625
|
|
|
542
|
-
-WU or -WithdsUpdt, adds due 'dsupdt' update controls to check records, for
|
|
543
|
-
use with Action -PC (-ProcessCheck) in non-daemon mode.
|
|
544
626
|
|
|
545
627
|
5 INFORMATION OPTIONS
|
|
546
628
|
|
|
547
629
|
Info options pass data values into 'dscheck'. They come in two forms:
|
|
548
|
-
|
|
549
|
-
|
|
630
|
+
|
|
631
|
+
Single-Value Info Options - accept exactly one value.
|
|
632
|
+
Multi-Value Info Options - accept one or more values, comma-separated
|
|
633
|
+
on the command line or row-separated in an
|
|
634
|
+
input file.
|
|
550
635
|
|
|
551
636
|
5.1 Single-Value Info Options
|
|
552
637
|
|
|
553
|
-
|
|
554
|
-
|
|
638
|
+
A single-value Info option accepts exactly one value. Supplying zero or
|
|
639
|
+
multiple values is an error.
|
|
555
640
|
|
|
556
|
-
-DM or -DaemonMode,
|
|
557
|
-
|
|
558
|
-
detailed logging,
|
|
641
|
+
-DM or -DaemonMode, the daemon mode for -PC (-ProcessCheck). Valid
|
|
642
|
+
values are start, stop, logon, and logoff: start the daemon, stop the
|
|
643
|
+
daemon, enable detailed logging, or disable detailed logging.
|
|
559
644
|
|
|
560
|
-
-DV or -Divider (Alias: -Delimiter, -Separator), the column delimiter
|
|
561
|
-
multi-value
|
|
645
|
+
-DV or -Divider (Alias: -Delimiter, -Separator), the column delimiter
|
|
646
|
+
used by multi-value tabular assignments in input files. Defaults to '<:>'.
|
|
562
647
|
|
|
563
|
-
-ES or -EqualSign, the token
|
|
648
|
+
-ES or -EqualSign, the token that assigns a value to an option in input
|
|
564
649
|
files. Defaults to '<=>'.
|
|
565
650
|
|
|
566
|
-
-FN or -FieldNames, a string of single-letter field codes selecting
|
|
567
|
-
fields to retrieve
|
|
651
|
+
-FN or -FieldNames, a string of single-letter field codes selecting
|
|
652
|
+
which fields to retrieve. Used with -GC (-GetCheck) and -GD (-GetDaemon);
|
|
653
|
+
see Sections 3.1.2 and 3.2.2 for the code tables.
|
|
568
654
|
|
|
569
|
-
-LH or -LocalHost, the local hostname on which to process checks for
|
|
570
|
-
-PC (-ProcessCheck). Defaults to the current hostname.
|
|
571
|
-
batch jobs.
|
|
655
|
+
-LH or -LocalHost, the local hostname on which to process checks for
|
|
656
|
+
-PC (-ProcessCheck). Defaults to the current hostname. Pass PBS to
|
|
657
|
+
process batch jobs.
|
|
572
658
|
|
|
573
|
-
-MT or -MaxrunTime, the maximum run time
|
|
574
|
-
(unlimited).
|
|
659
|
+
-MT or -MaxrunTime, the maximum daemon run time. Defaults to 0
|
|
660
|
+
(unlimited). Examples: 5000 means 5000 seconds; 1D means one day
|
|
575
661
|
(86400 seconds).
|
|
576
662
|
|
|
577
|
-
-OF or -OutputFile,
|
|
663
|
+
-OF or -OutputFile, redirect output to a file instead of the screen.
|
|
578
664
|
|
|
579
|
-
-ON or -OrderNames, a string of single-letter field codes
|
|
580
|
-
sort order of
|
|
665
|
+
-ON or -OrderNames, a string of single-letter field codes that
|
|
666
|
+
controls the sort order of -GC (-GetCheck) output.
|
|
581
667
|
|
|
582
|
-
-AO or -ActOption, the token that marks Action and Mode options in
|
|
583
|
-
files. Defaults to '<!>'.
|
|
668
|
+
-AO or -ActOption, the token that marks Action and Mode options in
|
|
669
|
+
input files. Defaults to '<!>'.
|
|
584
670
|
|
|
585
|
-
-WI or -WaitInterval, the time the
|
|
586
|
-
cycles. Defaults to
|
|
671
|
+
-WI or -WaitInterval, the time the dscheck daemon sleeps between
|
|
672
|
+
cycles. Defaults to 120 seconds (2 minutes).
|
|
587
673
|
|
|
588
674
|
5.2 Multi-Value Info Options
|
|
589
675
|
|
|
590
|
-
|
|
591
|
-
|
|
676
|
+
A multi-value Info option accepts a list of one or more values. Supplying
|
|
677
|
+
zero values is an error.
|
|
592
678
|
|
|
593
|
-
-AN or -ActionName (Alias: -Action), the action name associated with
|
|
594
|
-
command
|
|
679
|
+
-AN or -ActionName (Alias: -Action), the action name associated with
|
|
680
|
+
a command in a check record.
|
|
595
681
|
|
|
596
|
-
-AV or -ArgumentVector, the space-delimited argument string
|
|
597
|
-
command, up to 100 characters. Quote individual arguments
|
|
598
|
-
with single quotes.
|
|
682
|
+
-AV or -ArgumentVector, the space-delimited argument string that
|
|
683
|
+
follows the command, up to 100 characters. Quote individual arguments
|
|
684
|
+
containing spaces with single quotes.
|
|
599
685
|
|
|
600
686
|
-AX or -ArgumentExtra, the space-delimited argument string beyond 100
|
|
601
|
-
characters. Non-empty only when the argument vector exceeds 100
|
|
687
|
+
characters. Non-empty only when the argument vector exceeds 100
|
|
688
|
+
characters.
|
|
602
689
|
|
|
603
|
-
-CC or -CarbonCopy,
|
|
604
|
-
|
|
605
|
-
|
|
690
|
+
-CC or -CarbonCopy, additional email addresses for Cc'd notification
|
|
691
|
+
of check status. DECS specialists may be specified by login name; for
|
|
692
|
+
other domains, use full email addresses.
|
|
606
693
|
|
|
607
|
-
-CD or -CheckDate, the date
|
|
694
|
+
-CD or -CheckDate, the date a recorded command was first processed.
|
|
608
695
|
|
|
609
|
-
-CI or -CheckIndex, the
|
|
610
|
-
|
|
696
|
+
-CI or -CheckIndex, the indices of check records in GDEXDB. A check
|
|
697
|
+
record is moved to history once its command finishes.
|
|
611
698
|
|
|
612
|
-
-CM or -Command (Alias: -CommandName), the command name
|
|
699
|
+
-CM or -Command (Alias: -CommandName), the command name in a check
|
|
613
700
|
record.
|
|
614
701
|
|
|
615
|
-
-CT or -CheckTime, the time
|
|
702
|
+
-CT or -CheckTime, the time a recorded command was first processed.
|
|
616
703
|
|
|
617
|
-
-DB or -Debug,
|
|
618
|
-
level (required), log file path, and log file name.
|
|
619
|
-
single integer (e.g
|
|
620
|
-
200-1000). Defaults: log path '${DSSHOME}/dssdb/log',
|
|
704
|
+
-DB or -Debug, enable debug logging. Up to three values may be given:
|
|
705
|
+
the debug level (required), the log file path, and the log file name.
|
|
706
|
+
The level is either a single integer (e.g. 1000 means levels 1 to 1000)
|
|
707
|
+
or a range (e.g. 200-1000). Defaults: log path '${DSSHOME}/dssdb/log',
|
|
708
|
+
file name 'mydss.dbg'.
|
|
621
709
|
|
|
622
710
|
-DC or -DoneCount, the number of files successfully processed so far.
|
|
623
711
|
|
|
624
|
-
-DF or -DownFlags, storage system down flags.
|
|
625
|
-
G-GLADE, O-ObjectStore. Up to
|
|
712
|
+
-DF or -DownFlags, storage system down flags. Valid flags: D-DRDATA,
|
|
713
|
+
G-GLADE, O-ObjectStore. Up to five flags may be combined.
|
|
626
714
|
|
|
627
|
-
-DI or -DaemonIndex, daemon control indices. A daemon control record
|
|
628
|
-
|
|
629
|
-
run on a given host, and at what priority.
|
|
715
|
+
-DI or -DaemonIndex, daemon control indices. A daemon control record
|
|
716
|
+
defines how many concurrent processes of a given command a specialist
|
|
717
|
+
may run on a given host, and at what priority.
|
|
630
718
|
|
|
631
|
-
-DS or -Dataset, dataset numbers (also called dataset IDs)
|
|
719
|
+
-DS or -Dataset, dataset numbers (also called dataset IDs). Format:
|
|
632
720
|
[a-z]NNNNNN.
|
|
633
721
|
|
|
634
722
|
-ER or -ErrorMessage, the error message from a failed check command.
|
|
635
723
|
|
|
636
|
-
-EV or -Environments (Alias: -Envs), environment variables required
|
|
637
|
-
|
|
638
|
-
by commas.
|
|
724
|
+
-EV or -Environments (Alias: -Envs), environment variables required
|
|
725
|
+
to run a command as a batch job, in the form VarName=VarValue, separated
|
|
726
|
+
by commas. The variables are set in the batch startup script.
|
|
639
727
|
|
|
640
|
-
-FC or -FileCount, the number of files to be processed by a check
|
|
728
|
+
-FC or -FileCount, the number of files to be processed by a check
|
|
729
|
+
command.
|
|
641
730
|
|
|
642
|
-
-HN or -HostName,
|
|
731
|
+
-HN or -HostName, host names on which the check can or cannot be
|
|
643
732
|
processed.
|
|
644
733
|
|
|
645
|
-
-IF or -InputFile, one or more input file names
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
734
|
+
-IF or -InputFile, one or more input file names supplied on the command
|
|
735
|
+
line. An input file holds options and their values for a dscheck
|
|
736
|
+
invocation.
|
|
737
|
+
|
|
738
|
+
Input file format:
|
|
739
|
+
- Lines starting with '#' are comments and are ignored.
|
|
740
|
+
- Option names may appear in short, long, or alias form.
|
|
741
|
+
- Action/Mode markers: OptionName<!>
|
|
742
|
+
(marker overridable via -AO)
|
|
743
|
+
- Single-value assignments: OptionName<=>OptionValue
|
|
744
|
+
(one per line; '<=>' overridable via -ES)
|
|
745
|
+
- Multi-value tabular assignments:
|
|
746
|
+
a title row followed by data rows, columns separated by '<:>'
|
|
747
|
+
('<:>' overridable via -DV).
|
|
748
|
+
- A tabular block ends at EOF, at the next title line, or at the next
|
|
749
|
+
single-value assignment.
|
|
750
|
+
- If the last column of a tabular block contains multi-line text,
|
|
751
|
+
append the column separator to every row, including the title row.
|
|
752
|
+
|
|
753
|
+
-MC or -MaxCount, the maximum number of times a failed check command
|
|
754
|
+
may be retried.
|
|
663
755
|
|
|
664
756
|
-MH or -MatchHost (Alias: -MatchHostname), controls how hostnames are
|
|
665
|
-
matched
|
|
666
|
-
lists where the current host is not listed
|
|
667
|
-
the specified hostname
|
|
757
|
+
matched. 'G' is a general match - it includes empty hostnames and
|
|
758
|
+
exclusive lists where the current host is not listed. 'M' is an exact
|
|
759
|
+
match against the specified hostname.
|
|
668
760
|
|
|
669
|
-
-MO or -Modules (Alias: -Mods), module names
|
|
670
|
-
to
|
|
761
|
+
-MO or -Modules (Alias: -Mods), comma-separated module names required
|
|
762
|
+
to run a command as a batch job. The modules are loaded in the batch
|
|
671
763
|
startup script.
|
|
672
764
|
|
|
673
|
-
-PI or -ParentIndex, the parent check index that the current check
|
|
674
|
-
for before it can run.
|
|
765
|
+
-PI or -ParentIndex, the parent check index that the current check
|
|
766
|
+
must wait for before it can run.
|
|
675
767
|
|
|
676
|
-
-PO or -Priority, the priority of a
|
|
677
|
-
which hosts are
|
|
768
|
+
-PO or -Priority, the priority of a host within a daemon control,
|
|
769
|
+
determining the order in which hosts are tried when starting a check.
|
|
678
770
|
|
|
679
|
-
-PL or -ProcessLimit, the maximum number of concurrent processes
|
|
680
|
-
|
|
681
|
-
|
|
771
|
+
-PL or -ProcessLimit, the maximum number of concurrent processes
|
|
772
|
+
allowed for a given (command, specialist) on a given host. Also used
|
|
773
|
+
with -SO (-SetOptions) to bound concurrent cron processes.
|
|
682
774
|
|
|
683
|
-
-PQ or -PBSQueue, the PBS batch queue to which the current check is
|
|
775
|
+
-PQ or -PBSQueue, the PBS batch queue to which the current check is
|
|
776
|
+
submitted.
|
|
684
777
|
|
|
685
|
-
-QS or -QsubOptions (Alias: -PBSOptions), options passed to qsub when
|
|
686
|
-
|
|
687
|
-
-QS '-l walltime=12:00:00'.
|
|
778
|
+
-QS or -QsubOptions (Alias: -PBSOptions), options passed to qsub when
|
|
779
|
+
the command runs as a PBS batch job. Quote the value on the command
|
|
780
|
+
line, e.g. -QS '-l walltime=12:00:00'.
|
|
688
781
|
|
|
689
|
-
-SN or -Specialist, the specialist who ran the
|
|
690
|
-
|
|
782
|
+
-SN or -Specialist, the specialist who originally ran the command.
|
|
783
|
+
Used with -GC (-GetCheck) and -GD (-GetDaemon) to view records owned
|
|
784
|
+
by a particular specialist.
|
|
691
785
|
|
|
692
|
-
-ST or -Status, the check status for a recorded command, including
|
|
693
|
-
percentage for running commands and error messages for failed
|
|
786
|
+
-ST or -Status, the check status for a recorded command, including
|
|
787
|
+
progress percentage for running commands and error messages for failed
|
|
788
|
+
ones.
|
|
694
789
|
|
|
695
|
-
-SZ or -DataSize, the total
|
|
790
|
+
-SZ or -DataSize, the total number of bytes processed for the check
|
|
791
|
+
record.
|
|
696
792
|
|
|
697
|
-
-TC or -TryCount, the number of times the check command has been
|
|
698
|
-
up to the limit set
|
|
793
|
+
-TC or -TryCount, the number of times the check command has been
|
|
794
|
+
attempted, up to the limit set by -MC.
|
|
699
795
|
|
|
700
|
-
-WD or -WorkDir (Alias: -WorkDirectory), the working directory from
|
|
701
|
-
the recorded command is started.
|
|
796
|
+
-WD or -WorkDir (Alias: -WorkDirectory), the working directory from
|
|
797
|
+
which the recorded command is started.
|
|
@@ -2,11 +2,11 @@ rda_python_dscheck/PgCheck.py,sha256=lvh0XSWJID9J9fjqmDtpq6xW2ULC-bChAxAkm8MFzbk
|
|
|
2
2
|
rda_python_dscheck/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
3
|
rda_python_dscheck/ds_check.py,sha256=-js5Ex1k7V8ziE_k-ld5Z0l44QGYhvQtdYri9vsqNJA,24303
|
|
4
4
|
rda_python_dscheck/dscheck.py,sha256=-vv7gw4xYIa1xofWo-o3972dDnR_FQZxZz6_S_kCCuk,24805
|
|
5
|
-
rda_python_dscheck/dscheck.usg,sha256=
|
|
5
|
+
rda_python_dscheck/dscheck.usg,sha256=upCHGwRcjrLoue4Z9nE3pMDZ3s09Qq1ujEH2eJhb2cg,32036
|
|
6
6
|
rda_python_dscheck/pg_check.py,sha256=Riv1nJYocSKLDsOIIYmOmkKlWZLKDrA1uPpbUEYo1uo,67388
|
|
7
|
-
rda_python_dscheck-2.0.
|
|
8
|
-
rda_python_dscheck-2.0.
|
|
9
|
-
rda_python_dscheck-2.0.
|
|
10
|
-
rda_python_dscheck-2.0.
|
|
11
|
-
rda_python_dscheck-2.0.
|
|
12
|
-
rda_python_dscheck-2.0.
|
|
7
|
+
rda_python_dscheck-2.0.7.dist-info/licenses/LICENSE,sha256=1dck4EAQwv8QweDWCXDx-4Or0S8YwiCstaso_H57Pno,1097
|
|
8
|
+
rda_python_dscheck-2.0.7.dist-info/METADATA,sha256=ezkK1sDQXrTcaTtHRlemEpeBOBQDmCOcHFLwuJainQk,812
|
|
9
|
+
rda_python_dscheck-2.0.7.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
10
|
+
rda_python_dscheck-2.0.7.dist-info/entry_points.txt,sha256=frVByX3Vp_Pd_zq93SXfItr5OMTd5tKeZzu5pbVXiGA,60
|
|
11
|
+
rda_python_dscheck-2.0.7.dist-info/top_level.txt,sha256=NrvWqcHMRlQZJb0w85JrDlSXTp9DF-pDRQaAEABzFts,19
|
|
12
|
+
rda_python_dscheck-2.0.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|