Specifications
set clock ntp
69
set clock ntp
Manually obtains the time from the NTP server.
Syntax
set clock ntp [<Server IP>]
Input mode
User mode and administrator mode
Parameters
<Server IP>
Specifies the NTP server address.
Operation when this parameter is omitted:
The NTP server address that is set by using the
ntp client server
configuration command (primary address) is used. If the time cannot be
obtained by using the primary address, the secondary address that is set by
using the
ntp client server command is used.
Example
> set clock ntp
Executed > Please check a result by 'show ntp-client'.
>
Impact on communication
None
Response messages
Table 6-2 List of response messages for the set clock ntp command
Message Description
Failure > Please specify a NTP server address. Set the NTP server address.
Failure > Busy. The command is already being executed. Wait a while, and
then retry the operation.
Can't execute. The command could not be executed. Re-execute the
command.
Executed > Please check a result by 'show
ntp-client'.
To check the execution result, execute the show
ntp-client command.
Notes
You can execute this command even if the ntp client server configuration
command has not been set. If the
ntp client server command has not been set,
use this command to specify the NTP server address.
The result is displayed within about 30 seconds after execution of this command.