Summary of LSF Commands

The table below shows a summary of LSF commands. These commands are described in more detail below along with a link to the official LSF documentation. 

Action

LSF command

Example

Submit a batch (background) script or run and application script

bsub

bsub runscript.sh

bsub -q long matlab -r "myscript"

Get an interactive session (shell) or script interactively

bsub -Ip

bsub -q long_int -Is -W 2:00 /bin/bash

bsub -q long_int -Is -W 10 /bin/bash /bin/hostname

Kill a job or kill all jobs 

bkill

 

bkill JOBID

bkill 0 

View current/pending jobs

View specific job

View details (long format) of job 

bjobs

 

bjobs

bjobs JOBID

bjobs -l JOBID

View the output and error files of a job

bpeek

bpeek JOBID

View queue status

View queue status for all users

bqueues

bqueues

bqueues -u all

View recent past job info

View list of past jobs (failed or good) from date to now

View details (long format) of past job

 

bhist

 

bhist JOBID

bhist -a [-n #] -S 2017/09/01,

bhist -l [-n #] JOBID

Note: The -n option (where n = 0 or 1 - 400) must be used for jobs older than a day or two. This indicates how many jobs lobs to look backwards through. 0 indicates first 100 logs, and may result in the command taking several tens of seconds to return any information.

Check how busy the cluster is by user

View cluster load by several criteria

bjobs

bjobs -u all

bqueues && bhosts && lsload

See additional commands in the official LSF documentation.

 

Last updated 5/11/2020