I've had a Vi3 setup going for about 9 months with 3 ESX hosts and VC. Since the time changed this weekend, I decided I would verify that the time on my hosts is correct. So I ssh'ed into them and run the date and clock commands. I appears that 2 of my hosts are a few hours off, but one of them is about 18 months off! I have never noticed before since the VC server has the correct time and my logs and perf data in VC all apear to have the right time and date. I cannot seem to to find any documentation on how to change the time and date on an ESX host. So my questions are, do I care that my ESX hosts have the wrong time, since VC has the right time. And if I do care, how do I change the time and date? Thanks.
I would definitely configure the ESX hosts to synch off of an NTP server:
Here are the steps as documented by esiebert7625
How can I configure my ESX Server to automatically sync the time from a NTP source?
• Login to service console
• Edit /etc/ntp.conf with Nano or Vi
• Add the below lines to the OUR TIMESERVERS section
restrict default kod nomodify notrap
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
• Save & exit
• Edit /etc/ntp/step-tickers with Nano or Vi
• Add the below lines
0.pool.ntp.org
1.pool.ntp.org
2.pool.ntp.org
pool.ntp.org
• Save & exit
• Type "esxcfg-firewall -enableService ntpClient" or use VI Client to enable under ConfigurationSecurity ProfileProperties
• Type "service ntpd restart" - may say failed for stop if not currently running
• Type "chkconfig --level 345 ntpd on" to enable NTP daemon to autostart
• Type "hwclock --systohc" to set hardware clock to system clock
• Type "ntpdate -q 0.pool.ntp.org" to see the offset between local and ntp clock
###############
If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!
I would definitely configure the ESX hosts to synch off of an NTP server:
Here are the steps as documented by esiebert7625
How can I configure my ESX Server to automatically sync the time from a NTP source?
• Login to service console
• Edit /etc/ntp.conf with Nano or Vi
• Add the below lines to the OUR TIMESERVERS section
restrict default kod nomodify notrap
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
• Save & exit
• Edit /etc/ntp/step-tickers with Nano or Vi
• Add the below lines
0.pool.ntp.org
1.pool.ntp.org
2.pool.ntp.org
pool.ntp.org
• Save & exit
• Type "esxcfg-firewall -enableService ntpClient" or use VI Client to enable under ConfigurationSecurity ProfileProperties
• Type "service ntpd restart" - may say failed for stop if not currently running
• Type "chkconfig --level 345 ntpd on" to enable NTP daemon to autostart
• Type "hwclock --systohc" to set hardware clock to system clock
• Type "ntpdate -q 0.pool.ntp.org" to see the offset between local and ntp clock
###############
If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!
Thanks, that worked beautifully.
Dear all
i want to change time in ESXI 4.1
can any one help me
thanks
Hi,
Selec the specific ESXi host - go to - "configuration" tab & select the " Time Configuration" to modify the time & date.