TimeP: Selecting and configuring

TimeP parameters shows TimeP parameters and their operations.

TimeP parameters

TimeP parameter

Operation

Time Sync Method

Used to select either TIMEP (the default), SNTP, or None as the time synchronization method.

Timep Mode

 

 Disabled

The Default. Timep does not operate, even if specified by the Menu interface Time Sync Method parameter or the CLI timesync command.

 

 DHCP

When Timep is selected as the time synchronization method, the switch attempts to acquire a Timep server IP address via DHCP. If the switch receives a server address, it polls the server for updates according to the Timep poll interval. If the switch does not receive a Timep server IP address, it cannot perform time synchronization updates.

 

 Manual

When Timep is selected as the time synchronization method, the switch attempts to poll the specified server for updates according to the Timep poll interval. If the switch fails to receive updates from the server, time synchronization updates do not occur.

 

 Server Address

Used only when the TimeP Mode is set to Manual. Specifies the IP address of the TimeP server that the switch accesses for time synchronization updates. You can configure one server.

Viewing, enabling, and modifying the TimeP protocol (Menu)

  1. From the Main Menu, select:

    2. Switch Configuration

    1. System Information

    System Information screen (default values)

  2. Press [E] (for Edit).

    The cursor moves to the System Name field.

  3. Move the cursor to the Time Sync Method field.

  4. If TIMEP is not already selected, use the Space bar to select TIMEP, then move to the TIMEP Mode field.

  5. Do one of the following:

    • Use the Space bar to select the DHCP mode.

      • Move the cursor to the Poll Interval field.

      • Go to step 6.

    Enabling TIMEP or DHCP

    Time Sync Method [None] :   TIMEP
    TimeP Mode [Disabled] :     DHCP
    Poll Interval (min) [720] : 720
    Time Zone [0] :             0
    Daylight Time Rule [None] : None
    
    
    • Use the Spacebar to select the Manual mode.

      • Move the cursor to the Server Address field.

      • Enter the IP address of the TimeP server you want the switch to use for time synchronization.


        [NOTE: ]

        NOTE: This step replaces any previously configured TimeP server IP address.


      • Move the cursor to the Poll Interval field, then go to step 6.

  6. In the Poll Interval field, enter the time in minutes that you want for a TimeP Poll Interval.

  7. Select [Enter] to return to the Actions line, then select [S] (for Save) to enter the new time protocol configuration in both the startup-config and running-config files.

Viewing the current TimeP configuration (CLI)

Using different show commands, you can display either the full TimeP configuration or a combined listing of all TimeP, SNTP, and VLAN IP addresses configured on the switch.

Syntax:

show timep

Lists both the time synchronization method (TimeP, SNTP, or None) and the TimeP configuration, even if SNTP is not the selected time protocol. (If the TimeP Mode is set to Disabled or DHCP, the Server field does not appear.)

If you configure the switch with TimeP as the time synchronization method, then enable TimeP in DHCP mode with the default poll interval, show timep lists the following:

TimeP configuration when TimeP is the selected Time synchronization method

HP Switch(config)# show timep

 Timep Configuration

  Time Sync Mode: Timep
  TimeP Mode [Disabled] : DHCP    Server Address : 10.10.28.103
  Poll Interval (min) [720] : 720

If SNTP is the selected time synchronization method, show timep still lists the TimeP configuration even though it is not currently in use. Even though, in this Example:, SNTP is the current time synchronization method, the switch maintains the TimeP configuration:

TimeP configuration when TimeP is not the selected time synchronization method

HP Switch(config)# show timep

 Timep Configuration
 
  Time Sync Mode: Sntp
  TimeP Mode [Disabled] : Manual   Server Address : 10.10.28.100
  Poll Interval (min) [720] : 720

Syntax:

show management

Helps you to easily examine and compare the IP addressing on the switch. It lists the IP addresses for all time servers configured on the switch plus the IP addresses and default gateway for all VLANs configured on the switch.

Display showing IP addressing for all configured time servers and VLANs

HP Switch(config)# show management

 Status and Counters - Management Address Information

  Time Server Address : 10.10.28.100

  Priority SNTP Server Address                            Protocol Version
  -------- ---------------------------------------------- ----------------
  1        10.10..28.101                                  3
  2        10.255.5.24                                    3
  3        fe80::123%vlan10                               3


  Default Gateway : 10.0.9.80
 
  VLAN Name    MAC Address         | IP Address
  ------------ ------------------- + -------------------
  DEFAULT_VLAN 001279-88a100       | 10.30.248.184
  VLAN10 001279-88a100             | 10.0.10.17

Configuring (enabling or disabling) the TimeP mode

