|
Article ID: 511
Last updated: 25 Mar, 2026
If you want to run an application on NAS systems with a license that resides on a local license server (not directly accessible from outside your local network), you can use SSH tunneling, also known as port forwarding. The examples below show you how to establish port forwarding and run your application on either a PFE or a NAS compute node. Note: The examples assume that the hostname of your local license server is license.abc.edu, which uses port 29810, and that you are connecting from your local system to pfe25. Be sure to replace these with the correct name and port number of your license server and the actual PFE you want to connect to. To find the hostname and port number of your local license server, check the setting of the LM_LICENSE_FILE environment variable on your local system or consult with your system administrator. Step 1. Connecting to PleiadesUse SSH to connect to pfe25 from your local system and establish remote port forwarding using the -R option, as follows:
where sfeX represents sfe[6-8]. In both cases, the port number listed before :license.abc.edu (the first 29810) is used by pfe25, while the port number listed after license.abc.edu: (the second 29810) is used by the license server. Note: We highly recommend using the same port number for both the PFE and the license server, as shown in the example, and that you use the number set in the LM_LICENSE_FILE environment variable on your local system. However, if you choose to use a different port number for the PFE, be sure to avoid using numbers 0-1024 (root privilege required), 5900 (on Mac systems, reserved for some Apple remote desktop products), 59xx (reserved for VNC) and 6000-6063 (reserved for local X window server). Step 2. Running Your ApplicationYou can now run your application on the PFE or on a NAS compute node via an interactive PBS session. Running Your Application on the PFEIn the same window where you connected to pfe25, set the environment variable LM_LICENSE_FILE to the port number you specified for pfe25 in your initial connection (i.e., the number before license.abc.edu), and then run your application:
Note: You can run both commands in a separate window that has a new connection to pfe24. However, in order for the connection to the license server to remain active, the first connection window (with the remote port forwarding) must remain open. Running Your Application on a Compute NodeIn the same window where you connected to pfe25—or in a new window with a connection to any PFE—submit an interactive PBS job to get into a compute node. On the compute node (for example, r135i3n5), establish local port forwarding by using the SSH -L option. Both the compute node and pfe25 should use the same port you specified for pfe25 in your initial SSH connection (i.e., the number before license.abc.edu). Then, run your application.
Note: In the SSH command line, the -N option tells SSH to do port forwarding only, without executing a remote command. The -f option tells SSH to go to the background just before a command is executed. For Applications that Require Two PortsConsult with your system administrator for the correct port numbers to use, or check your local LM_LICENSE_FILE settings. The following examples assume that the two ports needed are 29810 and 28500.
|