Skip to main content

bhist

info

This command is supported starting from fsched-10.87.

Overview

bhist displays job history information.

Parameters

OptionDescriptionKey Differences
-aShow completed and unfinished job informationNo difference
-bBrief formatNo difference
-CShow jobs completed/exited within the specified time intervalNo difference
-dShow completed job informationNo difference
-DShow jobs dispatched within the specified time intervalNo difference
-eShow exited job informationNo difference
-hPrint help informationProvides more detailed help information
-JShow jobs with the specified job nameNo difference
-JdFilter by job descriptionNo difference
-lLong format with detailed job informationDetails listed in later sections
-mShow jobs dispatched to the specified hostNo difference
-pShow pending job informationNo difference
-PShow jobs belonging to the specified projectNo difference, project maps to wckey
-qShow jobs submitted to the specified queueNo difference
-rShow running job informationNo difference
-sShow suspended job informationNo difference
-SShow jobs submitted within the specified time intervalNo difference
-uShow jobs submitted by the specified userNo difference
-VPrint version informationNo difference
-wWide formatNo difference

Default Output Fields

FieldDescriptionKey Differences
Time SummarySummary of time spent in different job states
- PENDTotal wait time for the job (excluding user suspend time)No difference
- PSUSPTotal user suspend time while pendingPending job suspension not supported
- RUNTotal run time for the jobNo difference
- USUSPTotal user suspend time after dispatchShows suspend time without distinguishing user vs system suspend
- SSUSPTotal system suspend time after dispatchDummy value is 0
- UNKWNTotal time in unknown stateDummy value is 0
- TOTALTotal time across all statesShows PEND+RUN+USUSP

Output Fields for -l

FieldDescriptionKey Differences
ProjectProject of the submitted jobNo difference, project maps to wckey
CommandJob commandCommand is unavailable after the job has been completed for some time
Requested ResourcesFull resource requirement string from bsubOnly rusage[mem=xxx] is shown
Execution CWDActual working directory during job executionNo difference
Effective RES_REQEffective resource requirements after scheduler parsing or constructionselect and order are dummy values; rusage shows the mem value
Terminated jobsExit reason for terminated jobsExit reason is a dummy value
Interactive jobsSpecial information for interactive jobsOutput also includes CWD, home
Dispatched TasksAllocated task count and hostsNo difference
Allocated SlotsAllocated slot count and hosts when LSB_ENABLE_HPC_ALLOCATION=YNo difference
PidJob process IDPid is unavailable after the job has been completed for some time
Suspend event timeTime when the job was suspendedSuspend time is not available; estimated as a single suspend event
Memory usage informationPeak and average memory usageNo difference
Submit hostSubmission hostSubmit host is unavailable after the job has been completed for some time
QueueQueue nameNo difference
Job DescriptionJob descriptionNo difference

job_id Filters

FilterDescriptionKey Differences
None (default)Show all historical jobsTo avoid database pressure from too many jobs, the default query is limited to the past week. You can set the range via -C. -D and -S still query the past week and filter within the results.
job_ID...Restore one or more jobs with the specified id.No difference
job_ID[index_list]...Restore one or more jobs with the specified id and index_list.No difference

Examples

  1. Show a specific job

    bhist 11301
  2. Filter jobs by user

    bhist -u test
  3. Show jobs from the past day

    bhist -C .-1, -a

Notes

  • To avoid database pressure from too many jobs, the wrapper limits the default query to the past week. You can set the range via -C.
  • If there are many jobs in the query range, database pressure is still possible.