Platform LSF Reference Version 6.2

bsub
Platform LSF Reference
172
If -wa is specified, LSF sends the warning action to the job before the actual control
action is taken. This allows the job time to save its result before being terminated by the
job control action.
You can specify actions similar to the JOB_CONTROLS queue level parameter: send a
signal, invoke a command, or checkpoint the job.
The warning action specified by
-wa option overrides JOB_WARNING_ACTION in
the queue. JOB_WARNING_ACTION is used as the default when no command line
option is specified.
For example the following specifies that 2 minutes before the job reaches its run time
limit, an URG signal is sent to the job:
% bsub -W 60 -wt '2' -wa 'URG' myjob
-wt '[hour:]minute'
Specifies the amount of time before a job control action occurs that a job warning action
is to be taken. Job action warning time is not normalized.
A job action warning time must be specified with a job warning action in order for job
warning to take effect.
The warning time specified by the
bsub -wt option overrides
JOB_ACTION_WARNING_TIME in the queue.
JOB_ACTION_WARNING_TIME is used as the default when no command line
option is specified.
For example the following specifies that 2 minutes before the job reaches its run time
limit, an URG signal is sent to the job:
% bsub -W 60 -wt '2' -wa 'URG' myjob
-Zs
Spools a job command file to the directory specified by the JOB_SPOOL_DIR
parameter in
lsb.params, and uses the spooled file as the command file for the job.
By default, the command file is spooled to
LSB_SHAREDIR/cluster_name/lsf_cmddir. If the lsf_cmddir directory
does not exist, LSF creates it before spooling the file. LSF removes the spooled file when
the job completes.
If JOB_SPOOL_DIR in
lsb.params is specified, the -is option spools the
command file to the specified directory and uses the spooled file as the input file for the
job.
JOB_SPOOL_DIR must be readable and writable by the job submission user, and it
must be shared by the master host and the submission host. If the specified directory is
not accessible or does not exist,
bsub -is cannot write to the default directory
LSB_SHAREDIR/cluster_name/lsf_cmddir and the job will fail.
The
-Zs option is not supported for embedded job commands because LSF is unable
to determine the first command to be spooled in an embedded job command.
-h
Prints command usage to stderr and exits.