Showing posts with label Scripts. Show all posts
Showing posts with label Scripts. Show all posts

Monday, June 17, 2019

How to find the Host Version/Release on multiple host in Linux.

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