Amending ESX Time
For those of you that don’t or can’t use NTP on your ESX servers and occasionally have problems with time, here’s how to alter the time through the command line.
The date command is a standard Linux command, but is not the easiest to remember the parameter order for setting a new date/time.
Firstly log onto your ESX box via a putty session or by physically standing at the machine and type date and you’ll see something like:
[root@northesx01 root]# date
Thu May 1 14:57:55 BST 2008
If this time is out like mine was, then type the following:
date -s “MM/DD/YYYY HH:SS”
So in my case it looked something like this:
date -s “05/01/2008 15:07″
Once you’ve completed this it is a good idea to sync the hardware clock with the Service Console and this is done using another standard Linux command called hwclock.
To check the current time for the hardware clock type:
hwclock
After this type:
hwclock –systohc
All done.
I would say at this point that it is always best to use NTP where possible.













May 2nd, 2008 at 4:49 pm
[...] posted Amending ESX Time which is a great guide for setting the time on an ESX host when you can not automatically sync with [...]
August 1st, 2008 at 10:37 am
Hi,
a question about date
on one box I get
Thu May 1 14:57:55 BST 2008
another one
Thu May 1 14:57:55 GMT 2008
do you know where this is GMT/ BST text is set etc.
Thanks David
August 4th, 2008 at 9:46 am
[...] a request on a previous post, I have written this post about how to change the timezone of an ESX host from the command [...]
August 4th, 2008 at 9:46 am
Hi David
Please see the following link I wrote especially for you:
http://www.vm-aware.com/2008/08/04/changing-esx-timezone
Cheers
Paul
August 12th, 2008 at 12:47 pm
[...] To change the date simply check out this post. [...]