Setting bld daemon message log to debug level

The message log level for LSF daemons is set in lsf.licensescheduler with the parameter LS_LOG_MASK. To include debugging messages, set LS_LOG_MASK to one of:

  • LOG_DEBUG

  • LOG_DEBUG1

  • LOG_DEBUG2

  • LOG_DEBUG3

By default, LS_LOG_MASK=LOG_WARNING, and debugging messages are not displayed.

The debugging log classes for License Scheduler daemons is set in lsf.licensescheduler with the parameter LS_DEBUG_BLD.

The location of log files is specified with the parameter LSF_LOGDIR in lsf.conf.

You can use the and bladmin command to temporarily change the class, log file, or message log level for the bld daemon without changing lsf.licensescheduler.

How the message log level takes effect

The message log level you set will only be in effect from the time you set it until you turn it off or the daemon stops running, whichever is sooner. If the daemon is restarted, its message log level is reset back to the value of LS_LOG_MASK and the log file is stored in the directory specified by LSF_LOGDIR.

Debug command for daemons

The following command sets temporary message log level options for bld:

bladmin blbddebug [-c class_name] [-l debug_level ] [-f logfile_name] [-o]

If bladmin blddebug is used without any options, the following default values are used:

  • class_name=0 (no additional classes are logged)

  • debug_level=0 (LOG_DEBUG level in parameter LS_LOG_MASK)

  • logfile_name=current LSF system log file in the LSF system log file directory, in the format daemon_name.log.host_name

For a detailed description of bladmin blddebug, see the Platform LSF Command Reference.

Debug command for blcollect

The following command sets temporary message log level options for blcollect:

bladmin blcdebug [-l debug_level ] [-f logfile_name] [-o] collector_name ... | all

If bladmin blcdebug is used without any options, the following default values are used:

  • debug_level=0 (LOG_DEBUG level in parameter LS_LOG_MASK)

  • logfile_name=current LSF system log file in the LSF system log file directory, in the format daemon_name.log.host_name

  • collector_name=default

For a detailed description of bladmin blcdebug, see the Platform LSF Command Reference.

Examples

bladmin blddebug -o 

Turn off temporary debug settings for bld on the local host (host from which the command was submitted) and reset them to the daemon starting state. The message log level is reset back to the value of LS_LOG_MASK and classes are reset to the value of LS_DEBUG_BLD. The log file is reset to the LSF system log file in the directory specified by LSF_LOGDIR in the format bld.log.host_name.

bladmin blddebug -l 1 -c "LC_TRACE LC_FLEX"

Log messages for bld running on the local host and set the log message level to LOG_DEBUG1. This command must be submitted from the host on which bld is running. The log class is LC_TRACE LC_FLEX.

bladmin blddebug -f hostB/myfolder/myfile 

Log messages for bld to the folder myfolder on the server hostB, with the file name myfile.bld.log.hostA. The debug level is the default value, LOG_DEBUG level in parameter LS_LOG_MASK.

bladmin blcdebug -l 2

The log mask of the default collector will be changed to LOG_DEBUG2..

bladmin blcdebug -l 3 all

The log mask of all collectors is changed to LOG_DEBUG3.

blcollect log messages

Messages logged by blcollect include the following information:

  • Time—The message log time.

  • blcollect name—The service domain name, which is the license server host name , accessed by blcollect as defined in lsf.licensescheduler

  • Status report for feature collection—blcollect information gathered successfully or not

  • Detailed information—the number of tokens, the name of tokens, the license server name for license tokens collected by blcollect.