14 lines
247 B
Bash
Executable File
14 lines
247 B
Bash
Executable File
#!/bin/bash
|
|
. hosts.conf
|
|
for host in $hosts; do
|
|
if ping -c 1 -W 1 "$host" >/dev/null; then
|
|
echo "$host is alive"
|
|
else
|
|
echo "$host is pining for the fjords"
|
|
fi
|
|
done
|
|
echo ''
|
|
nomad server members
|
|
echo ''
|
|
nomad node status
|