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


Groups > comp.lang.python > #2946

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

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.016
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.04; 'suppose': 0.05; 'wrapper': 0.07; 'query,': 0.09; 'somewhere': 0.11; 'am,': 0.14; 'wrote:': 0.14; '12:22': 0.16; "computer's": 0.16; 'instance:': 0.16; 'selections.': 0.16; 'subject:servers': 0.16; 'subject:system': 0.16; 'otherwise,': 0.20; '(or': 0.22; 'header:In-Reply-To:1': 0.22; 'mon,': 0.22; 'builds': 0.23; 'received:209.85.214.174': 0.23; 'received:mail- iw0-f174.google.com': 0.23; 'pointing': 0.25; 'chris': 0.27; 'function': 0.27; 'message-id:@mail.gmail.com': 0.28; 'server': 0.29; 'list': 0.30; 'to:addr:python-list': 0.32; 'another': 0.32; 'example,': 0.33; 'there': 0.35; 'file': 0.35; 'getting': 0.36; 'some': 0.37; 'received:209.85': 0.37; 'apr': 0.38; 'http': 0.38; 'results.': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'port': 0.38; 'them,': 0.38; 'lets': 0.39; 'received:209.85.214': 0.39; 'set': 0.39; 'to:addr:python.org': 0.39; 'could': 0.39; 'received:209': 0.39; 'requests': 0.40; 'sets': 0.40; 'would': 0.40; 'header:Received:5': 0.40; 'retrieve': 0.60; 'simple': 0.60; '2011': 0.62; 'computers': 0.64; 'browser': 0.64; 'subject:program': 0.68; '11,': 0.77; 'subject:commands': 0.84; 'webservice': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=5Iytdd+WjzK4bhRxVn8KwbbZJBIhteXAYaMJe3LITcM=; b=N+c8rmonxIEX6sldfyTjitoTC4JbI6vC8U9orQ49rkxoTEyo/o+RFv3y8z2cTMJ6ID yo5qhk6mp0u0zDueDAcffGZ5xkmUwnUGxQT46pw+wGSU9Nq3nz9bDp9atIMPAqezaG6b /D9xjuYe71jSAFZXcR6onuCv8Qz3qEAudbKuo=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=VH9Q+hwWxrH0jixoOV0dKY5LFxFkUgDh4BzBjQMC8ZC3WMlD9D6c6YrTCZZ2Q+NLCq 8gQfWPK800VSO8FWMJZjciUTMMqLFr1zdkwCLsogqpmqXns8hUVw+TIfm/5H3+glip4i iNEMOeMguHLwCNN0BUaoPxQv+ej86kONBkRSM=
MIME-Version 1.0
In-Reply-To <f6980be4-2917-4613-af31-e80316bd5c55@v31g2000vbs.googlegroups.com>
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> <vg3k4f53md2.fsf@pepper.modeemi.fi> <inl7g9$9u6$1@r03.glglgl.eu> <f6980be4-2917-4613-af31-e80316bd5c55@v31g2000vbs.googlegroups.com>
Date Mon, 11 Apr 2011 00:42:22 +1000
Subject Re: How to program in Python to run system commands in 1000s of servers
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.192.1302446544.9059.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 82.94.164.166
X-Trace 1302446544 news.xs4all.nl 81482 [::ffff:82.94.164.166]:38962
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:2946

Show key headers only | View raw


On Mon, Apr 11, 2011 at 12:22 AM, Babu <babukk@gmail.com> wrote:
> Are there any more different approaches?  I suppose if we take the
> daemon approach then we can make it as a webservice as well?

Yes, your daemon could function via HTTP. But if you go that route,
you would need some way to collect all the different computers'
results.

For example, suppose you build your daemon to respond to HTTP requests
on port 8000, with a document name like "/status". You could then
retrieve _one_ computer's status by pointing your browser to
http://computername/status - but that's only one. You would then need
a wrapper somewhere to collect them, for instance:


<iframe src="http://computer1/status"></iframe>
<iframe src="http://computer2/status"></iframe>
<iframe src="http://computer3/status"></iframe>

etc. If you're always getting status on the same set of computers (or
a few standard sets of computers), this could be a simple .HTML file
that you have on your hard disk; otherwise, you may want to consider
another web server that lets you tick which ones to query, and builds
an iframe list from your selections.

Chris Angelico

Back to comp.lang.python | Previous | NextPrevious 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