You must
verify that the ports that SAS and LSF use for communication are accessible
from other machines. The ports might not be accessible if a firewall
is running on one or more machines. If firewalls are running, you
must open ports so that communication works between the LSF daemons
and the instances of SAS. Issue the
telnet
<
host><
port> command to determine whether a port
is open on a specific host.
The default
ports used in a grid are:
-
LSF: 6878, 6881, 6882, 7869, 7870,
7871, 7872
-
Grid Monitoring Service: 1976
-
Platform Process Manager: 1966
If you
need to change any port numbers, modify these files:
-
LSF ports: LSF_ENVDIR/conf/lsf.conf
and EGO_CONFDIR/ego.conf
-
Grid Monitoring Service port: gms/conf/ga.conf
-
Platform Process Manager port:
pm/conf/js.conf
If you
change the Grid Monitoring Service port, you must also change the
metadata for the Grid Monitoring Server. If you change the Platform
process Manager port, you must also change the metadata for the Job
Scheduler Server.
Ports
might be used by other programs. To check for ports that are in use,
stop the LSF daemons and issue the command
netstat
-an |
<
search-tool><
port>, where
search-tool is grep (UNIX) or findstr (Windows).
Check the output of the command for the LSF ports. If a port is in
use, reassign the port or stop the program that is using the port.
SAS assigns
random ports for connections, but you can restrict the range of ports
SAS uses by using the
-tcpportfirst <first-port>
and the
-tcpportlast <last-port>
options. You can specify these options in the SAS
configuration file or on the SAS command line. For remote sessions,
you must specify these options either in the grid command script (sasgrid.cmd
on Windows or sasgrid on UNIX) or in the
Command field in the logical grid server definition in metadata. For example,
adding the following parameters to the SAS command line in the grid
script restricts the ports that the remote session uses to between
5000 and 5005:
-tcpportfirst 5000 -tcpportlast 5005