2020-10-13 06:09:06 -05:00
|
|
|
# sacct
|
|
|
|
|
|
|
|
> Display accounting data from the Slurm service.
|
|
|
|
> More information: <https://slurm.schedmd.com/sacct.html>.
|
|
|
|
|
2024-03-14 02:01:06 -03:00
|
|
|
- Display job ID, job name, partition, account, number of allocated cpus, job state, and job exit codes for recent jobs:
|
2020-10-13 06:09:06 -05:00
|
|
|
|
|
|
|
`sacct`
|
|
|
|
|
2024-03-14 02:01:06 -03:00
|
|
|
- Display job ID, job state, job exit code for recent jobs:
|
2020-10-13 06:09:06 -05:00
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`sacct {{[-b|--brief]}}`
|
2020-10-13 06:09:06 -05:00
|
|
|
|
|
|
|
- Display the allocations of a job:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`sacct {{[-j|--jobs]}} {{job_id}} {{[-X|--allocations]}}`
|
2020-10-13 06:09:06 -05:00
|
|
|
|
|
|
|
- Display elapsed time, job name, number of requested CPUs, and memory requested of a job:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`sacct {{[-j|--jobs]}} {{job_id}} {{[-o|--format]}} Elapsed,JobName,ReqCPUS,ReqMem`
|
2023-11-18 12:40:14 -08:00
|
|
|
|
|
|
|
- Display recent jobs that occurred from one week ago up to the present day:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`sacct {{[-S|--starttime]}} $(date {{[-d|--date]}} "1 week ago" +'%F')`
|
2023-11-18 12:40:14 -08:00
|
|
|
|
|
|
|
- Output a larger number of characters for an attribute:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`sacct {{[-o|--format]}} JobID,JobName%100`
|