Skip to content

Instantly share code, notes, and snippets.

@gbraccialli
Created February 23, 2016 14:48
Show Gist options
  • Save gbraccialli/6b706f249a3cd6b67c75 to your computer and use it in GitHub Desktop.
Save gbraccialli/6b706f249a3cd6b67c75 to your computer and use it in GitHub Desktop.
clush -a "nohup iperf3 -s > /tmp/iperf3.out 2>&1 &"
for host in `cat hosts.txt | paste -s -d' '`
do
for host2 in `cat hosts2.txt | paste -s -d' '`
do
ssh ${host} "iperf3 -c ${host2} -P 3 -t 3" > /tmp/iperf3_from_${host}_to_${host2}
done
done
cd /tmp
grep "SUM" iperf3* | grep "0.00-3.00"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment