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

bkill

bkill JOBID

View status of jobs or specific job

bjobs

bjobs 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

bhist

bhist JOBID

LSF documentation is readily available.