A.6 submitting an interactive job with lsf-hpc, Run the job, Show the environment – HP XC System 3.x Software User Manual
Page 130: Submit the job, Show the job allocation
srun hostname
srun uname -a
Run the job:
$ bsub -I -n4 myjobscript.sh
Job <1006> is submitted to default queue
<
<
n14
n14
n16
n16
Linux n14 2.4.21-15.3hp.XCsmp #2 SMP date and time stamp
ia64 ia64 ia64 GNU/Linux
Linux n14 2.4.21-15.3hp.XCsmp #2 SMP date and time stamp
ia64 ia64 ia64 GNU/Linux
Linux n16 2.4.21-15.3hp.XCsmp #2 SMP date and time stamp
ia64 ia64 ia64 GNU/Linux
Linux n16 2.4.21-15.3hp.XCsmp #2 SMP date and time stamp
ia64 ia64 ia64 GNU/Linux
A.6 Submitting an Interactive Job with LSF-HPC
This example shows how to submit a batch interactive job to LSF-HPC with the bsub -Ip
command. When you specify the -Ip option, bsub submits a batch interactive job and creates
a pseudo-terminal when the job starts. A new job cannot be submitted until the interactive job
is completed or terminated.
Show the environment:
$ lsid
Platform LSF HPC version number for SLURM, date and time stamp
Copyright 1992-2006 Platform Computing Corporation
My cluster name is penguin
My master name is lsfhost.localdomain
$ sinfo
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
lsf up infinite 4 idle n[13-16]
$ lshosts
HOST_NAME type model cpuf ncpus maxmem maxswp server RESOURCES
lsfhost.loc SLINUX6 DEFAULT 1.0 8 1M - Yes (slurm)
$ bhosts
HOST_NAME STATUS JL/U MAX NJOBS RUN SSUSP USUSP RSV
lsfhost.loc ok - 8 0 0 0 0 0
$ sinfo
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
lsf up infinite 4 idle n[13-16]
Submit the job:
$ bsub -n8 -Ip /bin/sh
Job <1008> is submitted to default queue
<
<
Show the job allocation:
$ sinfo
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
lsf up infinite 4 alloc n[13-16]
130
Examples