Platform LSF Running Jobs Version 6.2
Viewing Job History (bhist)
Running Jobs with Platform LSF
56
Viewing history of jobs not listed in active event log
LSF periodically backs up and prunes the job history log. By default, bhist only
displays job history from the current event log file. You can use
bhist -n
num_logfiles to display the history for jobs that completed some time ago and are
no longer listed in the active event log.
bhist -n num_logfiles
The -n num_logfiles option tells the bhist command to search through the
specified number of log files instead of only searching the current log file.
Log files are searched in reverse time order. For example, the command
bhist -n 3
searches the current event log file and then the two most recent backup files.
Examples
Viewing chronological history of jobs
By default, the bhist command displays information from the job event history file,
lsb.events, on a per job basis.
bhist -t
The -t option of bhist can be used to display the events chronologically instead of
grouping all events for each job.
bhist -T
The -T option allows you to select only those events within a given time range.
For example, the following displays all events which occurred between 14:00 and 14:30
on a given day:
% bhist -t -T 14:00,14:30
Wed Oct 22 14:01:25: Job <1574> done successfully;
Wed Oct 22 14:03:09: Job <1575> submitted from host to Queue , CWD , User ,
Project , Command , Requested Resources ;
Wed Oct 22 14:03:18: Job <1575> dispatched to ;
Wed Oct 22 14:03:18: Job <1575> starting (Pid 210);
Wed Oct 22 14:03:18: Job <1575> running with execution home , Execution CWD ,
Execution Pid <210>;
Wed Oct 22 14:05:06: Job <1577> submitted from host to Queue, CWD , User ,
Project , Command , Requested Resources ;
Wed Oct 22 14:05:11: Job <1577> dispatched to ;
Wed Oct 22 14:05:11: Job <1577> starting (Pid 429);
Wed Oct 22 14:05:12: Job <1577> running with execution home, Execution CWD ,
Execution Pid <429>;
Wed Oct 22 14:08:26: Job <1578> submitted from host to Queue, CWD , User ,
Project , Command;
Wed Oct 22 14:10:55: Job <1577> done successfully;
Wed Oct 22 14:16:55: Job <1578> exited;
Wed Oct 22 14:17:04: Job <1575> done successfully;
bhist -n 1
searches the current event log file lsb.events
bhist -n 2
searches lsb.events and lsb.events.1
bhist -n 3
searches lsb.events, lsb.events.1, lsb.events.2
bhist -n 0
searches all event log files in LSB_SHAREDIR