25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Interactive Batch Job Messaging<br />

Limitations<br />

Windows<br />

Chapter 32<br />

Interactive Jobs with bsub<br />

<strong>LSF</strong> can display messages to stderr or the Windows console when the<br />

following changes occur with interactive batch jobs:<br />

◆ Job state<br />

◆ Pending reason<br />

◆ Suspend reason<br />

Other job status changes, like switching the job’s queue, are not displayed.<br />

Interactive batch job messaging is not supported in a MultiCluster environment.<br />

Interactive batch job messaging is not fully supported on Windows. Only<br />

changes in the job state that occur before the job starts running are displayed.<br />

No messages are displayed after the job starts.<br />

Configuring interactive batch job messaging<br />

Cluster level<br />

User level<br />

Example messages<br />

Job in pending<br />

state<br />

Messaging for interactive batch jobs can be specified cluster-wide or in the user<br />

environment.<br />

To enable interactive batch job messaging for all users in the cluster, the <strong>LSF</strong><br />

administrator configures the following parameters in lsf.conf:<br />

◆ LSB_INTERACT_MSG_ENH=Y<br />

◆ (Optional) LSB_INTERACT_MSG_INTVAL<br />

LSB_INTERACT_MSG_INTVAL specifies the time interval, in seconds, in which<br />

<strong>LSF</strong> updates messages about any changes to the pending status of the job. The<br />

default interval is 60 seconds. LSB_INTERACT_MSG_INTVAL is ignored if<br />

LSB_INTERACT_MSG_ENH is not set.<br />

To enable messaging for interactive batch jobs, <strong>LSF</strong> users can define<br />

LSB_INTERACT_MSG_ENH and LSB_INTERACT_MSG_INTVAL as environment<br />

variables.<br />

The user-level definition of LSB_INTERACT_MSG_ENH overrides the definition<br />

in lsf.conf.<br />

The following example shows messages displayed when a job is in pending<br />

state:<br />

% bsub -Is -R "ls < 2" csh<br />

Job is submitted to default queue .<br />

<br />

><br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 407

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!