From 45b6b94ceb42a4a5355bfc3287537c152e9300f6 Mon Sep 17 00:00:00 2001 From: Sandino Araico Sanchez Date: Thu, 2 Feb 2017 17:41:36 -0600 Subject: [PATCH] support comments in test-ping --- scripts/test-ping | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/test-ping b/scripts/test-ping index 4940f2b..5622f90 100755 --- a/scripts/test-ping +++ b/scripts/test-ping @@ -11,11 +11,12 @@ for VLAN in {401..408} ; do continue fi IP_LIST=`cat /etc/netdev/vlan.$VLAN.csv \ + | sed 's/#.*$//' \ | cut -d ',' -f 3 \ | grep '^[0-9]' | sort` for IP in $IP_LIST; do echo -n "$IP - " - ping -c5 -f $IP | grep 'received' + ping -c100 -f $IP | grep 'received' done done