I took the sample script, below, off the net to check and validate mount points of system that is already up and running.
I want to compare existing mounted-mount points which are not commented out in the
/etc/fstab and highlighting them if they are on.
Also, I would like to inquire if there is any alternative solution!
#!/bin/bash while read ip; do echo "connecting to $ip"; ssh root@$ip "until mount | grep -w \"/mnt/data\" >/dev/null; do echo mounting \"/mnt/data\"; mount \"/mnt/data\"; sleep 1; done && echo Mounted on $ip" done < ips.txt