You are here: Re: I have 100 servers which need a new backup server added to a text file, « PHP Programming Language « IT news, forums, messages
Re: I have 100 servers which need a new backup server added to a text file,

Posted by gavino on 07/01/06 18:43

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

David Haynes wrote:
> 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
> > 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?
> >
> Curl will let you do this.
>
> -david-

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация