Hello all,
What is the command to edit\configure\change the time on an esx host.
Thanks,
-Vic
You can change it with date -s but you may want to instead set it to sync with an external NTP source - http://kb.vmware.com/kb/1339. If you have version 2.5 of the VI client installed you can also set the NTP setup on the Configuration \ Time Configuration page.
You can check your ESX server hardware clocks by typing in:
Hwclock --show
You can modify the system time by typing
Date MMDDhhmmYYYY.ss
You can then sync the hardware clock with the system time by typing
Hwclock --systohc
You can change it with date -s but you may want to instead set it to sync with an external NTP source - http://kb.vmware.com/kb/1339. If you have version 2.5 of the VI client installed you can also set the NTP setup on the Configuration \ Time Configuration page.
you can also configure ntp
the file is in /etc/ntp.conf
configure step-tickers
the file is in /etc/ntp/step-tickers
and open firewall for ntpClient
esxcfg-firewall --enableService ntpClient
To all,
Much appreciated... we usually sync up to our time servers (our active directory). we open the ntp 123 port and have to edit step-tickers, and the ntp.conf file to do this. Net Eng forgot to open the ports so our VMs were all way off since the hosts were showing a date of sept of 07 and 2 hours off. I had to manually set the time until they opened the firewall ports for this.
Funny thing is... once i manually corrected the time, net eng got on and opened the ports... go figure.
Thanks again for all the responses guys.
-Virtual Vic