View cluster information

LSF provides commands for users to access information about the cluster.

Cluster information includes the cluster master host, cluster name, cluster resource definitions, cluster administrator, and so on.

To view the ...

Run ...

Version of LSF

lsid

Cluster name

lsid

Current master host

lsid

Cluster administrators

lsclusters

Configuration parameters

bparams


View LSF version, cluster name, and current master host

Run lsid to display the version of LSF, the name of your cluster, and the current master host:
lsid
Platform LSF 8 Jan 10 2011 
Copyright 1992-2011 Platform Computing Corporation 
  
My cluster name is cluster1 
My master name is hostA

View cluster administrators

Run lsclusters to find out who your cluster administrator is and see a summary of your cluster:
lsclusters
CLUSTER_NAME   STATUS   MASTER_HOST    ADMIN        HOSTS     SERVERS
cluster1       ok       hostA          lsfadmin     6         6

If you are using the LSF MultiCluster product, you will see one line for each of the clusters that your local cluster is connected to in the output of lsclusters.

View configuration parameters

  1. Run bparams to display the generic configuration parameters of LSF. These include default queues, job dispatch interval, job checking interval, and job accepting interval.
    bparams
    Default Queues:  normal idle
    MBD_SLEEP_TIME used for calculations: 20 seconds
    Job Checking Interval:  15 seconds
    Job Accepting Interval:  20 seconds
  2. Run bparams -l to display the information in long format, which gives a brief description of each parameter and the name of the parameter as it appears in lsb.params.
    bparams -l
    System default queues for automatic queue selection:
        DEFAULT_QUEUE = normal idle
    Amount of time in seconds used for calculating parameter values:
        MBD_SLEEP_TIME = 20 (seconds)
    The interval for checking jobs by slave batch daemon:
        SBD_SLEEP_TIME = 15 (seconds)
    The interval for a host to accept two batch jobs subsequently:
        JOB_ACCEPT_INTERVAL = 1 (* MBD_SLEEP_TIME)
    The idle time of a host for resuming pg suspended jobs:
        PG_SUSP_IT = 180 (seconds)
    The amount of time during which finished jobs are kept in core:
        CLEAN_PERIOD = 3600 (seconds)
    The maximum number of finished jobs that are logged in current event file:
        MAX_JOB_NUM = 2000
    The maximum number of retries for reaching a slave batch daemon:
        MAX_SBD_FAIL = 3
    The number of hours of resource consumption history:
        HIST_HOURS = 5
    The default project assigned to jobs.
        DEFAULT_PROJECT = default
    Sync up host status with master LIM is enabled:
    LSB_SYNC_HOST_STAT_LIM = Y
    MBD child query processes will only run on the following CPUs:
    MBD_QUERY_CPUS=1 2 3
  3. Run bparams -a to display all configuration parameters and their values in lsb.params.
    For example:
    bparams -a
    lsb.params configuration at Fri Jun 8 10:27:52 CST 2011
         MBD_SLEEP_TIME = 20
         SBD_SLEEP_TIME = 15
         JOB_ACCEPT_INTERVAL = 1
         SUB_TRY_INTERVAL = 60
         LSB_SYNC_HOST_STAT_LIM =  N
         MAX_JOBINFO_QUERY_PERIOD = 2147483647
         PEND_REASON_UPDATE_INTERVAL = 30

View daemon parameter configuration

Log on to a server host.

  1. Display all configuration settings for running LSF daemons.
    • Run lsadmin showconf to display all configured parameters and their values in lsf.conf or ego.conf for LIM.

    • Run badmin showconf to display all configured parameters and their values in lsf.conf or ego.conf for mbatchd and sbatchd.

    In a MultiCluster environment, the parameters apply to the local cluster only.

  2. Display mbatchd and root sbatchd configuration.
    • Run badmin showconf mbd to display the parameters configured in lsf.conf or ego.conf that apply to mbatchd.

    • Run badmin showconf sbd to display the parameters configured in lsf.conf or ego.conf that apply to root sbatchd.

