GENI-in-a-Box/GiB-gettingStarted: iperf-script.sh

File iperf-script.sh, 294 bytes (added by lnevers@bbn.com, 12 years ago)
Line 
1#!/bin/bash
2
3# find out my host name
4hn=$(hostname)
5
6# install iperf
7yum -y install iperf
8
9# start up the server on host 'left' and client on host 'right'
10if [ $hn ==  "left" ]
11then
12    iperf -s &> /var/www/html/iperf-server.log &
13else
14    iperf -c left &> /var/www/html/iperf-client.log &
15fi
16