cbee792305326b067cb6d6ee83390425ea85dab6
kuhn
  Fri Jan 6 11:45:58 2017 -0800
fixed checkBOT.csh to work with all option and removed errant exit

diff --git src/utils/qa/checkBOT.csh src/utils/qa/checkBOT.csh
index b595b7f..0c893f9 100755
--- src/utils/qa/checkBOT.csh
+++ src/utils/qa/checkBOT.csh
@@ -32,48 +32,47 @@
   set ip=$argv[1]
 endif
 
 if ($#argv == 2 ) then
   set mode=$argv[2]
   if ($mode !=  "terse" ) then
     echo
     echo '  sorry, the second argument can only be "terse"'
     echo
     exit 1
   endif
 endif
 
 echo
 if ($ip == "all") then
-  bottleneck -host=$bottleHost list | egrep "current"
-  bottleneck -host=$bottleHost list | grep -w -v "0" \
+  ssh qateam@hgwbeta bottleneck -host=$bottleHost list | egrep "current"
+  ssh qateam@hgwbeta bottleneck -host=$bottleHost list | grep -w -v "0" \
      | grep -v "current" | sort -nr -k5 > ipFile$$
   set allIPs=`cat ipFile$$ | awk '{print $1}'`
   cat ipFile$$
   echo
   # get locations (strip off sessionID)
   set chopIPs=`echo $allIPs | sed "s/ /\n/"g \
     | awk -F"." '{print $(NF-3)"."$(NF-2)"."$(NF-1)"."$NF}'`
   set worst=`echo $chopIPs | awk '{print $1}'`
   foreach address ( $chopIPs )
     set orgName=`whois $address | grep OrgName | sed -e "s/OrgName: //"` > /dev/null
     set current=`grep -w $address ipFile$$ | awk '{print $5}'`
     echo "$address\t\t$current\t  $orgName"
   end
 else
   ssh qateam@hgwbeta bottleneck -host=$bottleHost list | egrep -w "$ip|current"
-  exit
 endif
 echo 
 
 if ($mode == "terse") then
   exit 0
 endif
 
 echo "  hits    = total number of accesses since started tracking"
 echo "  time    = seconds since last hit"
 echo "  max     = the most delay time slapped on this source IP, in ms"
 echo "  current = the current delay in milliseconds."
 echo
 echo "  delay decays at the rate of 10 milliseconds per second"
 echo '  each new hit adds 150 milliseconds to "current"'
 echo