AIX6.1上ntp服务进程名叫xntp,默认这个进程是不启动的,那么首先要启动xntpd这个守护进程
startsrc -s xntp
最好做成随系统自动启动
编辑/etc/net.conf配置,增加一个远程 NTP时钟源,在最下面增加以下四行
broadcastclient
server 120.4.8.1 #远程NTP时钟源IP
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace
使用lssrc -ls xntpd 查看详细情况,(注意刚启动xntpd时sys peer 为 no peer, system is insane,是因为ntpd还没有完成同步,要过个5分钟左右显示远程时钟源IP就表示同步成功了)
# lssrc -ls xntpd
Program name: /usr/sbin/xntpd
Version: 3
Leap indicator: 00 (No leap second today.)
Sys peer: 120.4.8.1
Sys stratum: 12
Sys precision: -18
Debug/Tracing: DISABLED
Root distance: 0.000748
Root dispersion: 0.889160
Reference ID: 120.4.8.1
Reference time: d7fd7e99.e399d000 Fri, Oct 31 2014 11:20:57.889
Broadcast delay: 0.003906 (sec)
Auth delay: 0.000122 (sec)
System flags: bclient pll monitor filegen
System uptime: 578 (sec)
Clock stability: 1988.000000 (sec)
Clock frequency: 15904.000000 (sec)
Peer: 120.4.8.1
flags: (configured)(sys peer)
stratum: 11, version: 3
our mode: client, his mode: server
Subsystem Group PID Status
xntpd tcpip 6029448 active
可以使用 ntpdate 时钟源IP 命令来实时同步时钟
本文出自 “晨歌牧牛” 博客,请务必保留此出处http://168ok8.blog.51cto.com/73394/1570273
原文地址:http://168ok8.blog.51cto.com/73394/1570273