Question & Answer
Question
How to view a list of jobs submitted to a queue between a certain time period?
Answer
bhist can be used to get a list of jobs submitted to a queue between a certain time period. bhist uses lsb.events to get the job information by searching through the current lsb.events file. The -n option can be used to specify the number of lsb.events files to be searched. For example, -n 5 will search the last five lsb.events files, including the current one.
Here is a full example:
bhist -u all -q normal -n 5 -a -S 2018/1/16/00:01,2018/1/19/12:00
In this example:
-u all: looks for jobs submitted by all users
-q normal: looks for jobs submitted to the normal queue
-n 5: searches the last five lsb.events files (including the current one)
-a: shows all jobs (running, pending, completed, etc.). Otherwise, -S will only show running jobs
-S: searches for jobs submitted between 2018/1/16/00:01,2018/1/19/12:00
For more information regarding bhist, please visit this link: https://www.ibm.com/support/knowledgecenter/SSETD4_9.1.3/lsf_command_ref/bhist.1.html
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
isg3T1026880