With a list of servers, it is common that one or more are down or crash. Lots cluster management tools can detect the aliveness of servers. However, it can be easily done with
with a Bash script.
I summarize the script that I used and share it here:
usage: ./check-alive-server.sh file
Each host in one line in the file
The mechanism and tool used behind this is quite straightforward: just ping (that’s right, the
command) the host and check the results. » Read more