LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-21-2011, 03:05 AM   #1
sattarkf
LQ Newbie
 
Registered: Mar 2011
Location: Chennai/Hyderabad... India
Posts: 19

Rep: Reputation: Disabled
Thumbs up Important ... linux command


Can any one solve this problem..

There are several servers and i want shell script to check Linux OS version for all servers, I need automated script such that input should be server name and output should be linux os version.

Thank you
 
Old 03-21-2011, 03:13 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

You can write a Bash script to connect to all those servers (reading input from a file or from within the script using 'here' document), connect to them using SSH and save the output in a file for reviewing later. If you've set up SSH authentication with keys (host or user) you can use the script without the need for a password. If you don't you can use a program like sshpass to pass the password from within the script to the SSH command. This is one approach you can use, the work is up to you.

Kind regards,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How important is " CLUE", Command Line User Environment? vyver Linux - Newbie 36 11-04-2010 11:22 AM
an important issue in find command any help pleas :) bhb Linux - Newbie 3 05-18-2010 07:36 PM
Why should wine be important in Linux? KaruppuSwamy.T Linux - General 12 04-21-2004 12:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration