环境:
OS:AIX 5.3.10
AIX客户端配置NTP同步服务器的时间是比较简单的,下面是配置过程.
1.编辑/etc/ntp.conf文件添加NTP服务器的地址或域名
broadcastclient
riftfile /etc/ntp.drift
tracefile /etc/ntp.trace
server 0.cn.pool.ntp.org
在最后一行添加红色部分,这个是中国NTP时间池服务器.
2.启动xntpd守护进程
#startsrc -s xntpd
或是
#smitty xntpd
选择Start Using the xntpd Subsystem
选择BOTH
3.查询xntpd状态
[hxl/oracle]$lssrc -ls xntpd
Program name: /usr/sbin/xntpd
Version: 3
Leap indicator: 11 (Leap indicator is insane.)
Sys peer: no peer, system is insane
Sys stratum: 16
Sys precision: -18
Debug/Tracing: DISABLED
Root distance: 0.000000
Root dispersion: 0.000000
Reference ID: no refid, system is insane
Reference time: no reftime, system is insane
Broadcast delay: 0.003906 (sec)
Auth delay: 0.000122 (sec)
System flags: bclient pll monitor filegen
System uptime: 63 (sec)
Clock stability: 0.000000 (sec)
Clock frequency: 0.000000 (sec)
Peer: 114.80.81.1
flags: (configured)
stratum: 2, version: 3
our mode: client, his mode: server
Subsystem Group PID Status
xntpd tcpip 385112 active
4.可以使用ntpdate与服务器做同步
[hxl/oracle]$ntpdate -d 0.cn.pool.ntp.org
27 Aug 22:18:09 ntpdate[553158]: 3.4y
transmit(218.75.4.130)
receive(218.75.4.130)
transmit(218.75.4.130)
receive(218.75.4.130)
transmit(218.75.4.130)
receive(218.75.4.130)
transmit(218.75.4.130)
receive(218.75.4.130)
transmit(218.75.4.130)
server 218.75.4.130, port 123
stratum 2, precision -21, leap 00, trust 000
refid [66.220.9.122], delay 0.05975, dispersion 0.00008
transmitted 4, in filter 4
reference time: d3e5fbe0.a282a335 Mon, Aug 27 2012 9:00:00.634
originate timestamp: d3e5ff90.6750f5c5 Mon, Aug 27 2012 9:15:44.403
transmit timestamp: d3e6b6f1.cc5f6000 Mon, Aug 27 2012 22:18:09.798
filter delay: 0.06078 0.06052 0.05975 0.06010
0.00000 0.00000 0.00000 0.00000
filter offset: -46945.4 -46945.4 -46945.4 -46945.4
0.000000 0.000000 0.000000 0.000000
delay 0.05975, dispersion 0.00008
offset -46945.411978
27 Aug 22:18:09 ntpdate[553158]: step time server 218.75.4.130 offset -46945.411978
-- The End --
阅读(5815) | 评论(0) | 转发(1) |