Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #2681

Re: How to program in Python to run system commands in 1000s of servers

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 2011-04-05 21:24 -0400
Organization PANIX Public Access Internet and UNIX, NYC
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>

Show all headers | 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 | NextPrevious in thread | Next in thread | Find similar


Thread

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