Huawei 交换机奇怪的时区问题
本帖最后由 exright 于 2010-09-29 16:04 编辑本人有台Quidway S5328C-EI,作为ntp客户端向ntp server同步成功后。<temp>dis clock
2010-09-29 07:55:40
Wednesday
Time Zone : Default Zone Name add 00:00:00发现时间慢了8小时。
设置时区后:<temp>clock timezone GMT+8 add 8
<temp>dis clock
2010-09-28 23:58:17
Tuesday
Time Zone : GMT+8 add 08:00:00
<temp>明明是add八小时,怎么又减掉8小时了。
我试着重新设置时区:<temp>undo clock timezone
<temp>clock timez GMT-8 minus 8
<temp>dis clock
2010-09-29 15:59:45
Wednesday
Time Zone : GMT-8 minus 08:00:00晕,居然时间对了!
minus不是减掉8小时吗?
搞不懂,那位大侠知道吗?
交换机ntp配置贴上: ntp-service authentication enable
ntp-service source-interface LoopBack0
ntp-service authentication-keyid 123 authentication-mode md5 ^Y_4VGY+5X;Q=^Q`MAF4<1!!
ntp-service reliable authentication-keyid 123
ntp-service unicast-server x.x.x.x authentication-keyid 123 你NTP SERVER的时区是?时间是? 本帖最后由 exright 于 2010-09-29 17:52 编辑
你NTP SERVER的时区是?时间是?
ssffzz1 发表于 2010-09-29 17:11 http://bbs.chinaunix.net/images/common/back.gif
ntp server信息:# date
2010年 09月 29日 星期三 17:47:21 CST
# more /etc/sysconfig/clock
# The ZONE parameter is only evaluated by system-config-date.
# The timezone of the system is defined by the contents of /etc/localtime.
ZONE="Asia/Shanghai"
UTC=true
ARC=false
# ntpstat
synchronised to NTP server (133.100.11.8) at stratum 2
time correct to within 40 ms
polling server every 256 s交换机信息:<temp>dis ntp-service status
clock status: synchronized
clock stratum: 3
reference clock ID: x.x.x.x
nominal frequency: 100.0000 Hz
actual frequency: 100.0000 Hz
clock precision: 2^17
clock offset: -28799999.6958 ms
root delay: 301.27 ms
root dispersion: 50.64 ms
peer dispersion: 39.96 ms
reference time: 17:47:36.704 UTC Sep 29 2010(D04DFA38.B45FF1D8)
<temp>dis clock
2010-09-29 17:48:25
Wednesday
Time Zone : GMT-8 minus 08:00:00 灵异了。
应该是配置成ADD 08:00:00 是对的。
交换机你换成最新版本试试。不过HW的我从没发现过这个问题。 哦,那我明天找HW的碴去!
有结果再通告大家! 别没事乱咬人。
你要个新版本试试就可以了。 本帖最后由 exright 于 2010-10-09 11:21 编辑
兄批评的对,都是在IT艰难打拼的,应互相支持,别”工“人相轻!
最终结果还是如 说的,换了个新版本,就好了,在这里把过程贴下:
一、交换机升级前
1、显示版本<5328>dis version
Huawei Versatile Routing Platform Software
VRP (R) Software, Version 5.30 (S5300 V100R002C02B181SPC001)
Copyright (C) 2007-2008 Huawei Technologies Co., Ltd.
2、显示NTP状态<5328>dis ntp-service status
clock status: synchronized
clock stratum: 3
reference clock ID: x.x.x.x
nominal frequency: 100.0000 Hz
actual frequency: 100.0000 Hz
clock precision: 2^17
clock offset: -28800074.5447 ms
root delay: 110.41 ms
root dispersion: 47.48 ms
peer dispersion: 19.64 ms
reference time: 18:38:05.740 UTC Oct 8 2010(D059E38D.BDA61E0C)
3、显示时区<5328>dis clock
2010-10-08 18:38:57
Friday
Time Zone : GMT+8 minus 08:00:00二、交换机更新版本
1、从交换机登录FTP服务器<5328>ftp x.x.x.x
Trying x.x.x.x ...
Press CTRL+K to abort
Connected to x.x.x.x.
220- Ftp Site Powerd by BigFoolCat Ftp Server 1.0 (meishu1981@gmail.com)
220- Welcome to my ftp server
220
User(x.x.x.x:(none)):ftp
331 User name okay, need password.
Password:
230-
230- Ftp server have run for 0h-1m-56s
230 ftp logged in.
2、下载新版交换机软件get S5300EI-V100R002C02SPC100.cc
200 PORT Command successful.
150 Opening BINARY mode data connection for S5300EI-V100R002C02SPC100.cc(7458012 bytes)
226 Transfer complete.
FTP: 7458012 byte(s) received in 150.890 second(s) 49.42Kbyte(s)/sec.
3、配置交换机下次启动时加载的软件<5328>startup system-sof s5300ei-v100r002c02spc100.cc
Warning: Basic BOOTROM will be upgraded. Continue?(Y/N): y
BOOTROM begin to be upgraded ! please wait for a moment...
Info: BOOTROM UPGRADE OK
The new version is009. Please restart to validate the upgrade.
Succeeded in setting the software for booting system.
3、重新启动交换机<5328>reboot
size=3]三、更新后
1、显示NTP状态<5328>dis ntp-service status
clock status: synchronized
clock stratum: 3
reference clock ID: x.x.x.x
nominal frequency: 100.0000 Hz
actual frequency: 100.0000 Hz
clock precision: 2^17
clock offset: 0.0000 ms
root delay: 0.00 ms
root dispersion: 0.00 ms
peer dispersion: 0.00 ms
reference time: 00:00:00.000 UTC Jan 1 1900(00000000.00000000)但是reference time明显不对。
2、显示时区<5328>dis clock
2010-10-08 18:42:05
Friday
Time Zone : GMT+8 add 08:00:00
没想到这里已自动从minus改成add了。
3、显示版本<5328>dis version
Huawei Versatile Routing Platform Software
VRP (R) Software, Version 5.30 (S5300 V100R002C02SPC100)
Copyright (C) 2007-2008 Huawei Technologies Co., Ltd.
Quidway S5328C-EI uptime is 0 day, 0 hour, 3 minutes
4、重新配置时区后<5328>clock timezone GMT+8 add 8
2010-10-08 18:44:30
Friday
Time Zone : GMT+8 add 08:00:00
<5328>dis ntp-service status
clock status: synchronized
clock stratum: 3
reference clock ID: x.x.x.x
nominal frequency: 100.0000 Hz
actual frequency: 100.0000 Hz
clock precision: 2^17
clock offset: 2.4612 ms
root delay: 109.40 ms
root dispersion: 2.46 ms
peer dispersion: 18.46 ms
reference time: 10:44:06.329 UTC Oct 8 2010(D0597476.545A1CAC)
这样reference time 才正确。
5、修改时区验证一下<5328>undo clock timezone
<5328>clock timezone GMT-8 minus 8
<5328>dis clock
2010-10-08 19:11:58
Friday
Time Zone : GMT-8 minus 08:00:00 挺好 。
页:
[1]