ntptrace

Trace a chain of NTP servers

Syntax:

ntptrace [-?n] [-m num] [-r str] [server] 

Runs on:

QNX Neutrino

Options:

-?
--help
Display usage information, and then exit.
--more-help
Pass the extended usage text through a pager.
-m num
--max-hosts=num
Specify the maximum number of peers to trace.
-n
--numeric
Print only the host IP addresses, not the host names.
-r str
--host=str
Single remote host.

Description:

The ntptrace utility determines the source of time for the NTP (Network Time Protocol) servers. It follows the chain of NTP servers back to their master time source. If you don't specify a server, it starts with the localhost.

$ ntptrace

Here's an example of the diagonistic output from the ntptrace utility:

localhost: stratum 4, offset 0.0019529, synch distance 0.144135
server2ozo.com: stratum 2, offset 0.0124263, synch distance 0.115784
usndh.edu: stratum 1, offset 0.0019298, synch distance 0.011993, refid 'WWVB'

On each line, the fields are printed from left to right: the host name, the host stratum, the time offset between that host and the local host, the host synchronization distance, and the reference clock ID. Note that all times are expressed in seconds, and the time offset mentioned is not always zero. The stratum is the server hop count to the primary source, while the synchronization distance is the estimated error relative to the primary source. These terms are precisely defined in RFC 1305.

Based on:

RFC 1305

Caveats:

The ntptrace utility can't improve accuracy by doing multiple samples.