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
|
.\"
.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for
.\" permission to reproduce portions of its copyrighted documentation.
.\" Original documentation from The Open Group can be obtained online at
.\" http://www.opengroup.org/bookstore/.
.\"
.\" The Institute of Electrical and Electronics Engineers and The Open
.\" Group, have given us permission to reprint portions of their
.\" documentation.
.\"
.\" In the following statement, the phrase ``this text'' refers to portions
.\" of the system documentation.
.\"
.\" Portions of this text are reprinted and reproduced in electronic form
.\" in the SunOS Reference Manual, from IEEE Std 1003.1, 2004 Edition,
.\" Standard for Information Technology -- Portable Operating System
.\" Interface (POSIX), The Open Group Base Specifications Issue 6,
.\" Copyright (C) 2001-2004 by the Institute of Electrical and Electronics
.\" Engineers, Inc and The Open Group. In the event of any discrepancy
.\" between these versions and the original IEEE and The Open Group
.\" Standard, the original IEEE and The Open Group Standard is the referee
.\" document. The original Standard can be obtained online at
.\" http://www.opengroup.org/unix/online.html.
.\"
.\" This notice shall appear on any product containing this material.
.\"
.\" The contents of this file are subject to the terms of the
.\" Common Development and Distribution License (the "License").
.\" You may not use this file except in compliance with the License.
.\"
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
.\" or http://www.opensolaris.org/os/licensing.
.\" See the License for the specific language governing permissions
.\" and limitations under the License.
.\"
.\" When distributing Covered Code, include this CDDL HEADER in each
.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
.\" If applicable, add the following below this CDDL HEADER, with the
.\" fields enclosed by brackets "[]" replaced with your own identifying
.\" information: Portions Copyright [yyyy] [name of copyright owner]
.\"
.\"
.\" Copyright 1989 AT&T
.\" Portions Copyright (c) 1992, X/Open Company Limited. All Rights Reserved.
.\" Copyright (c) 1995, Sun Microsystems, Inc. All Rights Reserved.
.\"
.TH UUSTAT 1C "Mar 28, 1995"
.SH NAME
uustat \- uucp status inquiry and job control
.SH SYNOPSIS
.LP
.nf
\fBuustat\fR
[ [\fB-m\fR] | [\fB-p\fR] | [\fB-q\fR] | [\fB-k\fR \fIjobid\fR [\fB-n\fR]] | [\fB-r\fR \fIjobid\fR [\fB-n\fR]]]
.fi
.LP
.nf
\fBuustat\fR [\fB-a\fR] [\fB-s\fR \fIsystem\fR [\fB-j\fR]] [\fB-u\fR \fIuser\fR] [\fB-S\fR \fIqric\fR]
.fi
.LP
.nf
\fBuustat\fR \fB-t\fR \fIsystem\fR [\fB-c\fR] [\fB-d\fR \fInumber\fR]
.fi
.SH DESCRIPTION
.sp
.LP
The \fBuustat\fR utility functions in the following three areas:
.RS +4
.TP
1.
Displays the general status of, or cancels, previously specified \fBuucp\fR
commands.
.RE
.RS +4
.TP
2.
Provides remote system performance information, in terms of average transfer
rates or average queue times.
.RE
.RS +4
.TP
3.
Provides general remote system-specific and user-specific status of
\fBuucp\fR connections to other systems.
.RE
.SH OPTIONS
.sp
.LP
The following options are supported:
.SS "General Status"
.sp
.LP
These options obtain general status of, or cancel, previously specified
\fBuucp\fR commands:
.sp
.ne 2
.na
\fB\fB-a\fR\fR
.ad
.RS 11n
Lists all jobs in queue.
.RE
.sp
.ne 2
.na
\fB\fB-j\fR\fR
.ad
.RS 11n
Lists the total number of jobs displayed. The \fB-j\fR option can be used in
conjunction with the \fB-a\fR or the \fB-s\fR option.
.RE
.sp
.ne 2
.na
\fB\fB-k\fR\fIjobid\fR\fR
.ad
.RS 11n
Kills the \fBuucp\fR request whose job identification is \fIjobid\fR. The
killed \fBuucp\fR request must belong to the user issuing the \fBuustat\fR
command unless the user is the super-user or uucp administrator. If the job is
killed by the super-user or uucp administrator, electronic mail is sent to the
user.
.RE
.sp
.ne 2
.na
\fB\fB-m\fR\fR
.ad
.RS 11n
Reports the status of accessibility of all machines.
.RE
.sp
.ne 2
.na
\fB\fB-n\fR\fR
.ad
.RS 11n
Suppresses all standard output, but not standard error. The \fB-n\fR option is
used in conjunction with the \fB-k\fR and \fB-r\fR options.
.RE
.sp
.ne 2
.na
\fB\fB-p\fR\fR
.ad
.RS 11n
Executes the command \fBps\fR \fB-flp\fR for all the process-ids that are in
the lock files.
.RE
.sp
.ne 2
.na
\fB\fB-q\fR\fR
.ad
.RS 11n
Lists the jobs queued for each machine. If a status file exists for the
machine, its date, time and status information are reported. In addition, if a
number appears in parentheses next to the number of \fBC\fR or \fBX\fR files,
it is the age in days of the oldest \fBC.\fR/\fBX.\fR file for that system. The
\fBRetry\fR field represents the number of hours until the next possible call.
The \fBCount\fR is the number of failure attempts. \fBNote:\fR For systems with
a moderate number of outstanding jobs, this could take 30 seconds or more of
real-time to execute. An example of the output produced by the \fB-q\fR option
is:
.sp
.in +2
.nf
eagle 3C 04/07-11:07 NO DEVICES AVAILABLE
mh3bs3 2C 07/07-10:42 SUCCESSFUL
.fi
.in -2
.sp
This indicates the number of command files that are waiting for each system.
Each command file may have zero or more files to be sent (zero means to call
the system and see if work is to be done). The date and time refer to the
previous interaction with the system followed by the status of the interaction.
.RE
.sp
.ne 2
.na
\fB\fB-r\fR\fIjobid\fR\fR
.ad
.RS 11n
Rejuvenates \fIjobid\fR. The files associated with \fIjobid\fR are touched so
that their modification time is set to the current time. This prevents the
cleanup daemon from deleting the job until the jobs' modification time reaches
the limit imposed by the daemon.
.RE
.SS "Remote System Status"
.sp
.LP
These options provide remote system performance information, in terms of
average transfer rates or average queue times. The \fB-c\fR and \fB-d\fR
options can only be used in conjunction with the \fB-t\fR option:
.sp
.ne 2
.na
\fB\fB-t\fR\fIsystem\fR\fR
.ad
.RS 12n
Reports the average transfer rate or average queue time for the past 60 minutes
for the remote \fIsystem\fR. The following parameters can only be used with
this option:
.RE
.sp
.ne 2
.na
\fB\fB-c\fR\fR
.ad
.RS 12n
Average queue time is calculated when the \fB-c\fR parameter is specified and
average transfer rate when \fB-c\fR is not specified. For example, the command:
.sp
.in +2
.nf
example% \fBuustat -teagle -d50 -c\fR
.fi
.in -2
.sp
produces output in the following format:
.sp
.in +2
.nf
average queue time to eagle for last 50 minutes:
5 seconds
.fi
.in -2
.sp
The same command without the \fB-c\fR parameter produces output in the
following format:
.sp
.in +2
.nf
average transfer rate with eagle for last 50 minutes:
2000.88 bytes/sec
.fi
.in -2
.sp
.RE
.sp
.ne 2
.na
\fB\fB-d\fR\fInumber\fR\fR
.ad
.RS 12n
\fInumber\fR is specified in minutes. Used to override the 60 minute default
used for calculations. These calculations are based on information contained in
the optional performance log and therefore may not be available. Calculations
can only be made from the time that the performance log was last cleaned up.
.RE
.SS "User- or System-Specific Status"
.sp
.LP
These options provide general remote system-specific and user-specific status
of \fBuucp\fR connections to other systems. Either or both of the following
options can be specified with \fBuustat\fR. The \fB-j\fR option can be used in
conjunction with the \fB-s\fR option to list the total number of jobs
displayed:
.sp
.ne 2
.na
\fB\fB-s\fR\fIsystem\fR\fR
.ad
.RS 12n
Reports the status of all \fBuucp\fR requests for remote system \fIsystem.\fR
.RE
.sp
.ne 2
.na
\fB\fB-u\fR\fIuser\fR\fR
.ad
.RS 12n
Reports the status of all \fBuucp\fR requests issued by \fIuser\fR.
.RE
.sp
.LP
Output for both the \fB-s\fR and \fB-u\fR options has the following format:
.sp
.in +2
.nf
eagleN1bd7 4/07-11:07 S eagle dan 522 /home/dan/A
eagleC1bd8 4/07-11:07 S eagle dan 59 D.3b2al2ce4924
4/07-11:07 S eagle dan rmail mike
.fi
.in -2
.sp
.sp
.LP
With the above two options, the first field is the \fIjobid\fR of the job. This
is followed by the date/time. The next field is an \fBS\fR if the job is
sending a file or an \fBR\fR if the job is requesting a file. The next field is
the machine where the file is to be transferred. This is followed by the
user-id of the user who queued the job. The next field contains the size of the
file, or in the case of a remote execution (\fBrmail\fR is the command used for
remote mail), the name of the command. When the size appears in this field, the
file name is also given. This can either be the name given by the user or an
internal name (for example, \fBD.3b2alce4924\fR) that is created for data files
associated with remote executions (\fBrmail\fR in this example).
.sp
.ne 2
.na
\fB\fB-S\fR\fIqric\fR\fR
.ad
.RS 10n
Reports the job state:
.sp
.ne 2
.na
\fB\fBq\fR\fR
.ad
.RS 5n
for queued jobs
.RE
.sp
.ne 2
.na
\fB\fBr\fR\fR
.ad
.RS 5n
for running jobs
.RE
.sp
.ne 2
.na
\fB\fBi\fR\fR
.ad
.RS 5n
for interrupted jobs
.RE
.sp
.ne 2
.na
\fB\fBc\fR\fR
.ad
.RS 5n
for completed jobs
.RE
A job is queued if the transfer has not started. A job is running when the
transfer has begun. A job is interrupted if the transfer began but was
terminated before the file was completely transferred. A completed job is a
job that successfully transferred. The completed state information is
maintained in the accounting log, which is optional and therefore may be
unavailable. The parameters can be used in any combination, but at least one
parameter must be specified. The \fB-S\fR option can also be used with \fB-s\fR
and \fB-u\fR options. The output for this option is exactly like the output for
\fB-s\fR and \fB-u\fR except that the job states are appended as the last
output word. Output for a completed job has the following format:
.sp
.in +2
.nf
eagleC1bd3 completed
.fi
.in -2
.sp
.RE
.sp
.LP
When no options are given, \fBuustat\fR writes to standard output the status of
all \fBuucp\fR requests issued by the current user.
.SH ENVIRONMENT VARIABLES
.sp
.LP
See \fBenviron\fR(5) for descriptions of the following environment variables
that affect the execution of \fBuustat\fR: \fBLANG\fR, \fBLC_ALL\fR,
\fBLC_COLLATE\fR\fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, \fBLC_TIME\fR,
\fBNLSPATH\fR, and \fBTZ\fR.
.SH EXIT STATUS
.sp
.LP
The following exit values are returned:
.sp
.ne 2
.na
\fB\fB0\fR\fR
.ad
.RS 6n
Successful completion.
.RE
.sp
.ne 2
.na
\fB\fB>0\fR\fR
.ad
.RS 6n
An error occurred.
.RE
.SH FILES
.sp
.ne 2
.na
\fB\fB/var/spool/uucp/\fR*\fR
.ad
.RS 28n
spool directories
.RE
.sp
.ne 2
.na
\fB\fB/var/uucp/.Admin/account\fR\fR
.ad
.RS 28n
accounting log
.RE
.sp
.ne 2
.na
\fB\fB/var/uucp/.Admin/perflog\fR\fR
.ad
.RS 28n
performance log
.RE
.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE ATTRIBUTE VALUE
_
Interface Stability Standard
.TE
.SH SEE ALSO
.sp
.LP
\fBuucp\fR(1C), \fBattributes\fR(5), \fBenviron\fR(5), \fBstandards\fR(5)
.SH DIAGNOSTICS
.sp
.LP
The \fB-t\fR option produces no message when the data needed for the
calculations is not being recorded.
.SH NOTES
.sp
.LP
After the user has issued the \fBuucp\fR request, if the file to be transferred
is moved, deleted or was not copied to the spool directory (\fB-C\fR option)
when the \fBuucp\fR request was made, \fBuustat\fR reports a file size of
\fB\(mi99999\fR\&. This job will eventually fail because the file(s) to be
transferred can not be found.
|