6.5.1

Table Of Contents
Here IP-addresses-or-host-names is a comma-separated list of IP addresses or host names of the NTP
servers.
This command adds NTP servers to the conguration. If the time synchronization is based on an NTP
server, then the NTP daemon is restarted to reload the new NTP servers. Otherwise, this command just
adds the new NTP servers to the existing NTP conguration.
3 (Optional) To delete old NTP servers and add new ones to the vCenter Server Appliance conguration,
run the ntp.server.set command.
For example, run the following command:
ntp.server.set --servers IP-addresses-or-host-names
Here IP-addresses-or-host-names is a comma-separated list of IP addresses or host names of the NTP
servers.
This command deletes old NTP servers from the conguration and sets the input NTP servers in the
conguration. If the time synchronization is based on an NTP server, the NTP daemon is restarted to
reload the new NTP conguration. Otherwise, this command just replaces the servers in NTP
conguration with the servers that you provide as input.
4 (Optional) Run the command to verify that you successfully applied the new NTP conguration
seings.
ntp.get
The command returns a space-separated list of the servers congured for NTP synchronization. If the
NTP synchronization is enabled, the command returns that the NTP conguration is in Up status. If the
NTP synchronization is disabled, the command returns that the NTP conguration is in Down status.
What to do next
If the NTP synchronization is disabled, you can congure the time synchronization seings in the
vCenter Server Appliance to be based on an NTP server. See “Synchronize the Time in the vCenter Server
Appliance with an NTP Server,” on page 49.
Synchronize the Time in the vCenter Server Appliance with an NTP Server
You can congure the time synchronization seings in the vCenter Server Appliance to be based on an NTP
server.
Prerequisites
Set up one or more Network Time Protocol (NTP) servers in the vCenter Server Appliance conguration.
See Add or Replace NTP Servers in the vCenter Server Appliance Conguration,” on page 48.
Procedure
1 Access the appliance shell and log in as a user who has the administrator or super administrator role.
The default user with super administrator role is root.
2 Run the command to enable NTP-based time synchronization.
timesync.set --mode NTP
3 (Optional) Run the command to verify that you successfully applied the NTP synchronization.
timesync.get
The command returns that the time synchronization is in NTP mode.
Chapter 4 Using the Appliance Shell to Configure the vCenter Server Appliance
VMware, Inc. 49