Skip to content

Slurm Command: sacct

Perform queries to the Slurm accounting information.

Representative Example

hpc-login-1:~$ sacct -j  1607103
    JobID    JobName  Partition    Account  AllocCPUS      State ExitCode
------------ ---------- ---------- ---------- ---------- ---------- --------
1607103      wgs_sv_an+     medium                     1    PENDING      0:0

The sacct command displays information from the Slurm accounting service. The Slurm scheduler only knows about active or completing (very recently active) jobs. The accouting system also knows about currently running jobs so it is the more robust way to query information about jobs. However, not all information is available to the accouting system, so scontrol show job and squeue provide more information about current and pending jbos.

Slurm Documentation: sacct

Please also see the official Slurm documentation on sacct.

Important Arguments

Also see all important arguments of the sbatch command.

  • --jobs -- The job(s) to query for.
  • --format -- Define attributes to retrieve.
  • --long -- Get a lot of information from the database, consider to pipe into | less -S.


  • If you need to get information about a job regardless of it being in the past, present, or future execution, use sacct over scontrol and squeue.