MLUG: Re: [MLUG] run a single command across multiple servers from one shell?
Re: [MLUG] run a single command across multiple servers from one shell?
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
You could use a BASH script with a for loop pretty easily. Just loop through a list of servers, with the following ssh command:

ssh <EMAIL:PROTECTED> 'df -h'

You can set up passwordless authentication to make this more convenient.

-N

Shawn Parker wrote:
i read about this somewhere a while back, it's a linux command or
utility. but i can't remember what it is.

say i have 10 red hat servers and i want to run df -h on all 10
servers from a single term session on my laptop. any ideas?

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members


_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members