Note:
1) Setup a password less Authentication on one of the nodes,
2) And get the nodes list before issueing the command.
3) for i in $(cat hostlist); do ssh -o PasswordAuthentication=no $i "cat /etc/*release | grep 'release 7'" >/dev/null 2>&1; [ $? -eq 0 ] && echo $i; done
No comments:
Post a Comment