Sync CMOS clock to NIST?

Sync CMOS clock to NIST?

Post by j.. » Mon, 10 Feb 1997 04:00:00



I saw a method of how to set up a cron entry to synchronize my CMOS  clock  to
the NIST atomic clock:

#Sync with NIST clock
0 30 0 * * * *      /usr/sbin/netdate 132.163.135.130 >& /dev/null

#Write new time to CMOS
5 30 * * * *        /sbin/clock -w

Trouble is, I apparently don't have the "netdate" and "clock"  commands.   I'm
running RedHat 4.0 (kernel 2.0.18.

Anyone know more about this?

                                          Thanks.

------------------------------------------------------------------------------

      PGP fingerprint: 50 EA 8B 22 A0 59 60 D5  DD 4B 04 04 12 26 2E 16
  MicroSoft is not the answer.  MicroSoft is the question. The answer is NO.
------------------------------------------------------------------------------

 
 
 

Sync CMOS clock to NIST?

Post by Jeremy Mathe » Mon, 10 Feb 1997 04:00:00



>I saw a method of how to set up a cron entry to synchronize my CMOS  clock  to
>the NIST atomic clock:

>#Sync with NIST clock
>0 30 0 * * * *      /usr/sbin/netdate 132.163.135.130 >& /dev/null

>#Write new time to CMOS
>5 30 * * * *        /sbin/clock -w

>Trouble is, I apparently don't have the "netdate" and "clock"  commands.   I'm
>running RedHat 4.0 (kernel 2.0.18.

A few comments:

        1) The command you are probably looking for is "rdate" (for netdate),
           but clock should definitely be in /sbin.

        2) The host "time-A.timefreq.bldrdoc.gov" has been very unreliable
           lately.  I think as a practical matter that it is better to pick
           a machine on your local network that is reliable and sync your
           clock to that machine.

        3) The following is a nifty trick that uses commonly available
           commands (if you can't find rdate or netdate):

date -s "`telnet somehost 13 2>&1 | gawk '/Escape character/ {getline;print}'`"

************************************************************************
    "We trained hard -- but it seemed that every time we were
    beginning to form into teams, we would be reorganized.  I
    was to learn later in life that we tend to meet any new
    situation by reorganizing.  And what a wonderful method it
    can be for creating the illusion of progress while producing
    confusion, inefficiency, and demoralization."
                        --  Gaius Petronius Arbiter --
                            (First Century)


          hundreds, if not thousands, of dollars, every time he posts -
************************************************************************
rwvpf wpnrrj ibf ijrfer

 
 
 

Sync CMOS clock to NIST?

Post by B.A.McCau.. » Wed, 12 Feb 1997 04:00:00



>#Sync with NIST clock
>0 30 0 * * * *      /usr/sbin/netdate 132.163.135.130 >& /dev/null

>#Write new time to CMOS
>5 30 * * * *        /sbin/clock -w

>Trouble is, I apparently don't have the "netdate" and "clock"  commands.   I'm
>running RedHat 4.0 (kernel 2.0.18.

"clock" is in util-linux on the main FTP sites.  Dunno about where you
could find it on RH.  If you get util-linux don't blindly install
everything it contains.

"netdate" appears to be on the usual FTP sites under it's own name.

Personally I use "ntpdate" that comes with "xntpd" but I don't think
there's a significant difference.

--

 .  _\\__[oo       from       | Phones: +44 121 471 3789 (home)

.  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
 # ll  l\\  ~~~~ ~   ~ ~    ~ | http://wcl-l.bham.ac.uk/~bam/