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,如需转载请自行联系原作者
目录
相关文章
|
安全 Linux 网络安全
Linux 时间同步 -NTP 服务器
本文主要介绍如何配置 Linux 服务器集群的时间同步,技术实现上使用 NTP 服务器和客户端同步时间。
462 0
|
Ubuntu Unix
Ubuntu开启NTP时间同步
Ubuntu开启NTP时间同步
8397 0
|
Unix Linux
Linux 使用 chrony 进行 NTP 时间同步及自建方法
chrony是网络时间协议的实现。它可以替代ntpd,后者是NTP的参考实现。它在类Unix操作系统上运行,并在GNU GPL v2下发布。
371 0
|
Linux
linux设置时间服务器
对多个linux服务器,时间保持一致是很必要的。根据精确度要求,应该有相应的时间间隔进行时间同步。如果不进行时间同步,时间久了就会差别很大,遇到问题时定位就很困难。因为多台设备的配合,log之间可能有前因后果,时间是同步事件的先后的重要依据。
1184 0
|
Linux 网络安全 开发工具
|
Linux 虚拟化 数据安全/隐私保护