AIX6.1同步远程NTP服务器时钟配置

  1. AIX6.1上ntp服务进程名叫xntp,默认这个进程是不启动的,那么首先要启动xntpd这个守护进程

    startsrc -s xntp

    最好做成随系统自动启动

  2. 编辑/etc/net.conf配置,增加一个远程 NTP时钟源,在最下面增加以下四行

    broadcastclient
    server  120.4.8.1   #远程NTP时钟源IP
    driftfile /etc/ntp.drift
    tracefile /etc/ntp.trace

  3. 使用l***c -ls xntpd   查看详细情况,(注意刚启动xntpd时sys peer 为 no peer, system is insane,是因为ntpd还没有完成同步,要过个5分钟左右显示远程时钟源IP就表示同步成功了)

    # l***c -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

  4. 可以使用 ntpdate 时钟源IP   命令来实时同步时钟

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章