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 | |
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)
From the Main Menu, select:
2. Switch Configuration
1. System Information
Press [E] (for Edit).
The cursor moves to the System Name field.
Move the cursor to the Time Sync Method field.
If TIMEP is not already selected, use the Space bar to select TIMEP, then move to the TIMEP Mode field.
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: This step replaces any previously configured TimeP server IP address.
Move the cursor to the Poll Interval field, then go to step 6.
In the Poll Interval field, enter the time in minutes that you want for a TimeP Poll Interval.
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
orDHCP
, 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:
Syntax:
Syntax:
Syntax:
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:
Syntax:
Syntax:
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:
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:
NOTE: To change from one TimeP server to another, you
must use the | |
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.
Changing the TimeP poll interval (CLI)
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.)
To change the poll interval to 60 minutes:
HP Switch(config)# ip timep interval 60
Disabling time synchronization without changing the TimeP configuration (CLI)
no timesync
Disables time synchronization by changing the
Time Sync Mode
configuration toDisabled
. This halts time synchronization without changing your TimeP configuration. The recommended method for disabling time synchronization is to use thetimesync
command.
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:
Disabling the TimeP mode
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 selectedTime Sync Method
option.
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.