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
In reply to parallel ssh by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |