LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-08-2008, 05:00 AM   #1
kdrlx
Member
 
Registered: Feb 2006
Distribution: Ubuntu Hardy Heron
Posts: 130

Rep: Reputation: 17
Collect data from remote machines


Is there any software to collect data from remote machines without any special software/agent on the target box?
I would like to collect data like kernel version, memory, cpuinfo etc
 
Old 05-08-2008, 05:33 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
If you can use ssh-private-key (passwordless) authentication
you can easily get that information using a plain old shell
script.

Code:
for i in host1 host2 host3; 
do
  ssh user@${i} 'echo kernel;uname -a;echo ""; echo memory; cat /proc/meminfo; echo ""; cat /proc/cpuinfo' > ${i}.log
done


Cheers,
Tink
 
Old 05-08-2008, 08:29 AM   #3
jbpostal
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
Thanks Tink. That code worked for me.
 
Old 05-08-2008, 08:42 AM   #4
kdrlx
Member
 
Registered: Feb 2006
Distribution: Ubuntu Hardy Heron
Posts: 130

Original Poster
Rep: Reputation: 17
Does it carry the data in question encrypted or in clear text ? I plan to collect data in a network which might be sensitive data. User info from passwd, user home folder contents lists etc.
 
Old 05-08-2008, 09:24 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,111

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
ssh encrypts the data, that's why it's called "secure shell"
 
Old 05-09-2008, 12:23 AM   #6
kdrlx
Member
 
Registered: Feb 2006
Distribution: Ubuntu Hardy Heron
Posts: 130

Original Poster
Rep: Reputation: 17
oh damn, i couldn't put the two and two together ... shit man .. your the god, thanks for that. I really didn't know that. Damn your good, "Senior Member" for a reason .. wow, just wow ....
 
  


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
Remote control of multiple machines piva.francesco Linux - Networking 12 12-22-2007 07:14 AM
how can i know remote machines OS? b123coder Linux - Security 2 04-06-2006 09:48 AM
remote controll xp machines via redhat 9.0 redlinux04 Linux - Networking 9 09-08-2004 02:53 PM
Can you collect virus logs from Windows machines to a Linux box jongun78 Linux - General 1 11-14-2003 05:33 PM
data mirror between machines knobby *BSD 1 07-25-2002 11:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:59 AM.

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