From: Stephen Soltesz Date: Fri, 2 Nov 2007 21:48:37 +0000 (+0000) Subject: Run the findbad* commands and copy the files to the appropriate locations. X-Git-Tag: Monitor-1.0-0~48 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=2553c872a6bb8833643d284351d45042c1116a40;p=monitor.git Run the findbad* commands and copy the files to the appropriate locations. --- diff --git a/automate_pl03.sh b/automate_pl03.sh new file mode 100755 index 0000000..8dec52a --- /dev/null +++ b/automate_pl03.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +set -e +cd $HOME/monitor/ + +######################### +# 1. FINDBAD NODES +rm -f pdb/production.findbad2.pkl +./findbad.py --cachenodes --debug=0 --dbname="findbad2" + +######################## +# COPY to golf for diagnose.py and action.py +cp pdb/production.findbad2.pkl pdb/production.findbad.pkl +scp pdb/production.findbad2.pkl soltesz@golf.cs.princeton.edu:monitor3/pdb/production.findbad.pkl + +######################## +# COPY Act_all records +scp soltesz@golf.cs.princeton.edu:monitor3/pdb/production.act_all.pkl pdb/ + +######################## +# badcsv.txt +./printbadcsv.py | grep -v loading | tr -d ' ' > badcsv.txt +cp badcsv.txt /plc/data/var/www/html/monitor/ + +######################### +# 2. FINDBAD PCUS +rm -f pdb/production.findbadpcus2.pkl +./findbadpcu.py --increment --refresh --debug=0 --dbname=findbadpcus2 +# convert pkl to php serialize format. +./pkl2php.py -i findbadpcus2 -o findbadpcus