Note: If using the NoMachine NX client, you will need to open a terminal window to execute these commands. From the menu bar, select Applications > Accessories > gnome-terminal.
For a complete reference, please see our page on LSF Commands
bhist are different commands that allow you to monitor job activity in LSF.
bjobs is the primary and most accurate monitoring tool.
bpeek allows you to look at the output and error files of currently running jobs, giving you a glimpse of how the job is progressing. And
bhist gives you similar information for running jobs, and can also report on previously finished jobs.
bjobs without arguments will list all your currently running, pending, and completing jobs:
or for a particular job
Where JOBID is one of the job IDs listed from the generic bjobs command or from your log of jobs you've run. If you include the
-l option (for "long" output) you can get useful data, including the running state of the job.
bpeek with the jobID will display the last several lines of the output and error files from your job, as if you had issued the tail command.
If you wish to monitor them continuously, use the
-f option, and type
ctrl-C to cancel this.
bhist command will allow you to see current and past information on jobs. For current information:
For information on a specific job, include the jobID and
-l (long) option:
bhist -l JOBID
To see past job information, use the
-a parameter (all jobs):
If for any reason, you need to kill a job that you've submitted, just use the
bkill command with the job ID:
If things have really gone haywire and you need to kill all your jobs, give the jobID
To kill all jobs only in a particular queue, use the
bkill -q normal 0