Script to setup NTP on ESX 3.x
I threw together a script Set_NTP.zip this afternoon to automatically setup NTP on an ESX 3.x server. There are basically 3 ways to run it:
Interactively - enter every NTP server name / IP.
Semi-automatic - specify a file that has a list of NTP servers, you are shown the servers and then you must confirm that they are correct.
Fully automatic - specify a file with a list of NTP servers and they are added with out prompting.
If you look at the very top of the file there are some examples on how to use the file. Any comments or feedback are appreciated.
Posted: May 9th, 2007 under Virtualization, Linux.
Comments: 14
Comments
Pingback from Saputello.net - Script to setup NTP on ESX 3.x
Time: May 22, 2007, 3:27 am
[…] Per le spiegazioni del funzionamento, anche se molto semplice vi rimando al sito ufficiale di chi ha fatto il suddetto script che trovate quà […]
Comment from Srinivas
Time: June 27, 2007, 2:29 am
Hi,
This is really cool and great script, i would like to give one small suggestion. While modifying the ntp.conf and other conf files please create a backup file of the existing conf file and then edit using conf files. Let me know if you feel otherwise.
Thanks
Srinivas
Comment from david
Time: June 27, 2007, 2:21 pm
In response to Srinivas’s comment:
This actually already makes a backup of the ntp.conf and the step-tickers files (which are the only files that are changed). You can find the backup files at /etc/ntp.conf.bk and /etc/ntp/step-tickers.bk .
Comment from tom
Time: July 16, 2007, 2:18 pm
A short comment to show where this script should be installed and run would be much appreciated by those new or rusty/unused to linux.
Thank you, Tom
Comment from david
Time: July 16, 2007, 5:12 pm
In response to Tom:
I do not have a recommendation on where to install this file - my linux knowledge is still pretty basic. Right or wrong, what I have is an NFS share mounted on all of my ESX servers. I store this and other scripts on this share. Then I just run it by changing to /vmfs/nfs/ and running ‘./set_ntp.sh’
Comment from david
Time: September 4, 2007, 10:24 am
There was a typo in my script. I have modified the code and corrected it. You will want to download the script and run it again. Thanks to Mark Slatem for pointing out the bug. For those interested the type was on the folllowing line: “echo “restrict default kod nomodify notrap” >> ntp.conf.tmp”. I had misspelled nomodify.
Comment from Bernard Tyers
Time: October 4, 2007, 6:58 am
Nice tool, great idea.
Save time during customisation… I would also recommend for all to look at Veearm Rootacces…new nice little tool..
regards
Bernie
Pingback from treesum VM /ETC » Blog Archive » Configure NTP on ESX
Time: December 12, 2007, 7:21 am
[…] I first found out about the setup_ntp.sh script from VMware Support. I have since discovered VMColonel » Script to setup NTP on ESX 3.x. I’m guessing this is where the script originated from? Regardless, this script has been a tremendous time saver. […]
Comment from Ronald Noronha
Time: January 25, 2008, 8:28 am
Excellent job! script did help me, thanks.
Comment from Zachary
Time: February 4, 2008, 4:04 pm
You rock! This is a great little script and just saved me a bunch of time! Thank you!
Pingback from VM-Aware » Blog Archive » ESX NTP Config Script
Time: February 25, 2008, 11:21 am
[…] Check it out at www.vmcolonel.net […]
Pingback from http://www.vmcolonel.net/?p=13
Time: March 16, 2008, 4:26 pm
[…] http://www.vmcolonel.net/?p=13 […]
Pingback from VM-Aware » Blog Archive » ESX NTP Config Script
Time: May 15, 2008, 9:16 am
[…] Check it out at www.vmcolonel.net Bookmarks […]
Comment from Marko Cesar
Time: May 12, 2009, 5:34 am
script does not run on esx3.5 update 4
Write a comment