Platform LSF Administration Guide Version 6.2
Chapter 6
Managing Jobs
Administering Platform LSF
153
◆
% bgadd /risk_group
creates a job group named risk_group under the root group /.
◆
% bgadd /risk_group/portfolio1
creates a job group named portfolio1 under job group /risk_group.
◆
% bgadd /risk_group/portfolio1/current
creates a job group named current under job group
/risk_group/portfolio1.
If the group hierarchy
/risk_group/portfolio1/current does not exist, LSF
checks its parent recursively, and if no groups in the hierarchy exist, all three job groups
are created with the specified hierarchy.
Submitting jobs under a job group
Use the -g option of bsub to submit a job into a job group. The job group does not
have to exist before submitting the job. For example:
% bsub -g /risk_group/portfolio1/current myjob
Job <105> is submitted to default queue.
Submits myjob to the job group /risk_group/portfolio1/current.
If group
/risk_group/portfolio1/current exists, job 105 is attached to the job
group.
If group
/risk_group/portfolio1/current does not exist, LSF checks its
parent recursively, and if no groups in the hierarchy exist, all three job groups are created
with the specified hierarchy and the job is attached to group.
-g and -sla options
You cannot use the -g option with -sla. A job can either be attached to a job
group or a service class, but not both.
Viewing jobs in job groups
bjgroup command
Use the bjgroup command to see information about jobs in specific job groups.
% bjgroup
GROUP_NAME NJOBS PEND RUN SSUSP USUSP FINISH
/fund1_grp 5 4 0 1 0 0
/fund2_grp 11 2 5 0 0 4
/bond_grp 2 2 0 0 0 0
/risk_grp 2 1 1 0 0 0
/admi_grp 4 4 0 0 0 0
bjobs command
Use the -g option of bjobs and specify a job group path to view jobs attached to the
specified group.
% bjobs -g /risk_group
JOBID USER STAT QUEUE FROM_HOST EXEC_HOST JOB_NAME SUBMIT_TIME
113 user1 PEND normal hostA myjob Jun 17 16:15
111 user2 RUN normal hostA hostA myjob Jun 14 15:13
110 user1 RUN normal hostB hostA myjob Jun 12 05:03
104 user3 RUN normal hostA hostC myjob Jun 11 13:18
bjobs -l displays the full path to the group to which a job is attached: