
06-14-2007, 10:59 PM
|
|
Newbie
|
|
Join Date: Dec 2006
Posts: 11
|
|
How to update more than one server
Hey friends
I am with 13 servers in the planet. It would like to know it has as it updates them in a way simpler that I am doing. I update 1 for 1.
Sorry my english.
Cheers
|

06-14-2007, 11:09 PM
|
|
Always Learning...
|
|
Join Date: Aug 2002
Location: Bharat
Posts: 4,575
|
|
Are they Linux Servers or Windows?
Are you using any Control Panel?
|

06-15-2007, 12:56 AM
|
|
Newbie
|
|
Join Date: Dec 2006
Posts: 11
|
|
Hey
Sorry, I forgot to write these information in post previous.
I use Linux in all machines and use WHM.
Despite I use Linux in all machines, in case I bought a server windows, would it be possible to update more than one for time?
Cheers
|

06-15-2007, 02:41 AM
|
|
Always Learning...
|
|
Join Date: Aug 2002
Location: Bharat
Posts: 4,575
|
|
Most of the control panel has got the ability to upgrade system softwares using cron or scheduling.
Explore WHM and you will see that you can set it up to upgrade itself on regular basis.
|

06-15-2007, 02:50 AM
|
|
Web Hosting Master
|
|
Join Date: Apr 2002
Location: Australia or US depends
Posts: 5,723
|
|
Is what you want a mass management script. One where you run a command from a mother server that will log into all other servers at once and run that command on all servers.
Is that what you are wanting to do?
For instance I have mine set up so that when I want to run for example a update on mod_security I can type the command and it will run it on all servers at once.
|

06-15-2007, 03:03 AM
|
|
WebHosting Master
|
|
Join Date: Dec 2006
Posts: 4,075
|
|
Maybe you can setup 1 server to perfection, then rsync it to the rest.
Then afterwards, keep doing rsyncs to keep the config/changes intact on the other servers as well.
|

06-15-2007, 07:26 AM
|
|
Newbie
|
|
Join Date: Oct 2006
Posts: 17
|
|
From i understand cpanel has a global time that if you server is on automatic updates it will sync with cpanel at this time well with my 5 servers ive noticed they all update at midnight uk time every night and there in different location this may not be the same for you i dont know its just a theory
|

06-15-2007, 07:34 AM
|
|
Web Hosting Master
|
|
Join Date: Apr 2002
Location: Australia or US depends
Posts: 5,723
|
|
Cpanel updates via cron nightly if you set it for auto updates but that is not what he is wanting to do.
There are many times you need to run the same command on all servers, I think what he wants to avoid is having to log into each server one at a time and run the command.
|

06-15-2007, 07:37 AM
|
|
Newbie
|
|
Join Date: Oct 2006
Posts: 17
|
|
No i mean i have upcp alerts delivered to my email ok i dont log into the server to do them it does it sutomatically but i always recieve the emails at the same time for each server
|

06-15-2007, 03:49 PM
|
|
Newbie
|
|
Join Date: Dec 2006
Posts: 11
|
|
Quote:
Originally Posted by Techark
Cpanel updates via cron nightly if you set it for auto updates but that is not what he is wanting to do.
There are many times you need to run the same command on all servers, I think what he wants to avoid is having to log into each server one at a time and run the command.
|
Techark
It is exactly that that I want to do. It would like to just to type once and sweep all the other servers automatically. Thus, I would go to avoid have to keep updating one for one.
|

06-15-2007, 10:07 PM
|
|
Community Liaison 2.0
|
|
Join Date: Nov 2002
Location: WebHostingTalk
Posts: 8,674
|
|
* Moved to Technical and Security Issues....
Sirius
|

06-15-2007, 10:17 PM
|
|
Engineer
|
|
Join Date: Jan 2005
Location: Scotland, UK
Posts: 2,380
|
|
The simple answer is scripts.
To execute on all servers you are going to need to use keys for ease of use and then you can just for loop the list of servers.
For example I normally do something like this,
# for i in `cat /etc/servers | head -n 8`;do $(/root/execute $i "uname -r");done
2.6.21.3-admingeekz
2.6.21.3-admingeekz
2.6.21.3-admingeekz
2.6.19.2-grsec
2.6.21.3-admingeekz
2.6.21.3-admingeekz
2.6.21.3-admingeekz
2.6.19.2-grsec
with /root/execute just using ssh from the command line to specify which key to use (the keys are stored as the hostname) and then which port etc.
It's one of the easier methods, you can also use cronjobs but you might want to stay away from that route.
What exactly do you want to "update" as such?
__________________
Server Management - AdminGeekZ.com
Infrastructure Management, Web Application Performance, mySQL DBA. Keep your servers online.
United Kingdom: *0800 8620073* // United States: *585 563 1729* // Australia: *02 9037 2448* // International: *+44.1412800134*
Scott Mcintyre
|

06-15-2007, 11:12 PM
|
|
Newbie
|
|
Join Date: Dec 2006
Posts: 11
|
|
Well, I would like to update the system whenever it has an alert. I use RedHat and am written in newsletter. Whenever it arises a bug, I have to update of one for a. So, I wanted whenever it was necessary to update, update all of an unique time.
|

06-18-2007, 12:34 PM
|
|
Newbie
|
|
Join Date: Dec 2006
Posts: 11
|
|
Please, someone could help.
Any hint / article / tutorial of how to do to update all the servers at the same time.
|

06-18-2007, 01:11 PM
|
|
Web Hosting Guru
|
|
Join Date: Jul 2006
Location: On top of the Servers
Posts: 316
|
|
You need to write a shell script to accomplish this task. Develop a shell script that performs the "update" and write another script that will log into each servers and download the update script and runs it. In this way, you can run the update on all servers. Most of the system administers, I for one, follow this method to perform a task on multiple servers.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|