This section lists the SNTP and related commands, including an example of using an IPv6 address. For the details of configuring SNTP on the switch, see the management and configuration guide for your switch.
For more information, see SNTP and Timep.
Syntax:
Syntax:
Configures an IPv6 address for an SNTP server.
server priority
: Specifies the priority of the server addressing being configured. When the SNTP mode is set to unicast and more than one server is configured, this value determines the order in which the configured servers will be accessed for a time value. The switch polls multiple servers in order until a response is received or until all servers on the list have been tried without success. Up to three server addresses (IPv6 and/or IPv4) can be configured.<1–3>
: Specifies the link-local IPv6 address of the destination device.
<link-local–addr>
%vlan
: Suffix specifying the interface on which the destination device is located. No spaces are allowed in the suffix.<vid>
: Specifies the global IPv6 address of the destination device.
<global–unicast–addr>
[oobm]
: For switches that have a separate out-of-band management port,oobm
specifies that SNTP traffic goes through that port. (By default, SNTP traffic goes through the data ports.)
[1–7]
: This optional setting specifies the SNTP server version expected for the specified server. Default: 3.
Configuring link-local and global unicast SNTP server addresses
To configure link-local and global unicast SNTP server addresses of:
as the priority "1" and "2" SNTP servers, respectively, using version 7, you would enter these commands at the global config level, as shown below.
|
|
NOTE: In the preceding example, using a link-local address requires that you specify the local scope for the address; VLAN 10 in this case. This is always indicated by |
|
|
Syntax:
Displays the current SNTP configuration, including the following:
Time sync mode : Indicates whether
timesync
is disabled or set to eitherSNTP
orTimep
. Default:timep
SNTP mode : Indicates whether SNTP uses the broadcast or unicast method of contacting a time server. The broadcast option does not require you to configure a time server address. The unicast option does require configuration of a time server address.
Poll interval : Indicates the interval between consecutive time requests to an SNTP server.
Priority : Indicates the configured priority for the corresponding SNTP server address.
SNTP server address : Lists the currently configured SNTP server addresses.
Protocol version : Lists the SNTP server protocol version to expect from the server at the corresponding address.
For example, the show sntp
output for the proceeding sntp server
command example would appear as follows:
Output for show sntp
with both an IPv6 and an IPv4 server address configured
This example illustrates the command output when both IPv6 and IPv4 server addresses are configured.
HP Switch(config)# show sntp SNTP Configuration Time Sync Mode: Sntp SNTP Mode : Broadcast Poll Interval (sec) [720] : 719 Priority SNTP Server Address Protocol Version –––––––– ––––––––––––––––––––––––––––––––––– –––––––––––––––– 1 2001:db8::215:60ff:fe79:8980 7 2 10.255.5.24 3
|
|
NOTE: The |
|
|
This software enables configuration of a global unicast address for IPv6 Timep time server.
For the details of configuring Timep on the switch, see the management and configuration guide for your switch.
The following commands are available at the global config level for Timep operation:
Syntax:
Syntax:
Enable either SNTP or Timep as the time synchronization method on the switch without affecting the configuration of either.
Syntax:
Syntax:
Enable Timep operation with a statically configured IPv6 address for a Timep server. Optionally change the interval between time requests.
Syntax:
Disables Timep operation. To re-enable Timep, it is necessary to reconfigure either the DHCP or the static option.
Syntax:
Used at the global config level to configure a Timep server address.
NOTE: The switch allows one Timep server configuration.
timep dhcp
: Configures the switch to obtain the address of a Timep server from an IPv4 or IPv6 DHCP server.
timep manual
: Specifies static configuration of a Timep server address.
: Specifies the IPv6 address of an SNTP server. See the preceding Note.
<ipv6-addr>
[interval <1-9999>]
: This optional setting specifies the interval in minutes between Timep requests. Default: 720
[oobm]
: For switches that have a separate OOBM port,oobm
specifies that Timep traffic goes through that port. (By default, Timep traffic goes through the data ports.)
Configuring a link-local Timep server address
To configure a link-local Timep server address of:
where the address is on VLAN 10, configured on the switch, enter this command at the global config level:
|
|
NOTE: In the preceding example, using a link-local address requires that you specify the local scope for the address; VLAN 10 in this case. This is always indicated by |
|
|
Syntax:
Displays the current Timep configuration, including the following:
Time sync mode : Indicates whether timesync is disabled or set to either SNTP or Timep. Default: Disabled
Timep mode : Indicates whether Timep is configured to use a DHCP server to acquire a Timep server address or to use a statically configured Timep server address.
Server address : Lists the currently configured Timep server address.
Poll interval (min) [720] : Indicates the interval between consecutive time requests to the configured Timep server.
Output for the show timep
command
The show timep
output for the preceding ip timep manual
command example would appear as follows:
HP Switch(config)# show timep Timep Configuration Time Sync Mode: Timep TimeP Mode [Disabled] : Manual Server Address : fe80::215:60ff:fe7a:adc0%vlan10 Poll Interval (min) [720] : 720
|
|
NOTE: Note that the |
|
|