home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / dec / 6821 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.5 KB

  1. Path: sparky!uunet!noc.near.net!bigboote.WPI.EDU!nntp!aej
  2. From: aej@manyjars.WPI.EDU (Allan E Johannesen)
  3. Newsgroups: comp.sys.dec
  4. Subject: Re: How does one reset the system clock on a DEC 5000/200?
  5. Date: 12 Jan 93 08:35:58
  6. Organization: Worcester Polytechnic Institute, Worcester, MA 01609-2280
  7. Lines: 26
  8. Distribution: usa
  9. Message-ID: <AEJ.93Jan12083558@manyjars.WPI.EDU>
  10. References: <1it5ggINNmhb@pollux.usc.edu> <2B526CCF.13982@news.service.uci.edu>
  11. NNTP-Posting-Host: manyjars.wpi.edu
  12. In-reply-to: iglesias@draco.acs.uci.edu's message of 12 Jan 93 07:01:35 GMT
  13.  
  14. Both the answers I have seen are correct:
  15.  
  16. 1) setting the time (see the `date` command) will fix the "system
  17.    clock", and
  18. 2) the battery should be replaced.
  19.  
  20. Also, I would suppose that USC should have a network of NTP time
  21. servers, although I can't tell you how to get in touch with them.  If
  22. there's some sort of central computer administration, I suggest you
  23. contact them.  DEC distributes NTP (Network Time Protocol) software
  24. with their systems, and you can use that excellent mechanism to
  25. synchronize your station's time and also to set it at system startup
  26. (although you'll have to write the command to do that and install it
  27. in rc.local)
  28.  
  29. After you've set up time service, a line in rc.local like:
  30.  
  31. [ -f /usr/local/bin/ntp-startup ] && /usr/local/bin/ntp-startup
  32.  
  33. with /usr/local/bin/ntp-startup of:
  34.  
  35. #!/bin/csh -f
  36. set path=(/usr/bin /usr/ucb /bin /usr/etc $path)
  37. ntp -s -f `egrep "^(peer|server)" < /etc/ntp.conf | awk '{print $2}'`
  38.  
  39. will set the clock at startup, dead battery or not.
  40.