From dcd91c46b7f1c52b11e1a0995e041924abc64df5 Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Wed, 26 Jun 2019 09:46:26 -0500 Subject: [PATCH] Add ping command (thanks @swacquie) --- prepare-vms/lib/commands.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/prepare-vms/lib/commands.sh b/prepare-vms/lib/commands.sh index f668ced0..9ca85179 100644 --- a/prepare-vms/lib/commands.sh +++ b/prepare-vms/lib/commands.sh @@ -318,6 +318,14 @@ _cmd_listall() { done } +_cmd ping "Ping VMs in a given tag, to check that they have network access" +_cmd_ping() { + TAG=$1 + need_tag + + fping < tags/$TAG/ips.txt +} + _cmd netfix "Disable GRO and run a pinger job on the VMs" _cmd_netfix () { TAG=$1