VMware Cloud Community
wsanders11
Enthusiast
Enthusiast

How to manage NTP from command line in ESXi 6?

Is there a way to manage ntp from the ESXi shell without setting up DCLI and access to the vicfg-ntp command?

4 Replies
dja234
Enthusiast
Enthusiast

1. ssh to the host

2. /etc/ntp.conf file from vi editor

3. add server entries as belows

4. restart ntp service /etc/init.d/ntpd restartntp.PNG

Darshana Jayathilake
salmanhassan172
Contributor
Contributor

Please refer below blog for all configuration of NTP from ESXi using cli.

https://rtfmp.com/2015/03/28/configure-ntp-in-esxi-from-the-command-line/

wsanders11
Enthusiast
Enthusiast

Thanks.

Although once I got the hosts in vCenter it was much easier to use a Host Profile for this.

0 Kudos
ipv6
VMware Employee
VMware Employee

Not in 6.x, but in  7.0.x, there's new esxcli support:

For example:

esxcli system ntp set --reset  # reset ntp to factory state

esxcli system ntp set --server time.cloudflare.com --server 2001:19f0:8001:afd:5400 --enabled true

esxcli system ntp get

        Enabled: true

        Loglevel: warning

        Servers: time.cloudflare.com, 2001:19f0:8001:afd:5400

0 Kudos