set sntp server

Use this command to add a server from which the SNTP client will retrieve the current time when operating in unicast mode. Up to 10 servers can be set as SNTP servers.

Syntax

set sntp server {ip-address | hostname} [precedence][key key-instance]

Parameters

ip-address | hostname Specifies the SNTP server‘s IPv4 or IPv6 address or hostname.
precedence (Optional) Specifies this SNTP server‘s precedence in relation to its peers. Valid values are 1 (highest) to 10 (lowest).
key key-instance (Optional) Specifies the authentication instance used by the client when requesting synchronization with the specified server.

Defaults

  • If precedence is not specified, a precedence of 1 will be applied.
  • If key key-instance is not specified, SNTP authentication will not occur on the server.

Mode

All command modes.

Example

This example shows how to set the server at IP address 10.21.1.100 as an SNTP server and to SNTP authenticate using authentication key instance 1:

System(rw)->set sntp server 10.21.1.100 key 1