Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #2681
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!panix!roy |
|---|---|
| From | Roy Smith <roy@panix.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: How to program in Python to run system commands in 1000s of servers |
| Date | Tue, 05 Apr 2011 21:24:20 -0400 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Lines | 30 |
| Message-ID | <roy-564C5B.21242005042011@news.panix.com> (permalink) |
| References | <0bb6311b-135a-4458-9258-1eca3be3cd31@q12g2000prb.googlegroups.com> <mailman.52.1302022780.9059.python-list@python.org> |
| NNTP-Posting-Host | localhost |
| X-Trace | reader1.panix.com 1302053062 9957 127.0.0.1 (6 Apr 2011 01:24:22 GMT) |
| X-Complaints-To | abuse@panix.com |
| NNTP-Posting-Date | Wed, 6 Apr 2011 01:24:22 +0000 (UTC) |
| User-Agent | MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:2681 |
Show key headers only | View raw
In article <mailman.52.1302022780.9059.python-list@python.org>, geremy condra <debatem1@gmail.com> wrote: > On Tue, Apr 5, 2011 at 7:51 AM, Babu <babukk@gmail.com> wrote: > > > > Here is my problem: Want to program in python to run sysadmin > > commands across 1000s of servers and gather the result in one place. > > Many times the commands need to be run as root. We cannot use ssh as > > root remote connectivity as well. What are the different ways of > > programming in python to achieve this? > > There are a bajillion ways to do it badly, but SSH sounds like the > right tool for the job here. You really don't want your remote admin > system compromised, and fabric makes this kind of thing really much > less painful. Agreed on the fabric (fabfile.org) recommendation. We've been using it for about 6 months. Very handy. I'm not sure how to parse: > We cannot use ssh as root remote connectivity as well. but with 1000's of servers, I really don't see any alternative to ssh, with key authentication. You don't really propose to type passwords at 1000's of machines, do you? As far as fabric goes, it's not perfect, but it's pretty good and if you try to roll your own alternative, you will likely 1) waste a lot of time and money and 2) end up with an inferior solution.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
How to program in Python to run system commands in 1000s of servers Babu <babukk@gmail.com> - 2011-04-05 07:51 -0700
Re: How to program in Python to run system commands in 1000s of servers geremy condra <debatem1@gmail.com> - 2011-04-05 09:59 -0700
Re: How to program in Python to run system commands in 1000s of servers Roy Smith <roy@panix.com> - 2011-04-05 21:24 -0400
Re: How to program in Python to run system commands in 1000s of servers Anssi Saari <as@sci.fi> - 2011-04-07 14:27 +0300
Re: How to program in Python to run system commands in 1000s of servers Chris Angelico <rosuav@gmail.com> - 2011-04-08 00:13 +1000
Re: How to program in Python to run system commands in 1000s of servers Anssi Saari <as@sci.fi> - 2011-04-07 22:14 +0300
Re: How to program in Python to run system commands in 1000s of servers Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2011-04-07 22:40 +0200
Re: How to program in Python to run system commands in 1000s of servers Babu <babukk@gmail.com> - 2011-04-10 07:22 -0700
Re: How to program in Python to run system commands in 1000s of servers Chris Angelico <rosuav@gmail.com> - 2011-04-11 00:42 +1000
csiph-web