aix下开启ntp服务

1、配置/etc/ntp.conf文件,添加NTP服务器地址信息(server 192.168.1.20)
broadcastclient
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace
server 192.168.1.20

2、启动xntpd进程

1
2
3
4
5
6
方法1:
# startsrc -s xntpd
0513-059 The xntpd Subsystem has been started. Subsystem PID is 327788.
方法2:
# smit xntpd
选择“Start Using the xntpd Subsystem”--“BOTH”


3、检查xntpd服务状态

1
# 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:   80 (sec) 
 Clock stability: 0.000000 (sec) 
 Clock frequency: 0.000000 (sec) 
 Peer: 192.168.1.20 
      flags: (configured) 
      stratum:  3, version: 3 
      our mode: client, his mode: server 
Subsystem         Group            PID          Status 
 xntpd            tcpip            172176       active


4、使用ntpdate手动与NTP服务器同步

1
# ntpdate -d 192.168.1.20

17 Nov 10:37:59 ntpdate[131094]: 3.4y
transmit(192.168.1.20)
receive(192.168.1.20)
transmit(192.168.1.20)
receive(192.168.1.20)
transmit(192.168.1.20)
receive(192.168.1.20)
transmit(192.168.1.20)
receive(192.168.1.20)
transmit(192.168.1.20)
server 192.168.1.20, port 123
stratum 3, precision -6, leap 00, trust 000
refid [64.4.10.33], delay 0.04146, dispersion 0.00026
transmitted 4, in filter 4
reference time:      d813d221.52a70817  Sun, Nov 16 2014 19:47:13.322
originate timestamp: d813ec37.25da3b4a  Sun, Nov 16 2014 21:38:31.147
transmit timestamp:  d814a2e7.2a0bd000  Mon, Nov 17 2014 10:37:59.164
filter delay:  0.04167  0.04150  0.04146  0.04146 
               0.00000  0.00000  0.00000  0.00000 
filter offset: -46768.0 -46768.0 -46768.0 -46768.0
               0.000000 0.000000 0.000000 0.000000
delay 0.04146, dispersion 0.00026
offset -46768.016225

17 Nov 10:37:59 ntpdate[131094]: step time server 192.168.1.20 offset -46768.016225










本文转自 冰冻vs西瓜 51CTO博客,原文链接:http://blog.51cto.com/molewan/1674143,如需转载请自行联系原作者
上一篇:C# webrequest 抓取数据时,多个域Cookie的问题


下一篇:navicat上如何导出视图,函数等