virtual_Vic
Contributor
Contributor

How do I edit the time on an ESX server (vi3)

Jump to solution

Hello all,

What is the command to edit\configure\change the time on an esx host.

Thanks,

-Vic

0 Kudos
1 Solution

Accepted Solutions
Dave_Mishchenko
Immortal
Immortal

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.

View solution in original post

0 Kudos
4 Replies
IB_IT
Expert
Expert

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

Dave_Mishchenko
Immortal
Immortal

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.

View solution in original post

0 Kudos
rossb2b
Hot Shot
Hot Shot

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

virtual_Vic
Contributor
Contributor

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

0 Kudos