Gavin W. Burris on 11 Aug 2011 08:31:12 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] ClusterSSH & friends


I like dsh, Dancer's Shell:
http://www.netfort.gr.jp/~dancer/software/dsh.html.en

A lot of the supercomputing clusters use pdsh:
http://sourceforge.net/projects/pdsh/

A simple shell script with a for loop is handy sometimes ,too:
for I in `grep -v "\#" /etc/machines.list`; do
echo -n "$I " ; ssh $I "$@"
done


Cheers.

On 08/10/2011 01:35 AM, JP Vossen wrote:
> Last night at PLUG N we were talking about running the same command on a
> bunch of servers.  Here is some follow-up for that.
> 
> I was thinking of "multixterm", which seems to be part of the expect-dev
> (possibly just expect on some distros), but the references on the NIST
> site seem otherwise dead. [1]
> 
> Then there is "Execute commands simultaneously on multiple servers Using
> PSSH/Cluster SSH/Multixterm" [2] and "Parallel SSH execution and a
> single shell to control them all" [3].
> 
> There's this non-Interactive one:
> http://www.stearns.org/fanout/    Run non-interactive commands on remote
> machines simultaneously
> 
> And of course, CFEngine [4], Puppet [5] and chef [6] and a comparison of
> a bunch of config management tools [7], but these are all more heavy
> duty than the original topic.
> 
> I haven't really used any of them, but from my brief survey, PSSH sounds
> the most interesting since it includes (scriptable) pssh, pscp, prsync,
> and pnuke.  http://code.google.com/p/parallel-ssh/
> 
> If anyone (Kevin?) dives into these, let us know how it works out.
> 
> ______________________________________________
> [1] Multiterm
> * http://www.linux.com/articles/52131    Execute commands simultaneously
> on multiple servers (excerpted from Linux Server Hacks, Volume Two)
> * http://www.oreilly.com/catalog/morelnxsvrhks/    #29 Execute commands
> simultaneously on multiple servers page 144
> * DEAD: http://expect.nist.gov/example/multixterm.man.html    multixterm
> - drive multiple xterms separately or together
> 
> [2]
> http://www.ubuntugeek.com/execute-commands-simultaneously-on-multiple-servers-using-psshcluster-sshmultixterm.html
> 
> 
> [3] http://www.linux.com/archive/feature/151340
> 
> [4] http://www.cfengine.org/ and http://en.wikipedia.org/wiki/Cfengine
> 
> [5] http://www.puppetlabs.com/ and
> http://en.wikipedia.org/wiki/Puppet_%28software%29
> 
> [6] http://www.opscode.com/chef/ and
> http://en.wikipedia.org/wiki/Chef_%28software%29
> 
> [7]
> http://en.wikipedia.org/wiki/Comparison_of_open_source_configuration_management_software
> 
> 
> 
> Later,
> JP
> ----------------------------|:::======|-------------------------------
> JP Vossen, CISSP            |:::======|      http://bashcookbook.com/
> My Account, My Opinions     |=========|      http://www.jpsdomain.org/
> ----------------------------|=========|-------------------------------
> "Microsoft Tax" = the additional hardware & yearly fees for the add-on
> software required to protect Windows from its own poorly designed and
> implemented self, while the overhead incidentally flattens Moore's Law.
> ___________________________________________________________________________
> Philadelphia Linux Users Group         --        http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
> 

-- 
Gavin W. Burris
Senior Systems Programmer
Information Security and Unix Systems
School of Arts and Sciences
University of Pennsylvania
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug