Sunday, April 17, 2005

NTP setup

Added to /etc/ntpd.conf:

server time-nw.nist.gov

Sync with nist (do 3 times):

[root@mythtv modules]# ntpdate -u time-nw.nist.gov
17 Apr 17:36:30 ntpdate[5800]: step time server 131.107.1.10 offset -64.211774 sec
[root@mythtv modules]# ntpdate -u time-nw.nist.gov
17 Apr 17:36:32 ntpdate[5801]: adjust time server 131.107.1.10 offset -0.000377 sec
[root@mythtv modules]# ntpdate -u time-nw.nist.gov
17 Apr 17:36:34 ntpdate[5802]: adjust time server 131.107.1.10 offset -0.000089 sec

Start ntpd service:

[root@mythtv modules]# service ntpd start
Starting ntpd: [ OK ]

Verify:

[root@mythtv modules]# ntpq -p
remote refid st t when poll reach delay offset jitter
=================================
time-nw.nist.go .ACTS. 1 u 7 64 1 34.605 -0.702 0.002
200.141.215.162 200.192.112.8 3 u 5 64 1 773.906 285.638 0.002
pluto.fips.at 130.149.17.21 2 u 5 64 1 183.031 -10.479 0.002
ns3.dns.pciwest 192.43.244.18 2 u 4 64 1 37.428 -7.180 0.002
LOCAL(0) LOCAL(0) 10 l 3 64 1 0.000 0.000 0.002


Make ntpd always start up on boot:

[root@mythtv modules]# chkconfig ntpd on

Verify ntpd will be started at runlevel 3 and 5:

[root@mythtv modules]# chkconfig --list | egrep -i ntp
ntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

0 Comments:

Post a Comment

<< Home