commands.sh

sacct

linux

Display accounting data from the Slurm service.

More info →

Options (6)

-b, --briefboolean

Display job ID, job state, job exit code for recent jobs

Example: sacct {{[-b|--brief]}}
-j, --jobsboolean

Display the allocations of a job

Example: sacct {{[-j|--jobs]}} {{job_id}} {{[-X|--allocations]}}
-X, --allocationsboolean

Display the allocations of a job

Example: sacct {{[-j|--jobs]}} {{job_id}} {{[-X|--allocations]}}
-o, --formatboolean

Display elapsed time, job name, number of requested CPUs, and memory requested of a job

Example: sacct {{[-j|--jobs]}} {{job_id}} {{[-o|--format]}} Elapsed,JobName,ReqCPUS,ReqMem
-S, --starttimeboolean

Display recent jobs that occurred from one week ago up to the present day

Example: sacct {{[-S|--starttime]}} $(date {{[-d|--date]}} "1 week ago" +'%F')
-d, --dateboolean

Display recent jobs that occurred from one week ago up to the present day

Example: sacct {{[-S|--starttime]}} $(date {{[-d|--date]}} "1 week ago" +'%F')

Examples (6)

Display job ID, job name, partition, account, number of allocated cpus, job state, and job exit codes for recent jobs

Display job ID, job state, job exit code for recent jobs

sacct [-b|--brief]

Display the allocations of a job

sacct [-j|--jobs] job_id [-X|--allocations]

Display elapsed time, job name, number of requested CPUs, and memory requested of a job

sacct [-j|--jobs] job_id [-o|--format] Elapsed,JobName,ReqCPUS,ReqMem

Display recent jobs that occurred from one week ago up to the present day

sacct [-S|--starttime] $(date [-d|--date] "1 week ago" +'%F')

Output a larger number of characters for an attribute

sacct [-o|--format] JobID,JobName%100
made by @shridhargupta | data from tldr-pages