• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
discovering whether the time on a host is correct (and being updated)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

discovering whether the time on a host is correct (and being updated)


  • Subject: discovering whether the time on a host is correct (and being updated)
  • From: Chris Heimark <email@hidden>
  • Date: Thu, 29 Nov 2007 16:29:23 -0500

I have an application that depends on knowing whether the time is correct on host machine the program runs on.

I have discovered that I can run "ntpq -p" on a command line and I may get an outcome similar to this:

[imacg5:~] chris% ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 time2.apple.com a17-106-100-13.  2 u 1563  68m    1   89.775   -0.729   0.008
[imacg5:~] chris% 

On my machine, I do not seem to have the '*' in the first column indicating "happiness" on the part of ntpq. A Unix box at work, being fed by GPS and other peers, always has a * next to one of the entries. man ntpq indicates that ' ' in first column means, and I quote:

 space   (reject) The peer is discarded as unreachable, synchronized to this server (synch loop) or 
              outrageous synchronization distance.

Questions:
1) Should I expect a * if all is well and time is synched properly? 
2) Is this as good a way as any to determine whether a host machine is legitimately holding the right time? 
3) What might I do on my own machine to achieve '*' status? ;-)

Any help or thoughts are appreciated.

TIA,  Chris

ALSO, is there a mirror for this list as there is for cocoa-dev?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: discovering whether the time on a host is correct (and being updated)
      • From: Ben Artin <email@hidden>
  • Prev by Date: Re: Upgrading a kext
  • Next by Date: Re: discovering whether the time on a host is correct (and being updated)
  • Previous by thread: Re: Custom protocol implementation?
  • Next by thread: Re: discovering whether the time on a host is correct (and being updated)
  • Index(es):
    • Date
    • Thread