互联网服务AIXntp时间同步

请教关于aix NTP时间同步问题请教

编辑 NTP 客户端上的 /etc/ntp.conf文件内容如下:#vi /etc/ntp.conf----------#broadcastclientserver 192.168.30.221driftfile /etc/ntp.drifttracefile /etc/ntp.trace----------其中的 server 192.168.30.221表明, 此客户端与IP地址为192.168.30.221的NTP服务器进行时...显示全部
编辑 NTP 客户端上的 /etc/ntp.conf文件

内容如下:

#vi /etc/ntp.conf

----------
#broadcastclient
server 192.168.30.221
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace
----------

其中的 server 192.168.30.221表明, 此客户端与IP地址为192.168.30.221的NTP服务器进行时间同步。


3、在NTP客户端启动xntpd守护进程

# startsrc -s xntpd

也可通过调用smitty,使 xntpd 在以后重启服务器时能自动启动。

# smit xntpd

选择Start Using the xntpd Subsyste

选择BOTH方式,表示立即启动以及系统下次启动的时候将自动启动

通过如下命令可以看到,其实xntpd是tcpip服务组的一个子服务而已

#lssrc -g tcpip

Subsystem         Group            PID          Status
inetd            tcpip            303118       active
snmpd            tcpip            651356       active
xntpd            tcpip            589898       active
……

同样,/etc/rc.tcpip可以看到如下的内容,表示该服务随TCPIP服务组一起启动

# Start up Network Time Protocol (NTP) daemon

start /usr/sbin/xntpd “$src_running”


4、如果以上完成,即可查询xntpd的状态

当 system peer 不为 ‘insane’ 时, 表明客户端已与服务器端成功地进行了同步。这个时间可能需要等待几分钟。

# lssrc -ls xntpd

Program name: -/usr/sbin/xntpd
Version: ---3
Leap indicator: 00 (No leap second today.)
Sys peer: --192.168.30.221



==================================================
我根据网上的资料启动aix主机的NTP服务,我想请教一下,启动这个服务后,我的aix主机多久会自动向NTP服务器进行同步一次?是定时自动同步吗?收起
参与22

查看其它 21 个回答bbl271685939的回答

bbl271685939bbl271685939系统工程师神州数码
The minpoll number specifies the minimum poll interval allowed by any peer of the Internet system. The minimum poll interval is calculated, in seconds, as 2 to the power of minpoll value. The default value of minpoll is 6, i.e. the corresponding poll interval is 64 seconds.

The maxpoll number specifies the maximum poll interval allowed by any peer of the Internet system. The maximum poll interval is calculated, in seconds, as 2 to the power of maxpoll value. The default value of maxpoll is 10, therefore the corresponding poll interval is ~17 minutes.

The allowable range for minpoll and maxpoll is 4 (16 seconds) to 14 (~4.5 hours) inclusive.

默认最小是2的六次方秒 也就是64秒  最大是2的10次方 也就是1024秒
系统集成 · 2013-02-18
浏览3921

回答者

bbl271685939
系统工程师神州数码
擅长领域: AIX服务器Unix

bbl271685939 最近回答过的问题

回答状态

  • 发布时间:2013-02-18
  • 关注会员:0 人
  • 回答浏览:3921
  • X社区推广