scorehosts displays the names of hosts that are available in a
cluster. The shell environment variable SCBDSERV must be set
to the hostname where scoreboard cluster database server is running.
hostgroup can be the name of hostgroup sepcified in
the scorehosts.db(5)
cluster configuration file used by
scoreboard(8), one
of the hostname specified in the scorehosts.db file, or
a filename in which hostnames are listed.
Two or more hostgroups can be combined with one of the
operator "+", "~", ":", or "@".
- hostgroup+hostgroup
-
The two set of hostgroup specified are summed.
- hostgroup~hostgroup
-
The members of the latter hostgroup are excluded from the host
set specified by the first hostgroup.
- hostgroup:host_or_number
-
If host_or_number is a natural number N, then the first
N hosts are the resulting set. If host_or_number is a
hostname and is
a member of the hostgroup, then the host set from the first
host of the set specified by hostgroup to the host before
the host specified by host_or_number is the resulting set.
- hostgroup@host_or_number
-
If host_or_number is a natural number N, then the
host set consisting of the
N+1th host and the rest is the resulting set.
If host_or_number is a hostname and is
a member of the hostgroup, then the host set from the
host specified by host_or_number and the reset is the
resulting set.
The scorehosts program is used to expand the hostgroup
specification in
scout,
rsh-all,
kill-all and
sceptic programs.
The options available for scorehosts:
- -i
-
When specified, scorehosts outputs the host list ignoring
the defected host list specified with the sorehosts.db file.
- -r
-
When specified, defected host(s) are replaced with the spare host(s)
specified int the sorehosts.db file.
- -s
-
When specified, scorehosts outputs the host list specified in
the comand argument and the spare host(s) associated with the
specified host list.
- -d
-
When specified, scorehosts outputs only the defected host
list.
- -l
-
When specified, the output host list is separated with newline
(\n). In default, hosts are separated with a space (blank) character.
- -q
-
In default, scorehosts outputs the number of hosts at the
end of the host list. When this option is specified, the number
message will not be output.