{
    "mode": "man",
    "parameter": "ntptrace",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/man/ntptrace/json",
    "generated": "2026-06-14T12:34:45Z",
    "synopsis": "ntptrace [-flags] [-flag [value]] [--option-name[[=| ]value]] [host]",
    "sections": {
        "NAME": {
            "content": "ntptrace — Trace peers of an NTP server\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ntptrace [-flags] [-flag [value]] [--option-name[[=| ]value]] [host]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "ntptrace is a perl script that uses the ntpq utility program to follow the chain of NTP servers\nfrom a given host back to the primary time source. For ntptrace to work properly, each of these\nservers must implement the NTP Control and Monitoring Protocol specified in RFC 1305 and enable\nNTP Mode 6 packets.\n\nIf given no arguments, ntptrace starts with localhost. Here is an example of the output from\nntptrace:\n\n\n% ntptrace localhost: stratum 4, offset 0.0019529, synch distance 0.144135\nserver2ozo.com: stratum 2, offset 0.0124263, synch distance 0.115784 usndh.edu:\nstratum 1, offset 0.0019298, synch distance 0.011993, refid 'WWVB'\n\nOn each line, the fields are (left to right): the host name, the host stratum, the time offset\nbetween that host and the local host (as measured by ntptrace; this is why it is not always\nzero for \"localhost\"), the host synchronization distance, and (only for stratum-1 servers) the\nreference clock ID. All times are given in seconds. Note that the stratum is the server hop\ncount to the primary source, while the synchronization distance is the estimated error relative\nto the primary source. These terms are precisely defined in RFC-1305.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-n --numeric",
                    "content": "Print IP addresses instead of hostnames.\n\nOutput hosts as dotted-quad numeric format rather than converting to the canonical host\nnames.\n",
                    "flag": "-n",
                    "long": "--numeric"
                },
                {
                    "name": "-m --max-hosts",
                    "content": "Maximum number of peers to trace.  This option takes an integer number as its argument.\nThe default number for this option is:\n99\n\nThis option has not been fully documented.\n",
                    "flag": "-m",
                    "long": "--max-hosts"
                },
                {
                    "name": "-r --host",
                    "content": "Single remote host.  The default string for this option is:\n127.0.0.1\n\nThis option has not been fully documented.\n\n-?, --help\nDisplay usage information and exit.\n\n-!, --more-help\nPass the extended usage information through a pager.\n",
                    "flag": "-r",
                    "long": "--host"
                },
                {
                    "name": "-v --version",
                    "content": "Output version of program and exit.  The default mode is `v', a simple version.  The\n`c' mode will print copyright information and `n' will print the full copyright notice.\n",
                    "flag": "-v",
                    "long": "--version"
                }
            ]
        },
        "EXIT STATUS": {
            "content": "One of the following exit values will be returned:\n\n0  (EXITSUCCESS)\nSuccessful program execution.\n\n1  (EXITFAILURE)\nThe operation failed or the command syntax was not valid.\n\n70  (EXSOFTWARE)\nlibopts had an internal operational error.  Please report it to auto‐\ngen-users@lists.sourceforge.net.  Thank you.\n",
            "subsections": []
        },
        "NOTES": {
            "content": "This manual page was AutoGen-erated from the ntptrace option definitions.\n\nBSD                              June 23 2020                              BSD",
            "subsections": []
        }
    },
    "summary": "ntptrace — Trace peers of an NTP server",
    "flags": [
        {
            "flag": "-n",
            "long": "--numeric",
            "arg": null,
            "description": "Print IP addresses instead of hostnames. Output hosts as dotted-quad numeric format rather than converting to the canonical host names."
        },
        {
            "flag": "-m",
            "long": "--max-hosts",
            "arg": null,
            "description": "Maximum number of peers to trace. This option takes an integer number as its argument. The default number for this option is: 99 This option has not been fully documented."
        },
        {
            "flag": "-r",
            "long": "--host",
            "arg": null,
            "description": "Single remote host. The default string for this option is: 127.0.0.1 This option has not been fully documented. -?, --help Display usage information and exit. -!, --more-help Pass the extended usage information through a pager."
        },
        {
            "flag": "-v",
            "long": "--version",
            "arg": null,
            "description": "Output version of program and exit. The default mode is `v', a simple version. The `c' mode will print copyright information and `n' will print the full copyright notice."
        }
    ],
    "examples": [],
    "see_also": []
}