summaryrefslogtreecommitdiff
path: root/scripts/run-nstat.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/run-nstat.sh')
-rwxr-xr-xscripts/run-nstat.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/run-nstat.sh b/scripts/run-nstat.sh
new file mode 100755
index 0000000..63857f6
--- /dev/null
+++ b/scripts/run-nstat.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+. scripts/lava-common.sh
+
+iface=$(find_vland_iface)
+ipaddr=$(ip -4 addr show dev $iface | awk '/inet/ {print $2}')
+mac=$(cat /sys/class/net/$iface/address)
+
+lava-send start-xmit client_ip="$ipaddr" mac="$mac"
+lava-wait xmit-started
+
+time=0
+while test $time -lt 60; do
+ nstat -n && sleep 1 && nstat
+ time=$((time+1))
+done