Adding subdirectories for remote commands to control ILO and DRAC cards over
[monitor.git] / automate_pl03.sh
index 8dec52a..4cf870d 100755 (executable)
@@ -15,7 +15,7 @@ scp pdb/production.findbad2.pkl soltesz@golf.cs.princeton.edu:monitor3/pdb/produ
 
 ########################
 # COPY Act_all records
-scp soltesz@golf.cs.princeton.edu:monitor3/pdb/production.act_all.pkl pdb/
+#scp soltesz@golf.cs.princeton.edu:monitor3/pdb/production.act_all.pkl pdb/
 
 ########################
 # badcsv.txt
@@ -27,4 +27,10 @@ cp badcsv.txt /plc/data/var/www/html/monitor/
 rm -f pdb/production.findbadpcus2.pkl
 ./findbadpcu.py --increment --refresh --debug=0 --dbname=findbadpcus2
 # convert pkl to php serialize format.
+cp pdb/production.findbadpcus2.pkl pdb/production.findbadpcus.pkl
 ./pkl2php.py -i findbadpcus2 -o findbadpcus
+
+
+for f in findbad act_all findbadpcus l_plcnodes; do 
+       cp pdb/production.$f.pkl archive-pdb/`date +%F`.production.$f.pkl
+done