Changeset 100
- Timestamp:
- Aug 13, 2009, 10:17:28 AM (15 years ago)
- Location:
- drbl-green-benchmark
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
drbl-green-benchmark/diskfull-benchmark.sh
r99 r100 4 4 export LC_ALL=en_US 5 5 log_start=$(date +"%y%m%d-%H%M%S_") 6 log_file="/ var/log/${log_start}diskfull-benchmark.log"7 #status_file="/ var/log/${log_start}diskfull-benchmark-status.log"6 log_file="/root/log/${log_start}diskfull-benchmark.log" 7 #status_file="/root/log/${log_start}diskfull-benchmark-status.log" 8 8 status_file="/dev/null" 9 local_zip="/ var/log/${log_start}diskfull.tar.gz"9 local_zip="/root/log/${log_start}diskfull.tar.gz" 10 10 echo "0. Rebooting...." > $log_file 11 11 echo "0. Rebooting...." … … 14 14 up-host-a > /root/.dsh/machines.list 15 15 rm -f /root/.ssh/known_hosts 16 mkdir -p /root/log/ 16 17 17 18 function mydsh() 18 19 { 19 dsh -a -c "date > / var/log/$2.time.$1; /usr/bin/time -a -o /var/log/$2.time.$i $3; date >> /var/log/$2.time.$1" >> $status_file 2>&120 dsh -a -c "date > /root/log/$2.time.$1; /usr/bin/time -a -o /root/log/$2.time.$i $3; date >> /root/log/$2.time.$1" >> $status_file 2>&1 20 21 } 21 22 … … 24 25 echo "[$i] 1. Booting...." >> $log_file 25 26 echo "[$i] 1. Booting...." 26 dsh -a -c "rm -f /var/log/*.time.*" >> $status_file 2>&127 27 dsh -a -c "reboot" >> $status_file 2>&1 28 28 `date >> $log_file` … … 95 95 `date >> $log_file` 96 96 done 97 mydsh "F" "collect" "tar zcvf $local_zip / var/log/*.time.*"97 mydsh "F" "collect" "tar zcvf $local_zip /root/log/*.time.*" -
drbl-green-benchmark/diskless-benchmark.sh
r99 r100 4 4 export LC_ALL=en_US 5 5 log_start=$(date +"%y%m%d-%H%M%S_") 6 log_file="/ var/log/${log_start}diskless-benchmark.log"7 #status_file="/ var/log/${log_start}diskless-benchmark-status.log"6 log_file="/root/log/${log_start}diskless-benchmark.log" 7 #status_file="/root/log/${log_start}diskless-benchmark-status.log" 8 8 status_file="/dev/null" 9 local_zip="/ var/log/${log_start}diskless.tar.gz"9 local_zip="/root/log/${log_start}diskless.tar.gz" 10 10 echo "0. Rebooting...." > $log_file 11 11 echo "0. Rebooting...." … … 14 14 up-host-a > /root/.dsh/machines.list 15 15 rm -f /root/.ssh/known_hosts 16 mkdir -p /root/log/ 16 17 17 18 function mydsh() 18 19 { 19 dsh -a -c "date > / var/log/$2.time.$1; /usr/bin/time -a -o /var/log/$2.time.$i $3; date >> /var/log/$2.time.$1" >> $status_file 2>&120 dsh -a -c "date > /root/log/$2.time.$1; /usr/bin/time -a -o /root/log/$2.time.$i $3; date >> /root/log/$2.time.$1" >> $status_file 2>&1 20 21 } 21 22 … … 24 25 echo "[$i] 1. Booting...." >> $log_file 25 26 echo "[$i] 1. Booting...." 26 dsh -a -c "rm -f /var/log/*.time.*" >> $status_file 2>&127 27 dsh -a -c "reboot" >> $status_file 2>&1 28 28 `date >> $log_file` … … 95 95 `date >> $log_file` 96 96 done 97 mydsh "F" "collect" "tar zcvf $local_zip / var/log/*.time.*"97 mydsh "F" "collect" "tar zcvf $local_zip /root/log/*.time.*"
Note: See TracChangeset
for help on using the changeset viewer.