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: 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: References: <0bb6311b-135a-4458-9258-1eca3be3cd31@q12g2000prb.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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Mon, Apr 11, 2011 at 12:22 AM, Babu wrote: > Are there any more different approaches? =A0I 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: 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