> ./present
> ./not-present
while read node
do
ssh $node 'sudo grep -q "elevator=noop" /etc/grub.conf'
if [ $? -eq 0 ] ; then
echo "$node" >> ./present
else
echo "$node" >> ./not-present
fi
done < servers.dat
This requires that your account be set up to sudo on all of the servers, and that you have set up ssh-keys (from the box where you execute the above script) for your account on all servers in the respective ~/.ssh/authorized_keys files.