Platform LSF Reference Version 6.2

lsb.hosts
Platform LSF Reference
359
When a leased-in host joins the cluster, the host name is in the form of
host@cluster. For these hosts, only the host part of the host name is subject to
pattern definitions.
You can use the following special characters to specify host group members:
Use a tilde (~) to exclude specified hosts or host groups from the list.
Use an asterisk (*) as a wildcard character to represent any number of characters.
Use square brackets with a hyphen ([integer1 - integer2]) to define a range of non-
negative integers at the end of a host name. The first integer must be less than the
second integer.
Use square brackets with commas ([integer1, integer2 ...]) to define individual non-
negative integers at the end of a host name.
Use square brackets with commas and hyphens (for example, [integer1 - integer2,
integer3
, integer4 - integer5]) to define different ranges of non-negative integers at
the end of a host name.
Restrictions
You cannot use more than one set of square brackets in a single host group
definition.
The following example is not correct:
... (hostA[1-10]B[1-20] hostC[101-120])
The following example is correct:
... (hostA[1-20] hostC[101-120])
You cannot define subgroups that contain wildcards and special characters. The
following definition for
groupB is not correct because groupA defines hosts with
a wildcard:
Begin HostGroup
GROUP_NAME GROUP_MEMBER
groupA (hostA*)
groupB (groupA)
End HostGroup
Example HostGroup Sections
Example 1
Begin HostGroup
GROUP_NAME GROUP_MEMBER
groupA (hostA hostD)
groupB (hostF groupA hostK)
groupC (!)
End HostGroup
This example defines three host groups:
groupA includes hostA and hostD.
groupB includes hostF and hostK, along with all hosts in groupA.
The group membership of groupC will be retrieved via egroup.