% hosts --help
USAGE
    hosts               # lists all hosts
    hosts --list        # list all hosts with keys
    hosts [[-]key ..]   # list hosts with limits
    hosts --sh 'cmd'    # run 'cmd' in local shell (%s=hostname)
    hosts --rsh 'cmd'   # run 'cmd' in remote shell (%s=hostname)

EXAMPLES
    hosts               # print all hosts
    hosts --list        # print all hosts with keys
    hosts prod          # print all production hosts (ie. non-servers)
    hosts sgi           # print all sgis
    hosts sgi -tahoe    # print all sgis except tahoe
    hosts sgi -offline  # print all except offline hosts
    hosts sgi prod      # print all sgi production machines
    hosts linux prod    # print all linux production machines

REAL WORLD
    hosts prod --sh 'rdist -c /usr/nreal/license.dat %s:/usr/nreal/license.dat'
                        # rdist a license file to all prod machines


% hosts --list
# Host          Keys                                    Comments
backup          linux,noprod,adm                        # Backups server
inet1           linux,noprod,adm,server,timeserver      # Network server: time/dns/etc
ed              linux,noprod,adm,server,mailserver      # Evil Dead
sd              linux,noprod,adm,server                 # Scooby Doo
rf1             linux,prod,rf                           # render farm
rf2             linux,prod,rf                           # render farm
rf3             linux,prod,rf                           # render farm
rf4             linux,prod,rf                           # render farm
rf5             linux,prod,rf                           # render farm
rf6             linux,prod,rf                           # render farm
rf7             linux,prod,rf                           # render farm
rf8             linux,prod,rf                           # render farm
rf9             linux,prod,rf                           # render farm
rf10            linux,prod,rf                           # render farm
rf11            linux,prod,rf,offline                   # render farm
boyne           sgi,prod,license                        # octane, License + Alfred server
maxa            sgi,prod
mega            sgi,prod
exa             sgi,prod
xena            sgi,prod
dakini          sgi,prod
newsgi1         sgi,prod
newsgi2         sgi,prod
othello         sgi,prod,offline
ykaneko         sgi,prod
bwhit           sgi,prod
erco            sgi,prod

% hosts sgi
boyne
bwhit
dakini
erco
exa
maxa
mega
newsgi1
newsgi2
othello
xena
ykaneko

% hosts -sgi
backup
ed
inet1
rf1
rf10
rf11
rf2
rf3
rf4
rf5
rf6
rf7
rf8
rf9
sd

% hosts sgi --rsh 'echo hostname is `hostname`'
  boyne: hostname is boyne
  bwhit: hostname is bwhit
 dakini: hostname is dakini
   erco: hostname is erco
    exa: hostname is exa
   maxa: hostname is maxa
   mega: hostname is mega
newsgi1: hostname is newsgi1
newsgi2: hostname is newsgi2
othello: hostname is othello
   xena: hostname is xena
ykaneko: hostname is ykaneko