Getting name of execution host?

Is $PBS_MOM_NODE_NAME the way one would access the hostname(s) of the node(s) on which a job is running from inside the job?

It would be $PBS_NODEFILE (this would be automatically generated by PBS Pro) , in this file the first node(hostname[s]) listed would be the mother superior in case of a MPI or multi-node jobs, rest of the nodes listed would be sister nodes.

simple test:
qsub -l select=2:ncpus=2 -l place=scatter -I
$ you get a console, at the console type echo $PBS_NODEFILE;cat $PBS_NODEFILE
exit ; to exit the job

qsub -l select=2:ncpus=2:mpiprocs=2 -l place=scatter -I
$ you get a console, at the console type echo $PBS_NODEFILE;cat $PBS_NODEFILE

Hope this helps

1 Like

Perfect - thank you. For those that come after me, there is information in section 10.13.4.2 Options for pbs_mpirun of the big book - page 664 or AG-460.

1 Like