[ale] Running a command on multiple servers

Matty matty91 at gmail.com
Mon Jun 15 11:27:17 EDT 2009


On Fri, Jun 12, 2009 at 10:37 AM, Brandon
Colbert<colbert.brandon at gmail.com> wrote:
> Anyone know of a software that allows you to run a command on multiple
> servers from one host?

We use dsh pretty extensively at my employer. The nice thing about dsh
(and pcp, it's scp conterpart) is its ability to run a command in
parallel across a number of  hosts. So if you need to grab the uname
output from a bunch of hosts, you could run:

$ export CLUSTER=/path/to/file/with/list/of/hosts

$ dsh -e -f32 'uname -a'

This will cause dsh to run 'uname -a' on 32 hosts at a time, and print
the results to stdout. Great piece of software!

- Ryan
--
http://prefetch.net


More information about the Ale mailing list