Monitoring in Terminal

Monitoring Jobs

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

bjobs, bpeek, and 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.

Running bjobs without arguments will list all your currently running, pending, and completing jobs:

	bjobs

or for a particular job

	bjobs JOBID

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.

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

	bpeek JOBID

If you wish to monitor them continuously, use the -f option, and type ctrl-C to cancel this.

Finally, the bhist command will allow you to see current and past information on jobs. For current information:

	bhist

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):

	bhist -a

Killing Jobs

If for any reason, you need to kill a job that you've submitted, just use the bkill command with the job ID:

	bkill JOBID

If things have really gone haywire and you need to kill all your jobs, give the jobID 0:

	bkill 0

To kill all jobs only in a particular queue, use the -q option:

	bkill -q normal 0