--- zentara <[EMAIL PROTECTED]> wrote: > On Thu, 30 Nov 2006 13:34:16 -0800 (PST), > [EMAIL PROTECTED] > ("Derek B. Smith") wrote: > > >Hello... : ) > > > >I need to gather a single filename on hundreds of > >servers ranging in *UX flavors from AIX, HP, > Solaris, > >RH Linux and Tru64 then store them on on HPUX > server. > > > >I was initially thinking an scp command like so > >foreach my $server in (@servers) > > scp /etc/passwd /tmp/passwd.$SERVER > > > >but not all clients have ssh running and other > nuances > >such as no root ssh sign-in, no ftp, and > /etc/passwd > >is protected from downloads and reads by anyone but > >root. > > > >I then looked at Net::EasyTCP for a socket > download. > >As I read the CPAN info and after reading > > > > >For this to happen do I need to create server and > >client or just client? What do you recommend? > > > >server A would be "server" which houses gathered > files > >server B would be "client" which is where unique > >passwd files live. > > > >thank you > >derek > > It just so happens I played with this awhile back. > Net::EasyTCP is a great time saver, because it > handles port passwords, encryption, and > serialization > of hashes. It's neat to be able to send a hash thru > a socket. > > You have 2 choices. > 1. You can have the server RECEIVE files uploaded > by the clients. This only requires 1 server to keep > a port open, and the clients connect at random and > upload their > file, like thru a cron job. > This is preferable because you only need 1 > constantly > running socket open to the internet. > > #OR > > 2. You can have each client running an open socket, > and your "collector" connects to them and collects > the > file. > > I have working examples of both below. > > Just remember, that Net::EasyTCP uses IO::Select, > and if the files are big, the socket will block > until > the file is uploaded. This wouldn't be a problem > if you use option 1. > P.S. Use a port password, which Net::EasyTCP makes > easy. > > See: > http://perlmonks.org?node_id=198680 > > Here is a version with a Tk front end: > http://perlmonks.org?node_id=387351 > > >
ok but is it possible to emulate an ftp get from the master to retreive files from all clients w/out deploying the client code to all clients using this module? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>