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 -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.

Last updated 1/15/2019