HP XC System Software Administration Guide Version 3.2

Example 16-3 Basic Job Launch Without the JOB_STARTER Script Configured
$ bsub -I hostname
Job <20> is submitted to default queue <normal>.
<<Waiting for dispatch...>>
<<starting on lsfhost.localdomain>>
n120
Example 16-4 is a similar example, but 20 processors are reserved.
Example 16-4 Launching Another Job Without the JOB_STARTER Script Configured
$ bsub -I -n20 hostname
Job <21> is submitted to default queue <normal>.
<<Waiting for dispatch...>>
<<starting on lsfhost.localdomain>>
n120
In both of the previous examples, processors were reserved but not used. To ensure that a job is
launched properly on the reserved nodes without the JOB_STARTER script configured, the user
must preface each command with either the srun command or the mpirun -srun command,
as shown in Example 16-5 and Example 16-6.
Example 16-5 Launching a Job Without the JOB_STARTER Script Using srun
$ bsub -I srun hostname
Job <22> is submitted to default queue <normal>.
<<Waiting for dispatch...>>
<<starting on lsfhost.localdomain>>
n99
Example 16-6 Launching a Job Without the JOB_STARTER Script Using mpirun
$ bsub -I -n4 mpirun -srun hostmpi
Job <23> is submitted to default queue <normal>.
<<Waiting for dispatch...>>
<<starting on lsfhost.localdomain>>
task 0 running on n1
task 1 running on n1
task 2 running on n2
task 3 running on n2
Example 16-7 illustrates launching the same job as in Example 16-3, but with the JOB_STARTER
script configured.
Example 16-7 Basic Job Launch with the JOB_STARTER Script Configured
$ bsub -I hostname
Job <24> is submitted to default queue <normal>.
<<Waiting for dispatch...>>
<<starting on lsfhost.localdomain>>
n99
16.8 Monitoring and Controlling LSF-HPC with SLURM Jobs
All the standard LSF commands for monitoring a job are supported. The bjobs command reports
the status of a job. The following is an example of the bjobs command:
$ bjobs
JOBID USER STAT QUEUE FROM_HOST EXEC_HOST JOB_NAME SUBMIT_TIME
116 lsfadmi RUN normal lsfhost.loc 8*lsfhost.l * sleep 50 date time
198 Managing LSF