Command output formatting
The following new features are related to the LSF command output.
Customize host and queue information output
Like the bjobs -o option, you can now also customize specific fields that the bhosts and bqueues commands display by using the -o command option. This allows you to create a specific output format that shows all the required information, which allows you to easily parse the information by using custom scripts or to display the information in a predefined format.
You can also specify the default output formatting of the bhosts and bqueues commands by specifying the LSB_BHOSTS_FORMAT and LSB_BQUEUES_FORMAT parameters in the lsf.conf file, or by specifying the LSB_BHOSTS_FORMAT and LSB_QUEUES_FORMAT environment variables.
View customized information output in JSON format
With this release, you can view customized job, host, and queue information in JSON format by using the new -json command option with the bjobs, bhosts, and bqueues commands. Since JSON is a customized output format, you must use the -json option together with the -o option.
View time in customized job information output in hh:mm:ss format
You can now view times in customized job information in hh:mm:ss format by using the new -hms command option with the bjobs command. Since the hh:mm:ss time format is a customized output format, you must use the -hms option together with the -o or -o -json command options.
You can also enable the hh:mm:ss time format as the default time format for customized job information by specifying the LSB_HMS_TIME_FORMAT parameter in the lsf.conf file, or by specifying the LSB_HMS_TIME_FORMAT environment variable.
If these parameters or options are not set, the default output time for customized output is in seconds.