Lines Matching refs:host
20 : generate local host info
22 # genlocal [options] [host ...]
75 '-?') print -u2 "Usage: $0 [-hnv] [-f share-file] [-r rsh-path] [-t timeout] [host ...]"; exit 1 ;;
106 for host in $(egrep -v '^#' $file)
108 "") server=$host ;;
109 *) server="$server|$host" ;;
112 hostname=$(package host name)
154 for host
155 do case $host in
156 local|localhost) host=$hostname ;;
159 *" $host "*) continue ;;
161 hosts="$hosts $host"
162 $verbose -n "$host "
163 case $host in
165 package host name type cpu rating
167 *) if ping -c 1 -w 4 $host >/dev/null 2>&1
168 then $rsh $host bin/package host name type cpu rating &
180 done | while read host type cpu rating
182 host=${host%%.*}
183 eval "case '$host' in
187 print $host" "type=$type" "${rating}${idle:+" idle=$idle"}${cpu:+" cpu=$cpu"}
191 while read host type rate attr
193 h[n]=$host
245 } | sort -b +1 -2 +2.7n -3 +0 -1 | while read host type attr
248 print '# local host attributes'
260 case $host in
274 print $host"$tab1"$type"$tab2$attr"