2 ################################################################################
5 # Description: Displays statistical information about all machines
6 # Author: Andrew@DeFaria.com
7 # Created: Fri Apr 30 14:13:56 PDT 1999
10 # (c) Copyright 2001, Andrew@DeFaria.com, all rights reserved
12 ################################################################################
13 # Set me to command name
17 adm_base=${adm_base:-//sonscentral/Corporate/Software/adm}
20 adm_fpath=${adm_fpath:-$adm_base/functions}
26 machines=${machines:-$adm_base/data/machines}
28 if [ ! -f $machines ]; then
29 echo "$me: Error: Unable to find $machines file!"
33 total_machines=$(grep -cv "^#" $machines)
34 total_XP=$(grep -v "^#" $machines | grep -c "NT-5.1")
35 total_2000=$(grep -v "^#" $machines | grep -c "NT-5.0")
36 total_NT4_0=$(grep -v "^#" $machines | grep -c "NT-4.0")
37 total_cc=$(grep -v "^#" $machines | grep -c "4\.1\:")
39 echo "Machine breakdown"
40 echo --------------------------------
41 echo "Total Windows XP.............. $total_XP"
42 echo "Total Windows 2000 Pro........ $total_2000"
43 echo "Total Windows NT 4.0.......... $total_NT4_0"
44 echo "Total Clearcase............... $total_cc"
45 echo "Total Machines ............... $total_machines"