VMware vSphere

 View Only
  • 1.  configure ntp service via cli

    Posted Sep 12, 2018 03:28 PM

    hi im setting up a host and using a kick start file.

    i need help to start the service and configure ntp server #1 and ntp server #2

    can anyone assist me with the syntax? my host is ESXi 6.5 version.



  • 2.  RE: configure ntp service via cli

    Posted Sep 12, 2018 04:13 PM

    AFAIK, the only way to configure NTP via command line is to use the vicfg-ntp cmdlet and with ESXi 6.5, vicfg seems to be completely deprecated. There is no esxcli substitute for the vicfg-ntp cmdlet. With this, I don't think we have a way to configure NTP via the kickstart file. Look for vicfg-ntp in the below document on page no. 14 -

    https://vdc-download.vmware.com/vmwb-repository/dcr-public/0a40d9c5-4d4b-490d-8efa-e373a0ff2109/e216c09f-f240-4f38-87b8-…

    Cheers,

    Supreet



  • 3.  RE: configure ntp service via cli

    Posted Sep 12, 2018 04:21 PM

    yes i did see this document. the vicfg does not work.

    surely there must be some way to do this.



  • 4.  RE: configure ntp service via cli



  • 5.  RE: configure ntp service via cli

    Posted Sep 12, 2018 05:27 PM

    i manually ran this cmd  "/etc/init.d/ntpd restart" via putty and it appears to start the service .

    However,  when i look at the NTP service status in the GUI it shows as being stopped.

    any ideas?