By default, when an HP Procurve switch reboot, the switch time will revert to 1 Jan 1990 at 00:00:00. Some time, inaccurate time setting brings difficulties when we need to look at the log at a specific time. Manual time adjustments are not saved on HP Procurve switches after reboot. The solution is to setup time synchronization to a time (NTP) server.
Here are the steps to setup time synchronization on HP Procurve 2910 series, 2520 series and 5400 series switches:
ProCurve(config)# timesync sntp ProCurve(config)# sntp unicast ProCurve(config)# sntp server priority 1 10.123.123.123 3 ProCurve(config)# time timezone 420
The “time sync sntp” command instruct the switch to use SNTP as the time synchronization method. The “sntp unicast” directs the switch to poll a specific server for SNTP time synchronization. We can configure up to three server. The “priority” specifies the order in which the configured servers are polled for getting the time. The server “version” specifies the SNTP software version to use. The version setting is backwards-compatible. For example, using version 3 means that the switch accepts versions 1 through 3. The “time timezone 420” specifies 420 minutes after GMT or the timezone of GMT+7.
For HP Procurve 2610 series switches, the command is a little bit different. There is no server priority setting.
ProCurve(config)# timesync sntp ProCurve(config)# sntp unicast ProCurve(config)# sntp server 10.123.123.123 3 ProCurve(config)# time timezone 420