互联网服务AIXntp时间同步

请教关于aix 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

22同行回答

lghready1lghready1技术经理POLYSTOR
The ntpdate command sets the local date and time by polling the NTP servers specified to determine the correct time. It obtains a number of samples from each server specified and applies the standard NTP clock filter and selection algorithms to selec...显示全部
The ntpdate command sets the local date and time by polling the NTP servers specified to determine the correct time. It obtains a number of samples from each server specified and applies the standard NTP clock filter and selection algorithms to select the best of the samples.

The ntpdate command makes time adjustments in one of the following ways:

If it determines that the clock is off by more than 0.5 seconds, it steps the clock's time by calling the settimeofday subroutine. This is the preferred method at boot time.
If it determines that the clock is off by less than 0.5 seconds, it slews the clock's time by calling the adjtime subroutine with the offset. This method tends to keep a badly drifting clock more accurate, though at some expense to stability. When running the ntpdate command on a regular basis from the cron command instead of running a daemon, doing so once every hour or two results in precise enough timekeeping to avoid stepping the clock.收起
互联网服务 · 2009-05-25
浏览2807
lzj65166lzj65166软件开发工程师北京九合尚品科技有限公司
自动同步的。显示全部
自动同步的。收起
互联网服务 · 2009-05-25
浏览2856

提问者

aixclub
网站运营经理TWT
擅长领域: 中间件服务器存储

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2009-05-25
  • 关注会员:0 人
  • 问题浏览:28408
  • 最近回答:2015-04-16
  • X社区推广