SNTP and Timep

Configuring (enabling or disabling) the SNTP mode

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.

Configuring an IPv6 address for an SNTP server


[NOTE: ]

NOTE: To use a global unicast IPv6 address to configure an IPv6 SNTP time server on the switch, the switch must be receiving advertisements from an IPv6 router on a VLAN configured on the switch.

To use a link-local IPv6 address to configure an IPv6 SNTP time server on the switch, it is necessary to append %vlan followed immediately (without spaces) by the VLAN ID of the VLAN on which the server address is available. (The VLAN must be configured on the switch.)

For example:

fe80::11:215%vlan10


For more information, see SNTP and Timep.

Syntax:

[no] sntp server priority <1–3> <link-local–addr> %vlan <vid> [oobm] [1–7]

Syntax:

[no] sntp server priority <1–3> <global–unicast–addr> [oobm] [1–7]

Configures an IPv6 address for an SNTP server.

server priority <1–3> : 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.

<link-local–addr> : Specifies the link-local IPv6 address of the destination device.

%vlan <vid> : Suffix specifying the interface on which the destination device is located. No spaces are allowed in the suffix.

<global–unicast–addr> : Specifies the global IPv6 address of the destination device.

[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:

  • fe80::215:60ff:fe7a:adc0 (on VLAN 10, configured on the switch)

  • 2001:db8::215:60ff:fe79:8980

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.

HP Switch(config)# sntp server priority 1
fe80::215:60ff:fe7a:adc0%vlan10 7
HP Switch(config)# sntp server priority 2
2001:db8::215:60ff:fe79:8980 7

[NOTE: ]

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 %vlan followed immediately (without spaces) by the VLAN identifier.


Syntax:

show sntp

Displays the current SNTP configuration, including the following:

Time sync mode : Indicates whether timesync is disabled or set to either SNTP or Timep. 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: ]

NOTE: The show management command can also be used to display SNTP server information.


Configuring (enabling or disabling) the Timep mode

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:

show timep

Display the current timep configuration.

Syntax:

timesync <sntp|timep>

Enable either SNTP or Timep as the time synchronization method on the switch without affecting the configuration of either.

Syntax:

ip timep dhcp [interval] <1-9999>

Syntax:

ip timep manual <ipv6-addr> [interval <1-9999>]

Enable Timep operation with a statically configured IPv6 address for a Timep server. Optionally change the interval between time requests.

Syntax:

[no] ip timep

Disables Timep operation. To re-enable Timep, it is necessary to reconfigure either the DHCP or the static option.


[NOTE: ]

NOTE: To use a global unicast IPv6 address to configure an IPv6 Timep server on the switch, the switch must be receiving advertisements from an IPv6 router on a VLAN configured on the switch.

To use a link-local IPv6 address to configure an IPv6 Timep server on the switch, it is necessary to append %vlan followed (without spaces) by the VLAN ID of the VLAN on which the server address is available. The VLAN must be configured on the switch. For example: fe80::11:215%vlan10


Syntax:

ip timep dhcp [interval <1-9999>]

ip timep manual <ipv6-addr|ipv4-addr> [interval <1-9999>] [oobm]

Used at the global config level to configure a Timep server address.


[NOTE: ]

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.

<ipv6-addr> : Specifies the IPv6 address of an SNTP server. See the preceding Note.

[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:

fe80::215:60ff:fe7a:adc0

where the address is on VLAN 10, configured on the switch, enter this command at the global config level:

HP Switch(config)# ip timep manual
fe80::215:60ff:fe7a:adc0%vlan10

[NOTE: ]

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 %vlan followed immediately (without spaces) by the VLAN identifier. For a global unicast address, you would enter the address without the %vlan suffix.


Syntax:

show timep

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: Note that the show management command can also be used to display Timep server information.