Kinnison
Expert
Expert

@PatrickDLong,


As far as I know what is injected into an object contained in the so-called "configstore" is always persistent on reboot (or so it seems).


So, either one starts manipulating objects using the "configstorecli" interface, in my opinion it is better to avoid if you do not know exactly what you are doing or, in the case of NTP settings, it is easier to set a file that contains all the necessary settings (a bit like once you manually edited the ntp.conf file) and then import it with the command:

esxcli system ntp set --file your_full_NTP_configurationfile_includingpath
esxcli system ntp set --enabled 1


Why do I need to explicitly re-enable the NTP service? Because I realized that by injecting a new NTP configuration file into the "configstore" the service had been set as disabled (in my specific case, your mileage may vary) and so it remains at a subsequent restart, so I suggest you to check the status of the changes made with the command:

esxcli system ntp get


Then you may edit the ntp.conf file and restart the service to avoid a reboot that might be inconvenient at the moment. The reason why I used the method I described to you is because I wanted to set my time source as preferred over the other time sources configured and reachable via the internet.

 

Regards,
Ferdinando


A note: In case of doubts and before acting, besides asking I suggest you consult the online help which (my personal opinion) is quite well done.

 

 

Reply
0 Kudos