The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to copy multiple lines from a file to another using AWK? jisha Shell Programming and Scripting 3 01-08-2008 01:04 AM
copy value to multiple lines rko Shell Programming and Scripting 4 12-13-2007 10:56 PM
script for df output from multiple hosts barkath Shell Programming and Scripting 6 11-29-2007 02:05 AM
Copy single file to multiple directories kthatch UNIX for Dummies Questions & Answers 2 11-11-2007 06:10 PM
Multiple Hosts on Solaris CDE window Remi SUN Solaris 2 01-16-2007 12:25 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-17-2007
sumsriva sumsriva is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 2
Copy a file to multiple hosts

Hi,

I need to copy a file ( say 1MB file ) to multiple hosts( no of machines is huge).
What would be the most optimal way of doing it with minimal user intervention ?

Thanks,
Sumit
  #2 (permalink)  
Old 09-17-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
(1) if each machine has an anonymous ftp account then ftp it

(2) if you have an ssh public/private key pair for each machine then scp it

At the end of the day you need to pass authentication and then transfer the file.
  #3 (permalink)  
Old 09-17-2007
sumsriva sumsriva is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 2
Can you please be more specific..
How would i do it for multiple hosts at one time..

With Ftp , I will have to run the same cmd over and over

even with scp i'll have to enter the credentials isn'it ?

Thanks,
  #4 (permalink)  
Old 09-17-2007
drl's Avatar
drl drl is online now Forum Advisor  
Registered User
  
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 707
Hi.

Consider rdist:
Quote:
Rdist is a program to maintain identical copies of files over multiple
hosts.

-- excerpt from man rdist
cheers, drl
  #5 (permalink)  
Old 09-17-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by sumsriva View Post
With Ftp , I will have to run the same cmd over and over
Yes.

Quote:
Originally Posted by sumsriva View Post
even with scp i'll have to enter the credentials isn'it ?
Or use the public/private keys.
  #6 (permalink)  
Old 09-18-2007
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
I am currently using http://www.cfengine.org/ at work to manage about 100 servers from a single master configuration. It supports what you want and a lot more, if you don't mind installing another daemon and spending days for initial setup on each machine.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:52 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0