diff options
author | Neil Williams <codehelp@debian.org> | 2013-08-27 14:40:51 +0100 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2013-08-27 14:40:51 +0100 |
commit | 3e5bb73058f39fcc474dc11895fbfb2ada4a4009 (patch) | |
tree | 42a300f2dadaa6cd457d676bd92a43b8ef89d6ad | |
parent | 669198ed1416c977648a2c52d7b445b3f69688c0 (diff) |
extend the client shell script to cope with multiple clients per server
-rwxr-xr-x | netperf-defs/netperf-client-napi.sh | 7 |
1 files 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` |