LSF Version 7.3 - Platform LSF Configuration Reference
•
EGO_BINDIR
•
EGO_CONFDIR
•
EGO_ESRVDIR
•
EGO_LIBDIR
•
EGO_LOCAL_CONFDIR
•
EGO_SERVERDIR
•
EGO_TOP
See the Platform EGO Reference for more information about these variables.
Setting the LSF environment with cshrc.lsf and profile.lsf
Before using LSF, you must set the LSF execution environment.
After logging on to an LSF host, use one of the following shell environment files to set your
LSF environment:
•
For example, in csh or tcsh:
source /usr/share/lsf/lsf_7/conf/cshrc.lsf
•
For example, in sh, ksh, or bash:
. /usr/share/lsf/lsf_7/conf/profile.lsf
Making your cluster available to users with cshrc.lsf and profile.lsf
To set the LSF user environment, run one of the following two shell files:
•
LSF_CONFDIR/cshrc.lsf (for csh, tcsh)
•
LSF_CONFDIR/profile.lsf (for sh, ksh, or bash)
Tip:
LSF administrators should make sure all LSF users include one
of these files at the end of their own .cshrc or .profile file,
or run one of these two files before using LSF.
For csh or tcsh
Add cshrc.lsf to the end of the .cshrc file for all users:
•
Copy the cshrc.lsf file into .cshrc, or
•
Add a line similar to the following to the end of .cshrc:
source /usr/share/lsf/lsf_7/conf/cshrc.lsf
After running cshrc.lsf, use setenv to see the environment variable settings. For example:
setenv PATH=/usr/share/lsf/lsf_7/7.0/linux2.6-glibc2.3-x86/bin:/usr/share/lsf/lsf_7/7.0/linux2.6-
glibc2.3-x86/etc:/home/user1/bin:/local/private/user1/bin:/etc:/usr/etc:/usr/local/bin:/usr/
local/sbin:/bin:/usr/bin:/usr/sbin:/opt/local/bin:/local/share/bin:/opt/gnu/bin:/sbin:/usr/bin/
X11:/usr/bsd:/usr/ucb:/local/bin/X11:/usr/hosts:/usr/openwin/bin:/usr/ccs/bin:/usr/vue/bin:.
... MANPATH=/usr/share/lsf/lsf_7/7.0/man:/home/user1/man:/opt/SUNWhpc/man:/usr/man:/usr/local/
man:/usr/softbench/man:/usr/openwin/man:/opt/SUNWmotif/man:/opt/ansic/share/man:/opt/hpnp/man:/
usr/share/man:/usr/share/catman
...
LSF_BINDIR=/usr/share/lsf/lsf_7/7.0/linux2.6-glibc2.3-x86/bin LSF_SERVERDIR=/usr/share/lsf/
lsf_7/7.0/linux2.6-glibc2.3-x86/etc LSF_LIBDIR=/usr/share/lsf/lsf_7/7.0/linux2.6-glibc2.3-x86/
lib LD_LIBRARY_PATH=/usr/share/lsf/lsf_7/7.0/linux2.6-glibc2.3-x86/lib XLSF_UIDDIR=/usr/share/
lsf/lsf_7/7.0/linux2.6-glibc2.3-x86/lib/uid LSF_ENVDIR=/usr/share/lsf/lsf_7/conf
Note:
cshrc.lsf and profile.lsf
126 Platform LSF Configuration Reference