Platform LSF Administration Guide Version 6.2

Chapter 6
Managing Jobs
Administering Platform LSF
155
% bhist -l 105
Job <105>, User <user1>, Project <default>, Job Group </risk_group>, Command
<myjob>
Wed May 14 15:24:07: Submitted from host <hostA>, to Queue <normal>, CWD
<$HOME/lsf51/5.1/sparc-sol7-64/bin>;
Wed May 14 15:24:10: Parameters of Job are changed:
Job group changes to: /risk_group/portfolio2/monthly;
Wed May 14 15:24:17: Dispatched to <hostA>;
Wed May 14 15:24:17: Starting (Pid 8602);
...
Terminating (bkill)
Use the -g option of bkill and specify a job group path to terminate jobs in a job
group. For example,
% bkill -g /risk_group 106
Job <106> is being terminated
Use job ID 0 (zero) to terminate all jobs in a job group:
% bkill -g /risk_group 0
Job <1413> is being terminated
Job <1414> is being terminated
Job <1415> is being terminated
Job <1416> is being terminated
bkill only kills jobs in the job group you specify. It does not kill jobs in lower level job
groups in the path. For example, jobs are attached to job groups
/risk_group and
/risk_group/consolidate:
% bsub -g /risk_group myjob
Job <115> is submitted to default queue <normal>.
% bsub -g /risk_group/consolidate myjob2
Job <116> is submitted to default queue <normal>.
The following bkill command only kills jobs in /risk_group, not the subgroup
/risk_group/consolidate:
% bkill -g /risk_group 0
Job <115> is being terminated
% bkill -g /risk_group/consolidate 0
Job <116> is being terminated
Deleting (bgdel)
Use bgdel command to remove a job group. The job group cannot contain any jobs.
For example:
% bgdel /risk_group
Job group /risk_group is deleted.
deletes the job group /risk_group and all its subgroups.