Examples

  • Show mbatchd configuration:

    badmin showconf mbd
    MBD configuration at Fri Jun 8 10:27:52 CST 2011
         LSB_SHAREDIR=/scratch/dev/lsf/user1/0604/work
         LSF_CONFDIR=/scratch/dev/lsf/user1/0604/conf
         LSF_LOG_MASK=LOG_WARNING
         LSF_ENVDIR=/scratch/dev/lsf/user1/0604/conf
         LSF_EGO_DAEMON_CONTROL=N
  • Show sbatchd configuration on a specific host:

    badmin showconf sbd hosta
    SBD configuration for host <hosta> at Fri Jun 8 10:27:52 CST 2011
         LSB_SHAREDIR=/scratch/dev/lsf/user1/0604/work
         LSF_CONFDIR=/scratch/dev/lsf/user1/0604/conf
         LSF_LOG_MASK=LOG_WARNING
         LSF_ENVDIR=/scratch/dev/lsf/user1/0604/conf
         LSF_EGO_DAEMON_CONTROL=N
  • Show sbatchd configuration for all hosts:

    badmin showconf sbd all
    SBD configuration for host <hosta> at Fri Jun 8 10:27:52 CST 2011
         LSB_SHAREDIR=/scratch/dev/lsf/user1/0604/work
         LSF_CONFDIR=/scratch/dev/lsf/user1/0604/conf
         LSF_LOG_MASK=LOG_WARNING
         LSF_ENVDIR=/scratch/dev/lsf/user1/0604/conf
         LSF_EGO_DAEMON_CONTROL=N
    SBD configuration for host <hostb> at Fri Jun 8 10:27:52 CST 2011
         LSB_SHAREDIR=/scratch/dev/lsf/user1/0604/work
         LSF_CONFDIR=/scratch/dev/lsf/user1/0604/conf
         LSF_LOG_MASK=LOG_WARNING
         LSF_ENVDIR=/scratch/dev/lsf/user1/0604/conf
         LSF_EGO_DAEMON_CONTROL=N
  • Show lim configuration:

    lsadmin showconf lim
    LIM configuration at Fri Jun 8 10:27:52 CST 2010
         LSB_SHAREDIR=/scratch/dev/lsf/user1/0604/work
         LSF_CONFDIR=/scratch/dev/lsf/user1/0604/conf
         LSF_LOG_MASK=LOG_WARNING
         LSF_ENVDIR=/scratch/dev/lsf/user1/0604/conf
         LSF_EGO_DAEMON_CONTROL=N
  • Show lim configuration for a specific host:

    lsadmin showconf lim hosta
    LIM configuration for host <hosta> at Fri Jun 8 10:27:52 CST 2011
         LSB_SHAREDIR=/scratch/dev/lsf/user1/0604/work
         LSF_CONFDIR=/scratch/dev/lsf/user1/0604/conf
         LSF_LOG_MASK=LOG_WARNING
         LSF_ENVDIR=/scratch/dev/lsf/user1/0604/conf
         LSF_EGO_DAEMON_CONTROL=N
  • Show lim configuration for all hosts:

    lsadmin showconf lim all
    LIM configuration for host <hosta> at Fri Jun 8 10:27:52 CST 2011
         LSB_SHAREDIR=/scratch/dev/lsf/user1/0604/work
         LSF_CONFDIR=/scratch/dev/lsf/user1/0604/conf
         LSF_LOG_MASK=LOG_WARNING
         LSF_ENVDIR=/scratch/dev/lsf/user1/0604/conf
         LSF_EGO_DAEMON_CONTROL=N
    LIM configuration for host <hostb> at Fri Jun 8 10:27:52 CST 2011
         LSB_SHAREDIR=/scratch/dev/lsf/user1/0604/work
         LSF_CONFDIR=/scratch/dev/lsf/user1/0604/conf
         LSF_LOG_MASK=LOG_WARNING
         LSF_ENVDIR=/scratch/dev/lsf/user1/0604/conf
         LSF_EGO_DAEMON_CONTROL=N