I have 100 servers which need a new backup server added to a text file, and then the backup agent restarted.

Thorsten Kampe thorsten at thorstenkampe.de
Sat Jul 1 21:41:30 EDT 2006


* gavino (2006-07-01 11:34 +0000)
> This seems easy but I have been asking tcl and python IRC chat all day
> and no one gave an answer.
> I have 100 servers which need a new backup server added to a text file,
>  and then the backup agent restarted.
> If I have a list of the servers, all with same root password, and the
> connection is ssh.
> How do I connect to the server, cat the line to the config file, stop
> adn start the agent, and then do same to next server in list and
> iterate through the 100 servers. 
> What script would allow this?

Tentakel



More information about the Python-list mailing list