LSF Version 7.3 - Administering Platform LSF
Administering Platform LSF 597
Interactive Jobs with bsub
Interactive Batch Job Messaging
LSF can display messages to stderr or the Windows console when the following
changes occur with interactive batch jobs:
◆ Job state
◆ Pending reason
◆ Suspend reason
Other job status changes, like switching the job’s queue, are not displayed.
Limitations
Interactive batch job messaging is not supported in a MultiCluster environment.
Windows Interactive batch job messaging is not fully supported on Windows. Only changes
in the job state that occur before the job starts running are displayed. No messages
are displayed after the job starts.
Configure interactive batch job messaging
Messaging for interactive batch jobs can be specified cluster-wide or in the user
environment.
Cluster level 1 To enable interactive batch job messaging for all users in the cluster, the LSF
administrator configures the following parameters in
lsf.conf:
❖ LSB_INTERACT_MSG_ENH=Y
❖ (Optional) LSB_INTERACT_MSG_INTVAL
LSB_INTERACT_MSG_INTVAL specifies the time interval, in seconds, in
which LSF updates messages about any changes to the pending status of the job.
The default interval is 60 seconds. LSB_INTERACT_MSG_INTVAL is ignored
if LSB_INTERACT_MSG_ENH is not set.
User level 1 To enable messaging for interactive batch jobs, LSF users can define
LSB_INTERACT_MSG_ENH and LSB_INTERACT_MSG_INTVAL as
environment variables.
The user-level definition of LSB_INTERACT_MSG_ENH overrides the definition
in
lsf.conf.
Example messages
Job in pending
state
The following example shows messages displayed when a job is in pending state:
bsub -Is -R "ls < 2" csh
Job <2812> is submitted to default queue <normal>.
<<Waiting for dispatch ...>>
<< Job's resource requirements not satisfied: 2 hosts; >>
<< Load information unavailable: 1 host; >>