Management and Configuration Guide K/KA/KB.15.15

Example 8 Changing an SNTP poll interval to 300 seconds
(HP_Switch_name#) sntp 300
SNTP unicast time polling with multiple SNTP servers
NOTE: When you use the Menu interface to configure an SNTP server IP address, the new
address writes over the current primary address, if one is configured.
When running SNTP unicast time polling as the time synchronization method, the switch requests
a time update from the server you configured with either the Server Address parameter in the
menu interface, or the primary server in a list of up to three SNTP servers configured using the CLI.
If the switch does not receive a response from the primary server after three consecutive polling
intervals, the switch tries the next server (if any) in the list. If the switch tries all servers in the list
without success, it sends an error message to the Event Log and reschedules to try the address list
again after the configured Poll Interval time has expired.
If there are already three SNTP server addresses configured on the switch, and you want to use
the CLI to replace one of the existing addresses with a new one, you must delete the unwanted
address before you configure the new one.
Server priority
You can choose the order in which configured servers are polled for getting the time by setting the
server priority.
Syntax
sntp server priority <1-3><ip-address>
Specifies the order in which the configured SNTP servers are polled for the current 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_name#) sntp server priority 1 10.28.22.141
(HP_Switch_name#) sntp server priority 2
2001:db8::215:60ff:fe79:8980
Version
Specifies the SNTP software version to use and is assigned on a per-server basis. The version
setting is backwards-compatible. For example, using version 3 means that the switch accepts
versions 1 through 3. Default: 3; range: 1 to 7.
Syntax
sntp server <ip-address><version>
The protocol version of the SNTP server. Allowable values are 1 through 7; default is 3.
Server address
NOTE: Required only for unicast mode.
Specifies the IP address of the SNTP server that the switch accesses for time synchronization updates.
You can configure up to three servers; one using the menu or CLI, and two more using the CLI.
Viewing and configuring time synchronization protocol parameters 35