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

Anssi Saari as at
Thu Apr 7 21:14:17 CEST 2011

Chris Angelico <rosuav at> 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.

More information about the Python-list mailing list