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

2006-07-03 Thread [EMAIL PROTECTED]
Hehe, yeah, it does feel like swearing =) That solution works, as long as the network behaves PERFECTLY and you've allready configured the server to use your SSH key instead of a password. Expect, by its nature, waits until the right time to say things Sample pexpect code: - Code

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

2006-07-02 Thread Ove Pettersen
gavino wrote: 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

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

2006-07-02 Thread Petr Jakeš
g This seems easy but I have been asking tcl and python IRC chat all day g and no one gave an answer. g I have 100 servers which need a new backup server added to a text file, g and then the backup agent restarted. g If I have a list of the servers, all with same root password, and the g

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

2006-07-02 Thread Michael Abbott
Ove Pettersen [EMAIL PROTECTED] wrote: for server in server1 server2 server3 server100; do Two comments: 1. Leave out the quotes(!) 2. Either iterate as for server in $(seq -fserver%g 100); do or, probably better for server in $(cat server-list); do --

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

2006-07-01 Thread gavino
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.

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

2006-07-01 Thread Ravi Teja
gavino wrote: 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

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

2006-07-01 Thread LittlePython
Does this require a ssh client or server? I use authpf to open up my PF firewall for internet use. Generally I just open up putty and make a connection to the FW ( which open the ports) and minize it till I am done. When I close putty authpf losses the ssh session heartbeat and will then

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

2006-07-01 Thread gavino
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

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

2006-07-01 Thread Ravi Teja
LittlePython wrote: Does this require a ssh client or server? I use authpf to open up my PF firewall for internet use. Generally I just open up putty and make a connection to the FW ( which open the ports) and minize it till I am done. When I close putty authpf losses the ssh session

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

2006-07-01 Thread LittlePython
thx, Ravi Teja [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] LittlePython wrote: Does this require a ssh client or server? I use authpf to open up my PF firewall for internet use. Generally I just open up putty and make a connection to the FW ( which open the ports) and

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

2006-07-01 Thread Ravi Teja
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

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

2006-07-01 Thread [EMAIL PROTECTED]
I would sugest looking at http://pexpect.sourceforge.net/ The Expect metalanguage was specifically designed for the kind of things you are trying to do. I used it recently on a project to configure 25 instances of an application, remotly, half over ssh half over telnet. --

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

2006-07-01 Thread Paul McGuire
gavino [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

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

2006-07-01 Thread Thorsten Kampe
* gavino (2006-07-01 11:34 +) 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