Linux » Man Pages
find in page
/usr/sbin/csajrep [-s file] [-b] [-c] [-h] [-q] [-t] [-w] [-x] [-A] [-B] [-F] [-J] [-L] [-S] [-T] [-Z]
/usr/sbin/csajrep [-s file] [-j jid] [-p prid] [-r reqid] [-u uid] [-b] [-c] [-e] [-h] [-q] [-t] [-w] [-x] [-A] [-B] [-J] [-L] [-S] [-T] [-V] [-Z]
/usr/sbin/csajrep [-s file] [-A]
The csajrep command reports job accounting information from the sorted
pacct file, which is created by the csabuild(8) command.
The csajrep command accepts the following three types of options:
input, selection, and printing. If you omit the options, input is read
from /var/csa/work/spacct and all records from each completed job are
reported. You can select a subset of jobs by specifying the user ID,
project ID (deferred), job ID, or workload management request ID, for
which you seek accounting information.
The following option specifies an input file for the job accounting
-s file Specifies the name of the sorted pacct file created by
csabuild(8). The default file is /var/csa/work/spacct.
By default, the -j, -p, and -u selection options report entire jobs.
The -e option limits the report to records that match the selection
criteria. The -e option must be used with at least one of the follow-
ing options: -j, -p, or -u. You cannot specify the -F option in combi-
nation with any of the following options: -j, -p, or -u.
Otherwise, the csajrep command accepts the following selection options:
-e Selects only the records that meet the selection criteria as
defined by the -j, -p, and -u options. The -e option must be
used with at least one of these four options. By default,
csajrep outputs all of the records from jobs that contain at
least one record that meets the selection criteria.
-j jid Specifies a (numeric) job ID. The job ID must be specified
in hexadecimal. The "0x" prefix or "0X" prefix are optional.
-p projid Specifies a numeric project ID or project name. (deferred)
-r reqid Specifies a workload management request ID.
-u uid Specifies a numeric user ID or a user login name.
-F By default, -F displays all records for completed jobs. This
option cannot be used with any of the following options: -e,
-j, -p, and -u. When -F is used with the -A option, all
records for both active and completed jobs are reported.
When -F is used with the -Z option, all records are reported
except those with a job ID (jid) of 0.
-h Suppresses report headings.
-q For workload management records, reports the queue wait time
and queue type.
-t Prints summary information.
-w Reports the CPU, block I/O, and swap in delays, along with
high-water core memory usage value and high-water virtual
memory usage value.
-x Reports the number of k-characters read and written, and the
number of read and write system calls. The read and written
values are printed separately.
-A Reports both active and completed jobs. By default, only
completed jobs are reported.
-B Reports process and job starting times.
-J Reports job ID.
-L Puts form feeds at the end of each job.
-S Reports the array session handle. (deferred)
-T Prints only summary information for each job.
-V Reports page swaps, minor and major faults.
A job may contain multiple user IDs and project IDs (deferred), because
the user may have executed a command such as su(1).
When the -u option is used without the -e option, all records for jobs
containing at least one accounting record for the specified user are
For example, if user1 executes the command rsh sgi who from a remote
host, then the command /usr/sbin/csajrep -u user1 -JBc -s spacct would
produce output similar to:
JOB PROJECT LOGIN COMMAND START USER-TIM SYS-TIM
ID NAME NAME NAME TIME [SECS] [SECS]
============= ======== ======== ======== ==================== ======== ========
0x146 Xydev user1 who Jan 7 13:28:02 2000 0.004 0.008
0x146 System root rshd Jan 7 13:28:02 2000 0.004 0.014
The rshd(8) command was executed by root on behalf of user user1; thus
it is reported by the csajrep -u option.
When used with -u, the -e option suppresses the printing of all
accounting records which are not for the specified user. In the previ-
ous example, the command /usr/sbin/csajrep -eu user1 -JBc -s spacct
would produce output similar to:
that user jdoe executed. The list includes job ID, start time, and
both terminated and nonterminated jobs in the output:
csajrep -u jdoe -ABJ
Output converted with
what's new |