Run the findbad* commands and copy the files to the appropriate locations.
authorStephen Soltesz <soltesz@cs.princeton.edu>
Fri, 2 Nov 2007 21:48:37 +0000 (21:48 +0000)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Fri, 2 Nov 2007 21:48:37 +0000 (21:48 +0000)
automate_pl03.sh [new file with mode: 0755]

diff --git a/automate_pl03.sh b/automate_pl03.sh
new file mode 100755 (executable)
index 0000000..8dec52a
--- /dev/null
@@ -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