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


Groups > comp.lang.python > #2801

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

From Anssi Saari <as@sci.fi>
Newsgroups comp.lang.python
Subject Re: How to program in Python to run system commands in 1000s of servers
Date 2011-04-07 22:14 +0300
Message-ID <vg3k4f53md2.fsf@pepper.modeemi.fi> (permalink)
References <0bb6311b-135a-4458-9258-1eca3be3cd31@q12g2000prb.googlegroups.com> <mailman.52.1302022780.9059.python-list@python.org> <roy-564C5B.21242005042011@news.panix.com> <vg3sjtu2tec.fsf@pepper.modeemi.fi> <mailman.110.1302185624.9059.python-list@python.org>

Show all headers | View raw


Chris Angelico <rosuav@gmail.com> writes:

> Depending on what exactly is needed, it might be easier to run a
> separate daemon on the computers, one whose sole purpose is to do the
> task / get the statistics needed and return them. Then the Python
> script need only collect each program's returned response.

Those would still need to be deployed somehow to the thousands of
machines though. 

I realized after posting that something like pexpect might work for
stuffing the keystrokes needed to root login via ssh to all machines
and such... If that's what he needs to do, since it wasn't very clear.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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