How to program in Python to run system commands in 1000s of servers
nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915 at spamschutz.glglgl.de
Thu Apr 7 22:40:40 CEST 2011
Am 07.04.2011 21:14, schrieb Anssi Saari:
> Chris Angelico<rosuav at 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.
But only once...
> 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.
Maybe that works. But it is much, much worse than using keys...
More information about the Python-list