aboutsummaryrefslogtreecommitdiff
path: root/scripts/.scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/.scripts')
-rwxr-xr-xscripts/.scripts/domainsTest.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/.scripts/domainsTest.sh b/scripts/.scripts/domainsTest.sh
new file mode 100755
index 0000000..2b3151a
--- /dev/null
+++ b/scripts/.scripts/domainsTest.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+# Program name: pingall.sh
+date
+cat domains.txt | while read output
+do
+ ping -c 1 "$output" &> /dev/null
+ if [ $? -eq 0 ]; then
+ echo "node $output is up"
+ else
+ echo "node $output is down"
+ fi
+done