in reply to parse /etc/passwd and output it as csv in hundred servers
Hello garcimo,
Fellow Monk hippo answered your question already, but I would like to add some comments since you post your question.
Why you use 190 (passwords, username connections)? First of all it is less secure and second you use too many unnecessary resources, use ssh keys.
Second point of view, 190 connections will take more time and in case of one node is down you need to wait until timeout and proceed to next if not blocked. why not use Net::OpenSSH::Parallel?
Sample of code for both modules using ssh keys can be found here Re: Perl script works differently from Apache then CMD line.
Hope this helps, BR.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: parse /etc/passwd and output it as csv in hundred servers
by garcimo (Novice) on Apr 13, 2018 at 16:21 UTC | |
by thanos1983 (Parson) on Apr 15, 2018 at 16:15 UTC | |
by garcimo (Novice) on Apr 16, 2018 at 11:17 UTC | |
by thanos1983 (Parson) on Apr 16, 2018 at 21:01 UTC |