Enabling the TimeP mode means to configure it for either broadcast or unicast mode. Remember to run TimeP as the switch's time synchronization protocol, you must also select TimeP as the time synchronization method by using the CLI timesync command (or the menu interface Time Sync Method parameter.

Syntax:

timesync timep

Selects TimeP as the time synchronization method.

Syntax:

ip timep <dhcp | manual>

Enables the selected TimeP mode.

Syntax:

[no] ip timep

Disables the TimeP mode.

Syntax:

[no] timesync

Disables the time protocol.

Enabling TimeP in manual mode (CLI)

Like DHCP mode, configuring TimeP for manual mode enables TimeP. However, for manual operation, you must also specify the IP address of the TimeP server. (The switch allows only one TimeP server.)

Syntax:

timesync timep

Selects TimeP.

Syntax:

ip timep manual <ip-addr>

Activates TimeP in manual mode with a specified TimeP server.

Syntax:

no ip timep

Disables TimeP.

Enabling TimeP in DHCP Mode

Because the switch provides a TimeP polling interval (default:720 minutes), you need only these two commands for a minimal TimeP DHCP configuration:

Syntax:

timesync timep

Selects TimeP as the time synchronization method.

Syntax:

ip timep dhcp

Configures DHCP as the TimeP mode.

For example, suppose:

  • Time Synchronization is configured for SNTP.

  • You want to:

    • View the current time synchronization.

    • Select TimeP as the synchronization mode.

    • Enable TimeP for DHCP mode.

    • View the TimeP configuration.

Enabling TimeP in Manual Mode

Like DHCP mode, configuring TimeP for Manual Mode enables TimeP. However, for manual operation, you must also specify the IP address of the TimeP server. (The switch allows only one TimeP server.) To enable the TimeP protocol:

Syntax:

timesync timep

Selects TimeP.

Syntax:

ip timep manual <ip-addr>

Activates TimeP in manual mode with a specified TimeP server.

Syntax:

[no]ip timep

Disables TimeP.


[NOTE: ]

NOTE: To change from one TimeP server to another, you must use the no ip timep command to disable TimeP mode, the reconfigure TimeP in manual mode with the new server IP address.


Example:

To select TimeP and configure it for manual operation using a TimeP server address of 10.28.227.141 and the default poll interval (720 minutes, assuming the TimeP poll interval is already set to the default):

HP Switch(config)# timesync time

Selects TimeP.

HP Switch(config)# ip timep manual 10.28.227.141

Activates TimeP in Manual mode.

Configuring TimeP for manual operation

HP Switch(config)# timesync timep
HP Switch(config)# ip timep manual 10.28.227.141
HP Switch(config)# show timep
 Timep Configuration
  Time Sync Mode: Timep
  TimeP Mode :  Manual              Server Address : 10.28.227.141
  Poll Interval (min) : 720
Changing from one TimeP server to another (CLI)
  1. Use the no ip timep command to disable TimeP mode.

  2. Reconfigure TimeP in Manual mode with the new server IP address.

Changing the TimeP poll interval (CLI)
Syntax:

ip timep <dhcp | manual> interval <1-9999>

Specifies how long the switch waits between time polling intervals. The default is 720 minutes and the range is 1 to 9999 minutes. (This parameter is separate from the poll interval parameter used for SNTP operation.)

Example:

To change the poll interval to 60 minutes:

HP Switch(config)# ip timep interval 60
Disabling time synchronization without changing the TimeP configuration (CLI)
Syntax:

no timesync

Disables time synchronization by changing the Time Sync Mode configuration to Disabled. This halts time synchronization without changing your TimeP configuration. The recommended method for disabling time synchronization is to use the timesync command.

Example:

Suppose TimeP is running as the switch's time synchronization protocol, with DHCP as the TimeP 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 TimeP configuration, you would see the following:

TimeP with time synchronization disabled

HP Switch(config)# show timep

 Timep Configuration
  Time Sync Mode: Disabled
  TimeP Mode : DHCP Poll Interval (min): 720
Disabling the TimeP mode
Syntax:

no ip timep

Disables TimeP by changing the TimeP mode configuration to Disabled and prevents the switch from using it as the time synchronization protocol, even if it is the selected Time Sync Method option.

Example:

If the switch is running TimeP in DHCP mode, no ip timep changes the TimeP configuration as shown below and disables time synchronization. Even though the TimeSync mode is set to TimeP, time synchronization is disabled because no ip timep has disabled the TimeP mode parameter.

Disabling time synchronization by disabling the TimeP mode parameter

HP Switch(config)# no ip timep

HP Switch(config)# show timep

 Timep Configuration
  Time Sync Mode: Timep
  TimeP Mode : Disabled