git://git.onelab.eu
/
monitor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f61c799
)
- additional regular rotations.
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Wed, 9 Apr 2008 17:13:05 +0000
(17:13 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Wed, 9 Apr 2008 17:13:05 +0000
(17:13 +0000)
automate_pl03.sh
patch
|
blob
|
history
diff --git
a/automate_pl03.sh
b/automate_pl03.sh
index
4cf870d
..
4a07326
100755
(executable)
--- a/
automate_pl03.sh
+++ b/
automate_pl03.sh
@@
-2,16
+2,17
@@
set -e
cd $HOME/monitor/
set -e
cd $HOME/monitor/
+DATE=`date +%Y-%m-%d-%T`
#########################
# 1. FINDBAD NODES
rm -f pdb/production.findbad2.pkl
#########################
# 1. FINDBAD NODES
rm -f pdb/production.findbad2.pkl
-./findbad.py --cachenodes --debug=0 --dbname="findbad2"
+./findbad.py --cachenodes --debug=0 --dbname="findbad2"
$DATE
########################
# COPY to golf for diagnose.py and action.py
cp pdb/production.findbad2.pkl pdb/production.findbad.pkl
########################
# 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
+
#
scp pdb/production.findbad2.pkl soltesz@golf.cs.princeton.edu:monitor3/pdb/production.findbad.pkl
########################
# COPY Act_all records
########################
# COPY Act_all records
@@
-25,11
+26,16
@@
cp badcsv.txt /plc/data/var/www/html/monitor/
#########################
# 2. FINDBAD PCUS
rm -f pdb/production.findbadpcus2.pkl
#########################
# 2. FINDBAD PCUS
rm -f pdb/production.findbadpcus2.pkl
-./findbadpcu.py --increment --refresh --debug=0 --dbname=findbadpcus2
+./findbadpcu.py --increment --refresh --debug=0 --dbname=findbadpcus2
$DATE
# convert pkl to php serialize format.
cp pdb/production.findbadpcus2.pkl pdb/production.findbadpcus.pkl
./pkl2php.py -i findbadpcus2 -o findbadpcus
# convert pkl to php serialize format.
cp pdb/production.findbadpcus2.pkl pdb/production.findbadpcus.pkl
./pkl2php.py -i findbadpcus2 -o findbadpcus
+./pkl2php.py -i act_all -o act_all
+./pkl2php.py -i plcdb_hn2lb -o plcdb_hn2lb
+./pkl2php.py -i findbad -o findbadnodes
+./pkl2php.py -i ad_dbTickets -o ad_dbTickets
+./pkl2php.py -i idTickets -o idTickets
for f in findbad act_all findbadpcus l_plcnodes; do
cp pdb/production.$f.pkl archive-pdb/`date +%F`.production.$f.pkl
for f in findbad act_all findbadpcus l_plcnodes; do
cp pdb/production.$f.pkl archive-pdb/`date +%F`.production.$f.pkl