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 normal matlab -r myscript.m

Get an interactive session (shell) or script interactively

bsub -Is

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

OR

bsub -q interactive -Is /bin/bash -p interactive -W 10 /bin/bash /bin/hostname

Run a script interactively

   

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 -S 2017/09/01,

OR

bhist -l JOBID

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.