Next, get the name of the local machine serving your display monitor:
$ hostname
mymachine
Then, use the host name of your local machine to retrieve its IP address:
$ host mymachine
mymachine has address 14.26.206.134
Step 2. Logging in to HP XC SystemNext, you need to log in to a login node on the HP XC system. For example:
$ ssh
Once logged in to the HP XC system, you can start an X terminal session using SLURM or LSF. Both methods are described in the following sections.
Step 3. Running an X terminal Session Using SLURMThis section shows how to create an X terminal session on a remote node using SLURM. First, check the available nodes on the HP XC system. For example:
$ sinfo
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
lsf | up infinite | 2 | idle n[46,48] |
According to the information returned about this HP XC system, SLURM has one node available for use, n47.
Start an X terminal session on this node, using the information you obtained about your display server to direct output back to it. For example:
$ srun
The options used in this command are:
srun | run the job on 1 node |
xterm | the job is an X terminal session |
monitor’s display server address |
Once the job starts, an X terminal session appears on your desktop from the available remote HP XC node. You can verify that the X terminal session is running on a compute node with the hostname command. For example:
$ hostname
n47
You can verify that SLURM has allocated the job as you specified. For example:
$ sinfo |
|
|
|
|
|
|
|
PARTITION AVAIL TIMELIMIT NODES | STATE NODELIST |
|
| ||||
lsf | up | infinite | 2 | idle n[46,48] |
|
| |
$ squeue |
|
|
|
|
|
| |
JOBID | PARTITION | NAME | USER | ST | TIME | NODES | NODELIST |
135 | srun | xterm | username | R | 0:13 | 1 | n47 |
Exiting from the X terminal session ends the SLURM job.