HP XC System Software Administration Guide Version 2.1
• First nonzero error code retu rned by jobstep
• Sum of system CPU time and user CPU time
_________________________ Note _________________________
These statistics are gathered after each jobstep com pletes.
11.4.1 Using the sacct Command
The sacct command enables you to analyze the system accounting data collected in the job
accounting log file.
As the superuser, you can examine the acco
unting data for all jobs an d job steps recorded i n the
job accounting log. The --uid and --gid o
ptions enable you to filter the output to report
only the jobs and jobsteps from a specifi
c u ser ID or group ID , respectively.
The default i nvo cation of the sacct command provides the jobstep, the job name, the n a me of
partition that the job was run on, the number of processes run, their status, and the return v alue
for the processes. An example is show n here:
# sacct
Jobstep Jobname Partition Nprocs Status Error
---------- ---------- ---------- ------- ---------- -----
2 script23 partn1 2 COMPLETED 0
2.0 partn1 2 COMPLETED 0
3 script51 partn1 2 COMPLETED 0
3.0 partn1 2 COMPLETED 0
The sacct command also provides a variety
of options that enable you to tailor the output
according to your needs. These options i
nclude the follow ing :
--brief
Displays o nly the jobstep, status, and error (retur n value) fields.
--long
Displays a lengthier list, including the jobstep, t he CPU time in user
space, the CPU time in system space, the number of processes
used, the total number of CPUs allocated to the job, the elapsed
time, status, and error fields.
--jobs
Displays only the information on a specified job or list of jobs.
--state
Displays only the informa tio n on jobs that are in a given state
(running, completed, and so on).
--total
Displays only the cumulative statistics f or each job.
--file=file
Examines the job accounting data from the specified file instead of
the job accounting log.
_______________ Note _______________
Privileges are not examined when this option is used.
--fields
Displays on ly the specified statistics.
See the sacct
(1) manpage for more information .
11-8 SLURM Administration