Article 54326 help with script to find out release

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?latest?d=yIl2AUoC8zA latest?i=0lgKQ--7kSM:gDSjJXPVqio:F7zBnMy latest?i=0lgKQ--7kSM:gDSjJXPVqio:V_sGLiP latest?d=qj6IDK7rITs latest?i=0lgKQ--7kSM:gDSjJXPVqio:gIN9vFw0lgKQ--7kSM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments