Platform LSF Reference Version 6.2

cshrc.lsf and profile.lsf
Platform LSF Reference
299
For example, in csh or tcsh:
% source /usr/share/lsf/lsf_62/conf/cshrc.lsf
For example, in sh, ksh, or bash:
$ . /usr/share/lsf/lsf_62/conf/profile.lsf
Making your cluster available to users with cshrc.lsf and profile.lsf
To set up 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)
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_62/conf/cshrc.lsf
After running cshrc.lsf, use setenv to see the environment variable settings. For
example:
% setenv
PATH=/usr/share/lsf/lsf_62/6.2/sparc-sol7-
32/bin:/usr/share/lsf/lsf_62/6.2/sparc-sol7-
32/etc:/home/user1/bin:/local/private/user1/bin:/etc:/usr/etc:/usr/local/bin:/u
sr/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_62/6.2/man:/home/user1/man:/opt/SUNWhpc/man:/usr/man
:/usr/local/man:/usr/softbench/man:/usr/openwin/man:/opt/SUNWmotif/man:/opt/ans
ic/share/man:/opt/hpnp/man:/usr/share/man:/usr/share/catman
...
LSF_BINDIR=/usr/share/lsf/lsf_62/6.2/sparc-sol7-32/bin
LSF_SERVERDIR=/usr/share/lsf/lsf_62/6.2/sparc-sol7-32/etc
LSF_LIBDIR=/usr/share/lsf/lsf_62/6.2/sparc-sol7-32/lib
LD_LIBRARY_PATH=/usr/share/lsf/lsf_62/6.2/sparc-sol7-32/lib
XLSF_UIDDIR=/usr/share/lsf/lsf_62/6.2/sparc-sol7-32/lib/uid
LSF_ENVDIR=/usr/share/lsf/lsf_62/conf
For sh, ksh, or
bash
Add profile.lsf to the end of the .profile file for all users:
Copy the profile.lsf file into .profile
OR
Add a line similar to following to the end of .profile:
. /usr/share/lsf/lsf_62/conf/profile.lsf
After running profile.lsf, use the set command to see the environment variable
settings. For example: