SCOREHOSTS(1)
USER COMMANDS
SCOREHOSTS(1)
NAME
scorehosts - output host list from host group specification

SYNOPSIS
scorehosts [-i|-r|-s|-d] [-l] [-q] [[-g[roup]] [hostgroup]

DESCRIPTION
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), or one of the hostname specified in the scorehosts.db file. Further, multiple hostgroups and/or hostnames can be specified when they are separated with the plus (+) symbole. If the name of hostgroup or host is preceded by tilde (~), then the host(group) is excluded from the host list preceded by the tilde (~).

By specifying the first hostname and/or the number hosts (from the first host, if specified), users can specify subset of hostgroup. The atmark (@) symbol after the hostgroup name and followed by a hostname specifies the first host of the subset in the hostgroup. The colom (:) symbol after the hostgroup name and followed by a number specifies the number of the hosts in the hostgroup.

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.

ENVIRONMENT
SCBDSERV
Set SCBDSERV to access the Cluster Database server

SEE ALSO
scorehosts.db(5), scoreboard(8), scout, rsh-all, kill-all, sceptic

$Id: scorehosts.html,v 1.3 2002/02/27 04:39:35 hori Exp $