Print

S6800交换机display clock显示时间错误

2026-03-29 发表

问题描述

某设备display clock时间和设备日志时间对不上,如下为display clock时间显示为2162年

 ===============display clock===============  

16:14:31.352 BeiJing Sun 05/02/2162

Time Zone : BeiJing add 08:00:00

设备日志记录的时间如下,显示为2026年

  ===============display logbuffer===============  

Log buffer: Enabled

Max buffer size: 1024

Actual buffer size: 512

Dropped messages: 0

Overwritten messages: 7164803

Current messages: 512

%Mar 26 08:58:54:177 2026 H3C LAGG/6/LAGG_INACTIVE_PHYSTATE: Member port XGE1/0/20 of aggregation group BAGG20 changed to the inactive state, because the physical state of the port is down.

%Mar 26 08:58:54:511 2026 H3C IFNET/3/PHY_UPDOWN: Physical state on the interface Ten-GigabitEthernet1/0/20 changed to up.

%Mar 26 08:58:57:911 2026 H3C LAGG/6/LAGG_ACTIVE: Member port XGE1/0/20 of aggregation group BAGG20 changed to the active state.

%Mar 26 08:58:57:930 2026 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet1/0/20 changed to up.

%Mar 26 08:59:00:297 2026 H3C IFNET/3/PHY_UPDOWN: Physical state on the interface Ten-GigabitEthernet1/0/20 changed to down.

%Mar 26 08:59:00:298 2026 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet1/0/20 changed to down.

%Mar 26 08:59:00:315 2026 H3C LAGG/6/LAGG_INACTIVE_PHYSTATE: Member port XGE1/0/20 of aggregation group BAGG20 changed to the inactive state.

 

过程分析

设备软件版本为R2612P02,检查设备ntp状态,发现参考时间显示是2162年

<ASW-407-H23.AM889>display ntp status

 Clock status: synchronized

 Clock stratum: 3

 System peer: 10.42.0.65

 Local mode: sym_active

 Reference clock ID: 10.42.0.65

 Leap indicator: 00

 Clock jitter: 0.000458 s

 Stability: 0.000 pps

 Clock precision: 2^-18

 Root delay: 1.23596 ms

 Root dispersion: 4.24194 ms

 Reference time: ed6f6398.b536d392  Sun, May  2 2162 22:18:00.707

 System poll interval: 64 s

解决方法

设备有如下已知问题,2162 年正好就是 2026年加了2个68 年。2026 + 68 + 68 = 2162 。  升级版本至当前设备推荐版本可解决。

202008140876

•问题现象:display clock命令显示时间不准确。

•问题产生条件:

a.设备配置clock protocol ntp命令,通过NTP协议获取时间;

b.系统时间与NTP服务器的时间差大于68年。