NERSCPowering Scientific Discovery Since 1974

Running Interactive Batch Jobs

You cannot login to the PDSF batch nodes directly but you can run an interactive session on a batch node using either qlogin or qsh. This can be useful if you are doing something that is potentially disruptive or if the interactive nodes are overloaded.

qlogin will give you an interactive session in the same window as your original session on PDSF, however, you must have your ssh keys in placeDue to system limitations there is a small (but important) difference in the user environment you get when you use qlogin.  When you receive a shell prompt with qlogin, your CHOS environment is not set up for you. In order to set up the CHOS environment of your choice you will need to manually chos into the chos environment of your choice:

setenv CHOS sl53; /usr/bin/chos

qsh will open a new xterm on the batch node assigned to your job (this requires you have X enabled).  To use qsh, you MUST login to the system with X-forwarding enabled. You can do this by specifying the "-Y" option to ssh on your remote computer as follows:

ssh -Y pdsf.nersc.gov
ActionHow to do itComment
Start an interactive session on a batch node qsh or qlogin Note that batch system commands like qstat are not available on the batch nodes.
Start an interactive session on a specific batch node

qsh -l h=pc<#> -now no

qlogin -l h=pc<#> -now no

replace <#> with a node of your choice,
"-now no" means that you are willing to wait if the node of choice is not immediately available
Start an interactive session in the debug queue

qsh -l debug=1 -now no

qlogin -l debug=1 -now no

This is useful when the cluster is full. There are 16 slots available and the number could be increased if there is demand. Limit of 1 session per user in this mode please.