Results 1 to 18 of 18
-
06-14-2007, 10:59 PM #1Newbie
- 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 #2Always Learning...
- Join Date
- Aug 2002
- Location
- Bharat
- Posts
- 4,808
Are they Linux Servers or Windows?
Are you using any Control Panel?Vinsar.Net - Quality Web Hosting at Economical Price on USA & European Servers
Offering domains, shared, reseller & VPS hosting.
Reliable Domain Reseller Account Resell Domains with Confidence
-
06-15-2007, 12:56 AM #3Newbie
- 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 #4Always Learning...
- Join Date
- Aug 2002
- Location
- Bharat
- Posts
- 4,808
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.Vinsar.Net - Quality Web Hosting at Economical Price on USA & European Servers
Offering domains, shared, reseller & VPS hosting.
Reliable Domain Reseller Account Resell Domains with Confidence
-
06-15-2007, 02:50 AM #5Web Hosting Master
- Join Date
- Apr 2002
- Location
- USA
- Posts
- 5,783
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 #6WebHosting Master
- Join Date
- Dec 2006
- Posts
- 4,151
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 #7Newbie
- 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 #8Web Hosting Master
- Join Date
- Apr 2002
- Location
- USA
- Posts
- 5,783
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 #9Newbie
- 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 #10Newbie
- Join Date
- Dec 2006
- Posts
- 11
-
06-15-2007, 10:07 PM #11Retired Moderator
- Join Date
- Nov 2002
- Location
- WebHostingTalk
- Posts
- 8,901
* Moved to Technical and Security Issues....
SiriusI support the Human Rights Campaign!
Moving to the Tampa, Florida area? Check out life in the suburbs in Trinity, Florida.
-
06-15-2007, 10:17 PM #12Engineer
- Join Date
- Jan 2005
- Location
- Scotland, UK
- Posts
- 2,681
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. System Automation.
WordPress/Magento Performance, Apache to Nginx Conversion, Varnish Implimentation, DDoS Protection, Custom Nginx Modules
Check our wordpress varnish plugin. Contact us for quote: sales@admingeekz.com
-
06-15-2007, 11:12 PM #13Newbie
- 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 #14Newbie
- 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 #15Web Hosting Guru
- Join Date
- Jul 2006
- Location
- On top of the Servers
- Posts
- 323
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.
|| Techbrace :: 24 x 7 Outsourced Web Hosting Support since 2006
|| For Hosting Companies & Data Centres :: Helpdesk / Chat / Phone / Social Media :: cPanel / Plesk / DirectAdmin
|| Dedicated / VPS / Cloud Server Management :: Server Support On Demand :: Fully Managed Servers
-
06-18-2007, 07:05 PM #16Newbie
- Join Date
- Dec 2006
- Posts
- 11
I understood.
But he would have some tutorial for that? Why I use Linux, but do not know how to program in shell script. And I think I do not am going to learn in little time. If you had a tutorial, article, book, anything that can assist, even though are a little different than I want. Something for at least I try to initiate in the development of one stays how I want, it would be great.
Thank you very much by the hints.
-
06-18-2007, 07:10 PM #17Web Hosting Master
- Join Date
- Feb 2003
- Location
- Canada
- Posts
- 1,010
I use a tool called Capistrano to manage multiple servers.
It was built specificially for the task. It's commonly used to roll out Ruby on Rails applications, but the way it is designed allows it to perform pretty much anything server related. I'm sure there are some great capfile tasks floating around that will enhance Cap.
www.capify.org
-
06-19-2007, 12:48 AM #18Newbie
- Join Date
- Dec 2006
- Posts
- 11
Thanks.
I am reading that site.
If someone can most help, with use of Shell Script.