Is there a way to manage ntp from the ESXi shell without setting up DCLI and access to the vicfg-ntp command?
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 restart
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/
Thanks.
Although once I got the hosts in vCenter it was much easier to use a Host Profile for this.
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