76f2a1d645d0a52b31efe0a35b458d18b56e3d47 kuhn Fri Jan 6 11:39:05 2017 -0800 fixed checkBOT.csh to get bottleneck info from hgnfs1 via ssh qateam@hgwbeta diff --git src/utils/qa/checkBOT.csh src/utils/qa/checkBOT.csh index aa1af1c..b595b7f 100755 --- src/utils/qa/checkBOT.csh +++ src/utils/qa/checkBOT.csh @@ -2,31 +2,31 @@ source `which qaConfig.csh` #################### # 06-15-05 Bob Kuhn # # Wrapper around bottleneck check # #################### onintr cleanup set ip="" set chopIDs="" set worst="" set mode="" -set bottleHost="rrnfs1" +set bottleHost="hgnfs1" # host is specified in /usr/local/apache/cgi-bin/hg.conf (as bottleneck.host) if ($#argv < 1 || $#argv > 2 ) then echo echo " wrapper around bottleneck check." echo " gives delay stats for IP address(es)." echo echo ' usage: ipAddress [terse]' echo ' (terse gives only data)' echo echo ' (use ipAddress = "all" to get all IPs having delays)' echo exit else set ip=$argv[1] @@ -48,31 +48,32 @@ 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 - bottleneck -host=$bottleHost list | egrep -w "$ip|current" + 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