User Manual

[Input mode]
global configuration mode
[Description]
Registers the address or host name of the NTP server.
If this command is executed when the NTP server is already registered, the information is overwritten.
If this command is executed with the "no" syntax, the setting returns to the default.
[Example]
Specify 192.168.1.1 as the NTP server.
SWP1(config)#ntpdate server ipv4 192.168.1.1
Specify ntp.example.com as the NTP server.
SWP1(config)#ntpdate server name ntp.example.com
4.5.5 Synchronize time from NTP server (one-shot update)
[Syntax]
ntpdate oneshot
[Input mode]
priviledged EXEC mode
[Description]
Attempts to obtain time information from the registered NTP server.
This is performed only once when this command is executed.
[Example]
Obtain time information from the NTP server.
SWP1#ntpdate oneshot
4.5.6 Synchronize time from NTP server (update interval)
[Syntax]
ntpdate interval interval-time
no ntpdate interval
[Parameter]
interval-time : <0-24>
Interval (hours) for time synchronization. If this is set to 0 hours, periodic synchronization will not
occur.
[Initial value]
ntpdate interval 1
[Input mode]
global configuration mode
[Description]
Specifies the interval (in one-hour units) at which time information is periodically obtained from the registered NTP server.
If this command is executed with the "no" syntax, the setting returns to the default.
When this command is executed, the time is updated immediately, and is subsequently updated at the specified interval.
[Example]
Request the time every two hours.
SWP1(config)#ntpdate interval 2
Disable periodic time synchronization.
SWP1(config)#ntpdate interval 0
Command Reference | Maintenance and operation functions | 39