Vous êtes sur la page 1sur 2

AIX ntp services Configuration.

txt
xntpd是是是是是是是是是是是是是是,它它它它它它是是是它它它是它它它它。在在
动 xntpd 是, xntpd 会会会 /etc/ntp.conf 配配配配配配配是是配配配是配它它它,
以 ntp 它它它是配配是是服它它,配来来来来是配配是是。

可以它 ntpq 命命配命命 xntpd 是是是进进进进。使它 ntp 是时时时,xntpd 它它它


和 xntpd 客客客是是配客客客客客客1000秒。若若若是1000秒是秒秒,在客客客在动
xntpd 是是是是守,它 data 命命命 ntpdate 命命来来来来是配配是是,使秒秒进在
1000秒秒进。然然在动 xntpd.

1. 构构构构NTP环环是环来环环:

1.1 设配NTP 它它它(以192.168.5.2服为), 其它NTP客客它它它以客它它它是是是服


它,与其是与是是与环.
1.1.1 编编 /etc/ntp.conf 配配, 进内内内:
----------------------------
#broadcastclient
server 127.127.1.0
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace
----------------------------
请时时配配配是 server 127.127.1.0 这构与, 客此是127.127.1.0 是构它是是是是,
表命NTP主它它它是与主主是配配是配与环.
1.1.2 编编编 /etc/ntp.conf然, 在动xntpd是是是是
# startsrc -s xntpd
也可它客来它smitty , 使 xntpd 在以然在在它它它是客主动在动.
# smitty xntpd

1.1.3 xntpd 状状状状 , 使它 #lssrc -ls xntpd


刚在动xntpd是, sys peer 服 'insane', 表表xntpd还还若还还与环, .
#lssrc -ls xntpd
Program name: --/usr/sbin/xntpd
Version: -------3
Leap indicator: 11 (Leap indicator is insane.) Sys peer: ------no peer,
system is insane ...

等等 6 - 10 分配然, sys peer 就客就是 'insane' 它.


#lssrc -ls xntpd
Program name: --/usr/sbin/xntpd
Version: -------3
Leap indicator: 00 (No leap second today.) Sys peer: ------127.127.1.0 ...
1.2. NTP客客客是设配
1.2.1 编编 NTP 客客客客是 /etc/ntp.conf配配, 进内内内:
----------------------------
#broadcastclient
server 192.168.5.2
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace
----------------------------
其配是 server 192.168.5.2 表表, 客客客客与IP是是服 192.168.5.2 是NTP它它它是
与是是与环.
1.2.2 在NTP客客客在动xntpd是是是是
# startsrc -s xntpd
也可它客来它smitty , 使 xntpd 在以然在在它它它是客主动在动.
# smitty xntpd

1.2.3 状状xntpd是状状
当 system peer 客服 'insane' 是, 表表客客客表与它它它客还表是是与它与环.
# lssrc -ls xntpd
Program name: --/usr/sbin/xntpd
Version: -------3
Page 1
AIX ntp services Configuration.txt
Leap indicator: 00 (No leap second today.) Sys peer: ------192.168.5.2 ...

1.3. NTP客客客状状NTP它它它
ntp客客客使它 ntpdate 命命配配命是命可它命配是 ntp 它它它是与是是与环。
命命是命命会命命客客客与它它它是是是秒秒。
#ntpdate -d 192.168.5.2
...
18 Jan 15:49:57 ntpdate[98462]: adjust time server 192.168.5.2 offset
-0.000868
2 sec

若是是是若若是1000秒,使它ntpdate 是与进进来来, 内:
#date
Thu Jan 18 15:52:00 BEIST 2007

#ntpdate 192.168.5.2
18 Jan 15:49:57 ntpdate[23832]: step time server 9.185.43.189 offset
23.40260
7 sec

#date
Thu Jan 18 15:52:00 BEIST 2007
还还客完完完然 ntp 客客客与 ntp 它它它配配是配还还与环,ntp 客客客客客它客是
配配是是。

状查与环是是是是若(poll)
# xntpdc -c peers
remote local st poll reach delay offset disp
=======================================================================
*192.168.5.2 192.168.7.1 4 64 377 0.00230 -0.000426 0.00026

Page 2

Vous aimerez peut-être aussi