From 1f377f8bd49548617e1b5ccaab3a0208616ddf05 Mon Sep 17 00:00:00 2001 From: Minh Doan Date: Mon, 9 Jul 2018 15:56:17 -0700 Subject: [PATCH] script to download logs from all leaders --- .../download_log_from_leaders.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 aws-experiment-launch/download_log_from_leaders.sh diff --git a/aws-experiment-launch/download_log_from_leaders.sh b/aws-experiment-launch/download_log_from_leaders.sh new file mode 100755 index 000000000..1fb1e4649 --- /dev/null +++ b/aws-experiment-launch/download_log_from_leaders.sh @@ -0,0 +1,16 @@ +# Make sure to have all keys with mode 600 at harmony-benchmark directory. +IFS=$'\n' +rm -rf ./tmp +for address in $(cat ./leader_addresses.txt) +do + echo "trying to download from address $address" + mkdir -p tmp/$address + scp -r -o "StrictHostKeyChecking no" -i ../keys/california-key-benchmark.pem ec2-user@$address:~/projects/src/harmony-benchmark/tmp_log/* ./tmp/$address/ + scp -r -o "StrictHostKeyChecking no" -i ../keys/frankfurt-key-benchmark.pem ec2-user@$address:~/projects/src/harmony-benchmark/tmp_log/* ./tmp/$address/ + scp -r -o "StrictHostKeyChecking no" -i ../keys/ireland-key-benchmark.pem ec2-user@$address:~/projects/src/harmony-benchmark/tmp_log/* ./tmp/$address/ + scp -r -o "StrictHostKeyChecking no" -i ../keys/ohio-key-benchmark.pem ec2-user@$address:~/projects/src/harmony-benchmark/tmp_log/* ./tmp/$address/ + scp -r -o "StrictHostKeyChecking no" -i ../keys/oregon-key-benchmark.pem ec2-user@$address:~/projects/src/harmony-benchmark/tmp_log/* ./tmp/$address/ + scp -r -o "StrictHostKeyChecking no" -i ../keys/singapore-key-benchmark.pem ec2-user@$address:~/projects/src/harmony-benchmark/tmp_log/* ./tmp/$address/ + scp -r -o "StrictHostKeyChecking no" -i ../keys/tokyo-key-benchmark.pem ec2-user@$address:~/projects/src/harmony-benchmark/tmp_log/* ./tmp/$address/ + scp -r -o "StrictHostKeyChecking no" -i ../keys/virginia-key-benchmark.pem ec2-user@$address:~/projects/src/harmony-benchmark/tmp_log/* ./tmp/$address/ +done \ No newline at end of file