sntp server priority

Syntax

[no] sntp server priority <ip-address>
        

Description

Polls for the current time among configured SNTP servers.

Parameters and options

no

Deletes a server address. If there are multiple addresses and you delete one of them, the switch re-orders the address priority.

server priority <1-3>

Specifies the polling order of the configured SNTP servers. Value is between 1 and 3.

<IP-ADDRESS>

Supports bot IPv4 and IPv6 addresses.

Set the server priority

To set one server to priority 1 and another to priority 2:

switch# sntp server priority 1 10.28.22.141
switch# sntp server priority 2 2001:db8::215:60ff:fe79:8980

Delete a server address

To delete the primary address and automatically convert the secondary address to primary:

switch(config)# no sntp server 10.28.227.141