LinuxCommandLibrary

bjobs

TLDR

Show all your pending and running jobs

$ bjobs
copy
Show all jobs including finished
$ bjobs -a
copy
Show detailed information for a job
$ bjobs -l [job_id]
copy
Show jobs in a specific queue
$ bjobs -q [queue_name]
copy
Show running jobs only
$ bjobs -r
copy
Show pending jobs only
$ bjobs -p
copy
Show jobs with wide output
$ bjobs -w
copy
Show jobs for all users
$ bjobs -u all
copy

SYNOPSIS

bjobs [options] [jobid_...]

DESCRIPTION

bjobs displays information about LSF (Load Sharing Facility) batch jobs. By default, it shows your pending and running jobs with their status, queue, submission host, and execution host.
Job states include PEND (waiting), RUN (executing), DONE (completed successfully), EXIT (failed), PSUSP (pending suspended), USUSP (user suspended), and SSUSP (system suspended).
bjobs is part of IBM Spectrum LSF, a workload management platform for scheduling and managing batch jobs in HPC environments and large compute clusters.

PARAMETERS

-a

Show all jobs including recently finished.
-d
Show recently finished jobs.
-l
Long format with detailed information.
-p
Show pending jobs only.
-r
Show running jobs only.
-s
Show suspended jobs only.
-w
Wide format, don't truncate fields.
-W
Show estimated start time for pending jobs.
-q queue
Show jobs from specific queue.
-u user
Show jobs for specific user (or "all").
-m host
Show jobs on specific execution host.
-J name
Show jobs with matching job name.
-g group
Show jobs in specific job group.
-o format
Custom output format.
-noheader
Suppress header line.

CAVEATS

Recently finished jobs disappear from bjobs after a configurable time (typically 1 hour). Use bhist for historical job information. Job IDs may be reused after some time. Wide format may still truncate on very long fields.

HISTORY

bjobs is part of IBM Spectrum LSF, originally developed by Platform Computing in the early 1990s. LSF (Load Sharing Facility) pioneered workload management for distributed computing. Platform Computing was acquired by IBM in 2012. The bjobs interface has remained largely stable over decades, maintaining backward compatibility while adding new features.

SEE ALSO

bsub(1), bkill(1), bhist(1), bqueues(1)

Copied to clipboard