[NTLUG:Discuss] xntpd
Christopher Browne
cbbrowne at hex.net
Fri May 19 20:12:38 CDT 2000
On Fri, 19 May 2000 10:25:08 CDT, the world broke into rejoicing as
"George E. Lass" <George.Lass at osc.com> said:
> I am trying to get xntpd to work on my RedHat 5.2 system.
> It seems to be keeping the time up to date just fine when
> viewed with the "date" command, but there seems to be a
> problem with it *not* updating the CMOS time when viewed
> with the "clock" command.
>
> I have tried both the object RPM from the distro CD-ROM
> as well as the source RPM, but neither one seems to be
> able to update CMOS.
>
> I know CMOS updates used to work on the RedHat 4.2 distro.
>
> Any one know anything about this problem?
A couple of things you may want to do:
a) Add to /etc/ntp.conf:
server 127.127.1.1
fudge 127.127.1.1 stratum 10
My cfengine configuration configures this all thus:
files:
{ /etc/ntp.conf
AppendIfNoSuchLine "peer dantzig"
AppendIfNoSuchLine "peer salesman"
AppendIfNoSuchLine "server 127.127.1.1"
AppendIfNoSuchLine "fudge 127.127.1.1 stratum 10"
AppendIfNoSuchLine "peer firewall"
}
firewall::
{ /etc/ntp.conf
AppendIfNoSuchLine "server ntlug.org"
AppendIfNoSuchLine "server ntp0.cornell.edu"
AppendIfNoSuchLine "server eagle.tamu.edu"
AppendIfNoSuchLine "server black.hex.net"
}
b) You may want to take the system clock and push to CMOS
clock once in a while (especially when you shut down!) using
hwclock. The latter is the crucial bit; it appears that it has been
renamed from "clock" to "hwclock."
hwclock --systohc
is the likely command you want.
--
"No matter how much money you spend, you can't make a racehorse out of
a pig. You can, however, make an awfully fast pig."
-- An old saying about program efficiency
cbbrowne at hex.net - <http://www.ntlug.org/~cbbrowne/lsf.html>
More information about the Discuss
mailing list