Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a small question. I have a working perl code where I am looping for an hash element(containing hostnames) and doing number of ssh's to each of the hostnames to gather various date. The problem is we have about 20 boxes and it takes about 30 min to complete all the boxes.
Now is there some way I can run the ssh on all the hosts of the %hosts parallelyfor my $key ( keys %hosts ) { ssh1 (gather data); ssh2 (gather data); ssh3 (gather data); }
much appreciated
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: parallel ssh
by kyle (Abbot) on Apr 05, 2007 at 20:40 UTC | |
Re: parallel ssh
by Fletch (Bishop) on Apr 05, 2007 at 20:37 UTC | |
Re: parallel ssh
by roboticus (Chancellor) on Apr 06, 2007 at 03:50 UTC | |
Re: parallel ssh
by casiano (Pilgrim) on Jul 01, 2008 at 07:14 UTC |