bacct
Overview
bacct is used to display accounting statistics for completed jobs.
Options
| Option | Description | Key Differences |
|---|---|---|
-h | Print command usage and exit | Provides more detailed help information |
-V | Print version | No difference |
-l | Display detailed job information in long format | No difference |
-b | Display job information in brief format | No difference |
-d | Display only successfully completed (DONE) jobs | No difference |
-e | Display only exited (EXIT) jobs | No difference |
-u | Display jobs for a specified user or all users | No difference |
-q | Display jobs submitted to a specified queue | No difference |
-m | Display jobs executed on a specified host | No difference |
-P | Display jobs belonging to a specified project | project maps to wckey |
-C | Display jobs completed within a specified time interval | No difference |
-S | Display jobs submitted within a specified time interval | No difference |
-D | Display jobs dispatched within a specified time interval | No difference |
Output Format
SUMMARY format (default)
Displays aggregated job statistics, including:
| Field | Description |
|---|---|
Total number of done jobs | Total number of successfully completed jobs |
Total number of exited jobs | Total number of failed/exited jobs |
Total CPU time consumed | Total CPU time consumed by all jobs |
Average CPU time consumed | Average CPU time |
Maximum/Minimum CPU time of a job | Max/min CPU time for a single job |
Total wait time in queues | Total wait time in queues |
Average/Maximum/Minimum wait time in queue | Average/max/min wait time |
Average/Maximum/Minimum turnaround time | Average/max/min turnaround time (submission to completion) |
Average/Maximum/Minimum hog factor | Average/max/min CPU utilization (CPU time/turnaround time) |
Average/Maximum/Minimum expansion factor | Average/max/min expansion factor (turnaround time/run time) |
Total/Average/Maximum/Minimum Run time | Total/average/max/min run time |
Total throughput | Total throughput (jobs/hour) |
Beginning/Ending time | Start/end time of the time range |
BRIEF format (-b option)
Brief output includes the following fields:
| Field | Description | Key Differences |
|---|---|---|
U/UID | Username | No difference |
QUEUE | Queue name | No difference |
SUBMIT_TIME | Submission time | No difference |
CPU_T | CPU time | No difference |
WAIT | Wait time | No difference |
TURNAROUND | Turnaround time | No difference |
FROM | Submission host | Always shown as N/A |
EXEC_ON | Execution host | No difference |
JOB_NAME | Job name | No difference |
LONG format (-l option)
Long format outputs full details for each job, including job ID, user, queue, submission time, start time, completion time, CPU time, wait time, turnaround time, execution host, job name, exit status, and more.
Examples
-
Show statistics for all completed jobs (default SUMMARY format)
bacct -
Show job statistics for a specific user
bacct -u username -
Show all jobs in brief format
bacct -b -
Show detailed job information in long format
bacct -l -
Show only successfully completed jobs
bacct -d -
Show only failed/exited jobs
bacct -e -
Show job statistics for a specific queue
bacct -q queuename -
Show jobs executed on a specific host
bacct -m hostname -
Show jobs for a specific project
bacct -P project_name -
Query jobs by time range
# Query jobs completed between December 1, 2025 and January 31, 2026
bacct -C 2025/12/1,2026/1/31
# Query jobs completed on May 6
bacct -C 5/6
# Query jobs submitted in the last 3 days
bacct -S .-3,
Time Format
| Format | Meaning | Example |
|---|---|---|
MM/DD | Month/day | 5/1 means all day on May 1 |
MM/DD,MM/DD | Time range | 5/1,5/8 means May 1 to May 8 |
YYYY/MM/DD | Full date | 2024/12/1 |
.-N, | Relative time | .-7, means the last 7 days |
Notes
- SUMMARY format is shown by default
-band-lare mutually exclusive; only one can be used- If no time option is specified, the default query is jobs completed in the last 7 days