ESXi date and time

METHOD1: GUI
To configure NTP on ESX/ESXi 4.1 and ESXi 5.x hosts using the vSphere Client:
Connect to the ESX/ESXi host using the vSphere Client.
Select a host in the inventory.
Click the Configuration tab.
Click Time Configuration.
Click Properties.
Click Options.
Click NTP Settings.
Click Add.
Enter the NTP Server name. For example, pool.ntp.org.
Note: When entering the multiple NTP Server names, use a comma (,) followed by a space ( ) between the entries.
Click OK.
Click the General tab.
Click Start automatically under Startup Policy.
Note: It is recommended to set the time manually prior to starting the service.
Click Start and click OK.
Click OK to exit.
METHOD2: CLI
# cat /etc/ntp.conf
restrict default kod nomodify notrap nopeer
restrict 127.0.0.1
server id.ntp.pool.org
driftfile /etc/ntp.drift
#esxcli network firewall ruleset set –enabled=true –ruleset-id=ntpClient
#esxcli network firewall ruleset set –enabled=true –ruleset-id=updateManager
#esxcli network firewall ruleset set –enabled=true –ruleset-id=httpClient
#esxcli network firewall ruleset set –enabled=true –ruleset-id=iSCSI
#esxcli network firewall ruleset set –enabled=true –ruleset-id=syslog
#chkconfig –add ntpd
#date MMDDhhmmYYYY
#hwclock –systohc

#esxcli network ip dns server add –server=192.168.0.11

#esxcli system hostname set –host=esx0
#esxcli system hostname set –domain=poc.com
#vim-cmd vimsvc/license –set xxxxx-xxxxx-xxxxx-xxxxx-xxxx
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s