uustat - uucp status inquiry and job control
uustat [ [-m] | [-p] | [-q] | [-k jobid [-n]] | [-r jobid [-n]]]
uustat [-a] [-s system [-j]] [-u user] [-S qric]
uustat -t system [-c] [-d number]
The uustat utility functions in the following three areas:
The following options are supported:
These options obtain general status of, or cancel, previously specified uucp commands:
-a
-j
-kjobid
-m
-n
-p
-q
eagle 3C 04/07-11:07 NO DEVICES AVAILABLE mh3bs3 2C 07/07-10:42 SUCCESSFUL
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.
-rjobid
These options provide remote system performance information, in terms of average transfer rates or average queue times. The -c and -d options can only be used in conjunction with the -t option:
-tsystem
-c
example% uustat -teagle -d50 -c
produces output in the following format:
average queue time to eagle for last 50 minutes: 5 seconds
The same command without the -c parameter produces output in the following format:
average transfer rate with eagle for last 50 minutes: 2000.88 bytes/sec
-dnumber
These options provide general remote system-specific and user-specific status of uucp connections to other systems. Either or both of the following options can be specified with uustat. The -j option can be used in conjunction with the -s option to list the total number of jobs displayed:
-ssystem
-uuser
Output for both the -s and -u options has the following format:
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
With the above two options, the first field is the jobid of the job. This is followed by the date/time. The next field is an S if the job is sending a file or an R 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 (rmail 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, D.3b2alce4924) that is created for data files associated with remote executions (rmail in this example).
-Sqric
q
r
i
c
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 -S option can also be used with -s and -u options. The output for this option is exactly like the output for -s and -u except that the job states are appended as the last output word. Output for a completed job has the following format:
eagleC1bd3 completed
When no options are given, uustat writes to standard output the status of all uucp requests issued by the current user.
See environ(5) for descriptions of the following environment variables that affect the execution of uustat: LANG, LC_ALL, LC_COLLATELC_CTYPE, LC_MESSAGES, LC_TIME, NLSPATH, and TZ.
The following exit values are returned:
0
>0
/var/spool/uucp/*
/var/uucp/.Admin/account
/var/uucp/.Admin/perflog
See attributes(5) for descriptions of the following attributes:
|
uucp(1C), attributes(5), environ(5), standards(5)
The -t option produces no message when the data needed for the calculations is not being recorded.
After the user has issued the uucp request, if the file to be transferred is moved, deleted or was not copied to the spool directory (-C option) when the uucp request was made, uustat reports a file size of -99999. This job will eventually fail because the file(s) to be transferred can not be found.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |