From d4f864cbd252a6156f7cc4b04f3daf1cd5149fc0 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 15 Aug 2018 19:21:15 +0200 Subject: Multiple configurations --- analyze.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'analyze.sh') diff --git a/analyze.sh b/analyze.sh index 33799cc..c0a8be1 100755 --- a/analyze.sh +++ b/analyze.sh @@ -3,6 +3,8 @@ sleep=1 int=$(ip addr show | grep "192\.168\.2\." | awk '{ print $NF }') +[ -n "$1" ] && int="$1" + stats1=($(ethtool -S $int | grep -P "rx\d?_(packets|bytes)" | awk '{ print $2 }')) sleep $sleep -- cgit v1.2.3