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

2011-04-10 Thread Chris Angelico
On Mon, Apr 11, 2011 at 12:22 AM, Babu 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 differen

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

2011-04-10 Thread Babu
On Apr 8, 5:40 am, Thomas Rachel wrote: > Am 07.04.2011 21:14, schrieb Anssi Saari: > > > Chris Angelico  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

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

2011-04-07 Thread Thomas Rachel
Am 07.04.2011 21:14, schrieb Anssi Saari: Chris Angelico 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 eac

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

2011-04-07 Thread Anssi Saari
Chris Angelico 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

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

2011-04-07 Thread Chris Angelico
On Thu, Apr 7, 2011 at 9:27 PM, Anssi Saari wrote: > Roy Smith writes: > >>> 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

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

2011-04-07 Thread Anssi Saari
Roy Smith writes: > 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? I guess i

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

2011-04-06 Thread bruce bushby
Hi Roy Two things you can look at: func https://fedorahosted.org/func/ mcollective http://docs.puppetlabs.com/mcollective/ On Wed, Apr 6, 2011 at 2:24 AM, Roy Smith wrote: > In article , > geremy condra wrote: > > > On Tue, Apr 5, 2011 at 7:51 AM, Babu wrote: > > > > > > Here is my pr

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

2011-04-05 Thread Roy Smith
In article , geremy condra wrote: > On Tue, Apr 5, 2011 at 7:51 AM, Babu 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

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

2011-04-05 Thread geremy condra
On Tue, Apr 5, 2011 at 7:51 AM, Babu 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 ar

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

2011-04-05 Thread Babu
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 achie