Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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 ( [id://1225861]=note: print w/replies, xml ) Need Help??


in reply to df -h script to 10 servers and append the printout into one file

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 ...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1225861]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-03-29 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found