Skip to main content

lshosts

Overview

lshosts displays static resource information for hosts in the cluster, including host names, architecture types, CPU information, and memory configuration.

Parameters

OptionDescriptionKey Differences
-wWide format (no field truncation)No difference
-lLong format (multi-line output) with additional fields and topology infoSee long format section
-TShow CPU topology information for hostsNUMA hierarchy information is omitted
-RShow only hosts that satisfy a resource requirement expressionSupports select clauses (ncpus/mem/type, supports defined(), supports &&/`
-sShow static shared resource informationAlways outputs "No shared resources"
-aShow all hostsDefault is already all hosts; this option is a no-op
-cnameInclude cluster name in outputOutputs "The -cname option is only supported on LSF/XL submission clusters"
-VPrint versionNo difference
-hPrint command usageProvides more detailed help information

Default Output Fields

FieldDescriptionKey Differences
HOST_NAMEHost nameNo difference
typeHost type (architecture)Architecture is converted to uppercase (for example X86_64)
modelHost model (CPU model)Hardcoded to "Intel"
cpufRelative CPU performance factorHardcoded to "2.5"
ncpusNumber of processors on the hostNo difference
maxmemMaximum physical memory available to user processes (with unit, such as 15.6G)No difference
maxswpTotal swap spaceHardcoded to "-" (not configured)
serverWhether the host is a server host (Yes/No)Hardcoded to "Yes"
RESOURCESBoolean resources and external static resource values defined for the hostHardcoded to "()" (no resources)

Output Fields for -l

FieldDescriptionKey Differences
ndisksNumber of local disk drives directly attached to the hostHardcoded to 1
maxtmpMaximum configured /tmp space (MB)No difference
rexpriExecution priority for remote jobs run by RES (-20 to 20)Hardcoded to 0
nprocsNumber of physical processors (sockets)No difference
ncoresCores per processorNo difference
nthreadsThreads per coreNo difference
RUN_WINDOWSTime window when LIM considers the host available for remote jobsHardcoded to "(always open)"
LOAD_THRESHOLDSThresholds for scheduling interactive jobsAll fields hardcoded to "-" (not configured)
RESOURCESHost static resources (long format)Shows "Not defined"

Filters

FilterDescriptionKey Differences
None (default)Show all host informationNo difference
host_name...Show information for specified hosts; multiple host names are space-separatedNo difference
cluster_nameShow hosts for the specified clusterMulti-cluster is not supported; only the current cluster is shown

Examples

  1. Show basic information for all hosts (default format)

    lshosts
  2. Show all hosts in wide format

    lshosts -w
  3. Show detailed information for all hosts in long format

    lshosts -l
  4. Show CPU topology information for hosts

    lshosts -T
  5. Show information for specific hosts

    lshosts compute1
    lshosts compute1 compute2 compute3
  6. Filter hosts with CPU count >= 16

    lshosts -R 'select[ncpus>=16]'
  7. Filter hosts with memory > 64GB (unit is MB)

    lshosts -R 'select[mem>65536]'
  8. Filter hosts by architecture

    lshosts -R 'select[type==X86_64]'
  9. Filter with combined conditions

    lshosts -R 'select[ncpus>=16 && mem>32768]'