sbatch

Use the ‘sbatch’ command to submit your jobs:

[johnchris@l001 ~]$ sbatch strata_test.sl
sbatch: slurm_job_submit: Exclusive/Full Node jobs are billed for all cores and memory for all requested nodes.
Submitted batch job 2217698

scancel

Use the ‘scancel’ command to withdraw a job:

[johnchris@l001 ~]$ scancel 2217697

sacct

‘sacct’ displays accounting data for all jobs and job steps in the Slurm job accounting log or Slurm Database, providing both live and historic data.

‘sacct’ can track users’ recent jobs and display job IDs and other details:

[johnchris@l001 ~]$ sacct

‘sacct -j jobid’ will display only the specified job(s):

[johnchris@l001 ~]$ sacct -j 2193166

‘sacct’ can provide a detailed report on the memory, CPU, and other usage metrics of a job:

[johnchris@l001 ~]$ sacct -j 2412831 --format JobID,Elapsed,ReqMem,MaxRSS,AllocCPUs,TotalCPU,State

scontrol

‘scontrol show job jobid’ will show detailed information about the job with the specified ID, including the job script:

[johnchris@l001 ~]$ scontrol show job 2412831

Scroll to Top