Management and Configuration Guide K/KA/KB.15.15

HP Switch(config)# sntp 300
Changing the SNTP server priority
You can choose the order in which configured servers are polled for getting the time by setting the
server priority.
Syntax
sntp <priority>
Specifies the order in which the configured servers are polled for getting the time
Value is between 1 and 3.
NOTE: You can enter both IPv4 and IPv6 addresses.
Example
To set one server to priority 1 and another to priority 2:
HP Switch(config)# sntp server priority 1 10.28.22.141
HP Switch(config)# sntp server priority 2
2001:db8::215:60ff:fe79:8980
Disabling time synchronization without changing the SNTP configuration
The recommended method for disabling time synchronization is to use the timesync command.
Syntax
no timesync
Halts time synchronization without changing your SNTP configuration.
Example
Suppose SNTP is running as the switch's time synchronization protocol, with
broadcast as the SNTP mode and the factory-default polling interval. You would
halt time synchronization with this command:
HP Switch(config)# no timesync
If you then viewed the SNTP configuration, you would see the following:
Example 18 SNTP with time synchronization disabled
HP Switch(config)# show sntp
SNTP Configuration
Time Sync Mode: Disabled
SNTP Mode : Broadcast
Poll Interval (sec) [720] : 720
Viewing all SNTP server addresses configured on the switch
The System Information screen in the menu interface displays only one SNTP server address, even
if the switch is configured for two or three servers. The CLI show management command displays
all configured SNTP servers on the switch.
48 Time Protocols