Chapter 4: Using the Command Line Interface
156
Determining the Time Setup Method
This command determines the method to configure the system date and time.
config:#
time method <method>
Variables:
•
<method> is one of the time setup options:
manual
or
ntp
.
Mode
Description
manual
The date and time settings are customized.
ntp
The date and time settings synchronize with a specified NTP server.
Setting NTP Parameters
A time configuration command that is used to set the NTP parameters begins with
time ntp
.
Specifying the Primary NTP Server
This command specifies the primary time server if synchronization with the NTP server is enabled.
config:#
time ntp firstServer <first_server>
Variables:
•
The <first_server> is the IP address or host name of the primary NTP server.
Specifying the Secondary NTP Server
This command specifies the primary time server if synchronization with the NTP server is enabled.
config:#
time ntp secondServer <second_server>
Variables:
•
The <second_server> is the IP address or host name of the secondary NTP server.
Overriding DHCP-Assigned NTP Servers
This command determines whether the customized NTP server settings override the DHCP-specified NTP servers.
config:#
time ntp overrideDHCPProvidedServer <option>