Sometimes you need to check the availability of multiple devices using ping. To do this, you can use the fping utility. Example:
fping -f nodes-ip.txt > result.txt
In the nodes-ip.txt file you need to save the ip of the devices, one per line. Next, fping reads the ip from this file and saves the result to another file, result.txt.
Example:
192.168.201.119 is alive
192.168.201.120 is alive
192.168.201.121 is alive
192.168.201.122 is alive
192.168.201.126 is alive
192.168.201.2 is alive
192.168.201.107 is alive
172.17.5.4 is unreachable
172.17.5.5 is unreachable
172.17.5.6 is unreachable
172.17.5.7 is unreachable
172.17.5.8 is unreachable
172.17.5.9 is unreachable