HP XC System Software Administration Guide Version 3.1

The goal of these custom files is to source (only once) the appropriate LSF environment file:
$LSF_ENVDIR/cshrc.lsf for csh users, and $LSF_ENVDIR/profile.lsf for users of sh,
bash, and other shells based on sh.
Create /etc/profile.d/lsf.sh and /etc/profile.d/lsf.csh on the HP XC system to
set up the LSF environment on HP XC. Using /shared/lsf for the value of LSF_TOP as an
example, the new files would resemble these:
# cat lsf.sh
case $PATH in
*-slurm/etc:*) ;;
*:/shared/lsf/*) ;;
*)
if [ -f /shared/lsf/conf/profile.lsf.xc ]; then
. /shared/lsf/conf/profile.lsf.xc
fi
esac
# cat lsf.csh
if ( "${path}" !~ *-slurm/etc* ) then
if ( -f /shared/lsf/conf/cshrc.lsf.xc ) then
source /shared/lsf/conf/cshrc.lsf.xc
endif
endif
NOTE: The profile.lsf.xc and cshrc.lsf.xc scripts do not exist yet. We will establish
them after installing LSF-HPC with SLURM in a future step. Be sure to replace /shared/lsf
with the location of LSF_TOP on your system. Note that the names of the setup files are appended
with .xc.
After installing LSF-HPC with SLURM, rename the setup files to avoid disturbing the existing
setup files. These new custom files /etc/profile.d/lsf.sh and /etc/profile.d/lsf.csh
must be propagated to every node in the HP XC system; this is done in an upcoming step.
A.4 HP XC Preparation 255