From 3e5bb73058f39fcc474dc11895fbfb2ada4a4009 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Tue, 27 Aug 2013 14:40:51 +0100 Subject: extend the client shell script to cope with multiple clients per server --- netperf-defs/netperf-client-napi.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/netperf-defs/netperf-client-napi.sh b/netperf-defs/netperf-client-napi.sh index 83ecba8..2a13544 100755 --- a/netperf-defs/netperf-client-napi.sh +++ b/netperf-defs/netperf-client-napi.sh @@ -2,11 +2,12 @@ set -x -cat /tmp/lava_multi_node_network_cache.txt - local_ip=$(ifconfig|grep "inet addr"|grep -v "127.0.0.1"|cut -d: -f2|cut -d' ' -f1) -for line in `lava-group | awk '{print $1}'` ; do +# allow multiple clients testing one server +# relies on the name of the role for the server containing server +# could be shortened if there was only one server in the JSON +for line in `lava-group | grep server | awk '{print $1}'` ; do echo $line # get the ipv4 for this device STR=`lava-network query $line ipv4` -- cgit v1.2.3