Platform LSF Reference Version 6.2

Environment Variable Reference
Platform LSF Reference
272
See Also
See “lsf.conf” under “LSF_LICENSE_FILE” on page 553
LS_EXEC_T
Syntax
LS_EXEC_T= START | END | CHKPNT | JOB_CONTROLS
Description
Indicates execution type for a job. LS_EXEC_T is set to:
START or END for a job when the job begins executing or when it completes
execution
CHKPNT when the job is checkpointed
JOB_CONTROLS when a control action is initiated
Where defined
Set by sbatchd during job execution
LS_JOBPID
Description
The process ID of the job.
Where defined
During job execution, sbatchd sets LS_JOBPID to be the same as the process ID
assigned by the operating system.
LS_LICENSE_SERVER_feature
Syntax
LS_LICENSE_SERVER_feature="domain:server:num_available ..."
server is of the format port@host
Description
The license server information provided to the job. The purpose of this environment
variable is to provide license server information to the job.
Where defined
During the license job execution, sbatchd sets LS_LICENSE_SERVER_feature to be
the same as the license server information defined in the job’s
rusage string. This is
only used by the job and logged in the
mbatchd log file if DEBUG1 and
LC_LICSCHED are defined in
lsf.conf.
LS_SUBCWD
Description
The current working directory (cwd) of the submission host where the remote task
command was executed.
The way this parameter is set by LSF is as follows:
1
LSF looks for the PWD environment variable. If it finds it, sets LS_SUBCWD to
PWD.
2
If the PWD environment variable does not exist, LSF looks for the CWD
environment variable. If it finds CWD, sets LS_SUBCWD to CWD.
3
If the CWD environment variable does not exist, LSF calls the getwd() system
function to retrieve the current working directory path name. LSF sets
LS_SUBCWD to the value that is returned.
Where defined Set by sbatchd
LSB_CHKPNT_DIR
Syntax
LSB_CHKPNT_DIR=checkpoint_dir/job_ID