On Sun, Feb 10, 2013 at 08:20:36PM -0800, Danilo Tee wrote:
>
> I am currently preparing for a project will which require careful and
> coordinated execution of commands on around 50 servers, divided into 5
> groups (groupA to groupE).
>
> - Each of the groups need to receive differing commands or arguments and
> the commands have to be issued in parallel to them all.
I have a couple of thoughts.
First, if I'm understanding correctly, there are specific commands that
need to be run on specific hosts. In other words, it's not that there
are 50 different commands that can be run on any arbitrary host, right?
So it sounds like the PSSH_NODENUM environment variable would not be
helpful for you.
Second, you may find it easiest to create a script that ties into
psshlib. Basically, you can copy what the pssh script does, but
customize the Task to have a different command for each host. I think
this will end up being a convenient solution for you, but let us know
how things go.
--
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55 8012 AB4D 6098 8826 6868