Summary of LSF Commands

The table below shows a summary of LSF commands. These commands are described in more detail below along with links to the LSF doc site. 

Action

LSF command

Example

Submit a batch serial job

bsub

bsub runscript.sh

OR

bsub -q long matlab myscript.m

Get an interactive session (shell) or script interactively

bsub -Ip

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

OR

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

Kill a job or kill all jobs 

bkill

 

bkill JOBID

OR

bkill 0 

View status of jobs/specific jobs or long format of status 

 

bjobs

 

bjobs JOBID

OR

bjobs -l JOBID

View the output and error files of a job

bpeek

bpeek JOBID

View queue status or past usage

bqueues

bqueues

OR

bqueues -u jharvard

Check historical job by id, date range, or long format 

 

bhist

 

bhist JOBID

OR

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

OR

bhist -l [-n #] JOBID

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

Check how busy the cluster is by user or by cluster load

bjobs -u all

bjobs -u all

OR

bqueues && bhosts && lsload

LSF documentation is readily available.

Last updated 9/17/2019