sabas has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on df -h script to 10 servers and append the printout into one file

Replies are listed 'Best First'.
Re: df -h script to 10 servers and append the printout into one file
by kcott (Archbishop) on Nov 15, 2018 at 05:38 UTC
Re: df -h script to 10 servers and append the printout into one file
by salva (Canon) on Nov 15, 2018 at 15:07 UTC
    Congratulations, you have won the following dirty one-liner as part of the monastery pre Black Friday give away!!!
    perl -e 'system(qq(ssh $_ "hostname && df -h")) for @ARGV' host1 host2 + host3 ...