I have 100 servers which need a new backup server added to a text file, and then the backup agent restarted.
Ravi Teja
webraviteja at gmail.com
Sat Jul 1 16:11:24 EDT 2006
gavino wrote:
> list of servers L.txt
> #cat L.txt
> config file is /var/bkupexec/agent.cfg need to add "tell epobackup" to
> bottom of file
> # cat "tell epobackup" >> /var/bkupexec/agent.cfg
> agent is /etc/init.d/agent.ini stop (and then start)
> # /etc/init.d/agent.init stop
> # /etc/init.d/agent.init start
> os=redhat ent 4ES
> I intend to use root password which is same for all 100 servers.
> #now I'm stuck
Read L.txt from (not your shell as you seem to be doing) Python and
connect to each one from pxssh, and send the commands you listed. I am
afraid, you will have to readup and experiment on a smaller scale. The
sample I pointed you to is a rather simple one and you don't seem to
have even tried it.
More information about the Python-list
mailing list