LinuxCommandLibrary

sacct

TLDR

Display recent jobs with default fields

$ sacct
copy
Display brief job information
$ sacct -b
copy
Display allocations for a specific job
$ sacct -j job_id -X
copy
Display custom fields for a job
$ sacct -j job_id -o Elapsed,JobName,ReqCPUS,ReqMem
copy
Display jobs from one week ago
$ sacct -S $(date -d "1 week ago" +'%F')
copy
Expand field width for long values
$ sacct -o JobID,JobName%100
copy

SYNOPSIS

sacct [options]

DESCRIPTION

sacct displays accounting data from the Slurm workload manager. It shows job history including resource usage, state, and exit codes for completed and running jobs.
Output format is highly customizable with many available fields for detailed job analysis.

PARAMETERS

-b, --brief

Display brief job information
-j, --jobs id
Show specific job
-X, --allocations
Show only allocations
-o, --format fields
Custom output format
-S, --starttime date
Filter by start time

CAVEATS

Requires Slurm accounting to be configured. Historical data retention depends on Slurm configuration.

HISTORY

Part of Slurm workload manager, the leading HPC cluster resource management system.

SEE ALSO

squeue(1), sinfo(1), scontrol(1)

Copied to clipboard