VMware

Ntp Namespace

Ntp namespace provides commands Gets NTP configuration status and tests connection to ntp servers.

List of commands:



Test Command

dcli com vmware appliance ntp test

Description

Test the connection to a list of ntp servers.

Options

Option Name Type Required Description
servers string Yes List of host names or IP addresses of NTP servers.

Example

dcli com vmware appliance ntp test --servers testString


Set Command

dcli com vmware appliance ntp set

Description

Set NTP servers. This method updates old NTP servers from configuration and sets the input NTP servers in the configuration. If NTP based time synchronization is used internally, the NTP daemon will be restarted to reload given NTP configuration. In case NTP based time synchronization is not used, this method only replaces servers in the NTP configuration.

Options

Option Name Type Required Description
servers string Yes List of host names or ip addresses of ntp servers.

Example

dcli com vmware appliance ntp set --servers testString


Get Command

dcli com vmware appliance ntp get

Description

Get the NTP configuration status. If you run the 'timesync.get' command, you can retrieve the current time synchronization method (NTP- or VMware Tools-based). The 'ntp' command always returns the NTP server information, even when the time synchronization mode is not set to NTP. If the time synchronization mode is not NTP-based, the NTP server status is displayed as down.

Example

dcli com vmware appliance ntp get