help with script to find out release
by sam_nyc from LinuxQuestions.org on (#54326)
Good morning, Can you give few ideas. Maybe there is easier way to do this.
I need to find out which release running on few servers.
Code:#!/bin/bash
set -e
for server in `cat /home/server-list.txt`
do
echo -e "Server Hostname is: $server"
ssh $server -t -l user 'cat /etc/redhat-release'
done
can we find out the which version the server is running without logging into each of the server?


I need to find out which release running on few servers.
Code:#!/bin/bash
set -e
for server in `cat /home/server-list.txt`
do
echo -e "Server Hostname is: $server"
ssh $server -t -l user 'cat /etc/redhat-release'
done
can we find out the which version the server is running without logging into each of the server?