From 2553c872a6bb8833643d284351d45042c1116a40 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Fri, 2 Nov 2007 21:48:37 +0000 Subject: [PATCH] Run the findbad* commands and copy the files to the appropriate locations. --- automate_pl03.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 automate_pl03.sh 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 -- 2.47.0