Platform LSF Administration Guide Version 6.2
Using esub
Administering Platform LSF
500
# Deny userC the ability to submit a job
if [ $USER="userC" ]; then
echo "You are not permitted to submit a job."
exit $LSB_SUB_ABORT_VALUE
fi
Using bmod and brestart commands with mesub
You can use the bmod command to modify job submission parameters, and brestart
to restart checkpointed jobs. Like
bsub, bmod and brestart also call mesub, which
in turn invoke any existing
esub executables in LSF_SERVERDIR. bmod and
brestart cannot make changes to the job environment through mesub and esub.
Environment changes only occur when
mesub is called by the original job submission
with
bsub.
Using multiple esub (mesub)
LSF provides a master esub (LSF_SERVERDIR/mesub) to handle the invocation of
individual application-specific
esub executables and the job submission requirements
of your applications.
Use the
-a option of bsub to specify the application you are running through LSF.
For example, to submit a FLUENT job:
bsub -a fluent
bsub_options
fluent_command
The method name fluent, uses the esub for FLUENT jobs
(
LSF_SERVERDIR/esub.fluent), which sets the checkpointing method
LSB_ECHKPNT_METHOD="fluent" to use the echkpnt.fluent and
erestart.fluent.
LSB_ESUB_METHOD (lsf.conf)
To specify a mandatory esub method that applies to all job submissions, you can
configure LSB_ESUB_METHOD in
lsf.conf.
LSB_ESUB_METHOD specifies the name of the
esub method used in addition to any
methods specified in the
bsub -a option.
For example,
LSB_ESUB_METHOD="dce fluent" defines DCE as the mandatory
security system, and FLUENT as the mandatory application used on all jobs.
Compatibility note
After LSF version 5.1, the value of -a and LSB_ESUB_METHOD must
correspond to an actual esub file in LSF_SERVERDIR. For example, to use
bsub -a fluent, the file esub.fluent must exist in LSF_SERVERDIR.
How master esub invokes application-specific esubs
bsub invokes mesub at job submission, which calls esub programs in this order:
1
Mandatory esub programs defined by LSB_ESUB_METHOD
2
Any existing executable named LSF_SERVERDIR/esub
3
Application-specific esub programs in the order specified in the bsub -a option