From: Harlan Stenn Date: Tue, 21 Mar 2017 13:40:52 +0000 (-0400) Subject: NTP_4_2_8P10_WIN_BETA1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=580b9a962299d298111ed0e7519fa98489508bfc;p=thirdparty%2Fntp.git NTP_4_2_8P10_WIN_BETA1 bk: 58d12d64NujkYeyMa5MjtIIADL2Cgg --- diff --git a/ChangeLog b/ChangeLog index f006ac3b0..a1a1cfae4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ --- +(4.2.8p10-win-beta1) 2017/03/21 Released by Harlan Stenn (4.2.8p10) * [Sec 3389] NTP-01-016: Denial of Service via Malformed Config diff --git a/ntpd/invoke-ntp.conf.texi b/ntpd/invoke-ntp.conf.texi index 5c73205f4..0998a71b4 100644 --- a/ntpd/invoke-ntp.conf.texi +++ b/ntpd/invoke-ntp.conf.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-ntp.conf.texi) # -# It has been AutoGen-ed January 2, 2017 at 12:04:55 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:32:05 AM by AutoGen 5.18.5 # From the definitions ntp.conf.def # and the template file agtexi-file.tpl @end ignore diff --git a/ntpd/invoke-ntp.keys.texi b/ntpd/invoke-ntp.keys.texi index 6d6afff13..643109529 100644 --- a/ntpd/invoke-ntp.keys.texi +++ b/ntpd/invoke-ntp.keys.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-ntp.keys.texi) # -# It has been AutoGen-ed January 2, 2017 at 12:04:56 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:32:07 AM by AutoGen 5.18.5 # From the definitions ntp.keys.def # and the template file agtexi-file.tpl @end ignore diff --git a/ntpd/invoke-ntpd.texi b/ntpd/invoke-ntpd.texi index 8cc7be733..894fdf560 100644 --- a/ntpd/invoke-ntpd.texi +++ b/ntpd/invoke-ntpd.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-ntpd.texi) # -# It has been AutoGen-ed January 2, 2017 at 12:04:57 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:32:09 AM by AutoGen 5.18.5 # From the definitions ntpd-opts.def # and the template file agtexi-cmd.tpl @end ignore @@ -142,36 +142,40 @@ with a status code of 0. @exampleindent 0 @example -ntpd - NTP daemon program - Ver. 4.2.8p9 -Usage: ntpd [ - [] | --[@{=| @}] ]... \ +ntpd - NTP daemon program - Ver. 4.2.7p245 +USAGE: ntpd [ - [] | --[@{=| @}] ]... \ [ ... ] Flg Arg Option-Name Description -4 no ipv4 Force IPv4 DNS name resolution - - prohibits the option 'ipv6' + - prohibits these options: + ipv6 -6 no ipv6 Force IPv6 DNS name resolution - - prohibits the option 'ipv4' + - prohibits these options: + ipv4 -a no authreq Require crypto authentication - - prohibits the option 'authnoreq' + - prohibits these options: + authnoreq -A no authnoreq Do not require crypto authentication - - prohibits the option 'authreq' + - prohibits these options: + authreq -b no bcastsync Allow us to sync to broadcast servers -c Str configfile configuration file name - -d no debug-level Increase debug verbosity level + -d no debug-level Increase output debug message level - may appear multiple times - -D Num set-debug-level Set the debug verbosity level + -D Str set-debug-level Set the output debug message level - may appear multiple times -f Str driftfile frequency drift file name -g no panicgate Allow the first adjustment to be Big - may appear multiple times - -G no force-step-once Step any initial offset correction. - -i Str jaildir Jail directory + -i --- jaildir built without --enable-clockctl or --enable-linuxcaps -I Str interface Listen on an interface name or address - may appear multiple times -k Str keyfile path to symmetric keys -l Str logfile path to the log file -L no novirtualips Do not listen to virtual interfaces -n no nofork Do not fork - - prohibits the option 'wait-sync' + - prohibits these options: + wait-sync -N no nice Run at high priority -p Str pidfile path to the PID file -P Num priority Process priority @@ -187,7 +191,7 @@ Usage: ntpd [ - [] | --[@{=| @}] ]... \ -s Str statsdir Statistics file location -t Str trustedkey Trusted key number - may appear multiple times - -u Str user Run as userid (or userid:groupid) + -u --- user built without --enable-clockctl or --enable-linuxcaps -U Num updateinterval interval in seconds between scans for new or dropped interfaces Str var make ARG an ntp variable (RW) - may appear multiple times @@ -199,18 +203,19 @@ Usage: ntpd [ - [] | --[@{=| @}] ]... \ quit saveconfigquit -x no slew Slew up to 600 seconds - opt version output version information and exit - -? no help display extended usage information and exit - -! no more-help extended usage information passed thru pager + -! opt version Output version information and exit + -? no help Display extended usage information and exit + -! no more-help Extended usage information passed thru pager Options are specified by doubled hyphens and their name or by a single hyphen and the flag character. + The following option preset mechanisms are supported: - examining environment variables named NTPD_* -Please send bug reports to: +please send bug reports to: http://bugs.ntp.org, bugs@@ntp.org @end example @exampleindent 4 diff --git a/ntpd/ntp.conf.5man b/ntpd/ntp.conf.5man index 183b37f9d..6ffd6523d 100644 --- a/ntpd/ntp.conf.5man +++ b/ntpd/ntp.conf.5man @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntp.conf 5man "02 Jan 2017" "4.2.8p9" "File Formats" +.TH ntp.conf 5man "21 Mar 2017" "4.2.8p10-win-beta1" "File Formats" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-uOainW/ag-HOaamW) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:04:58 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:39:53 AM by AutoGen 5.18.5 .\" From the definitions ntp.conf.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/ntpd/ntp.conf.5mdoc b/ntpd/ntp.conf.5mdoc index 5087a182b..59095db15 100644 --- a/ntpd/ntp.conf.5mdoc +++ b/ntpd/ntp.conf.5mdoc @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTP_CONF 5mdoc File Formats .Os .\" EDIT THIS FILE WITH CAUTION (ntp.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:04:49 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:39:58 AM by AutoGen 5.18.5 .\" From the definitions ntp.conf.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/ntpd/ntp.conf.html b/ntpd/ntp.conf.html index b76d4c53f..df4615dc3 100644 --- a/ntpd/ntp.conf.html +++ b/ntpd/ntp.conf.html @@ -1,164 +1,128 @@ - - - + -NTP Configuration File User’s Manual - - - - - - - - - - - - +NTP Configuration File User's Manual + + + + + + + + +

NTP Configuration File User's Manual

+
+


+Next: , +Previous: (dir), +Up: (dir) +
+
- -

NTP Configuration File User’s Manual

- - - +

NTP's Configuration File User Manual

+

This document describes the configuration file for the NTP Project's +ntpd program. - -

-

-Next: , Previous: , Up: (dir)  

-
- -

NTP’s Configuration File User Manual

+

This document applies to version 4.2.8p10-win-beta1 of ntp.conf. -

This document describes the configuration file for the NTP Project’s -ntpd program. -

-

This document applies to version 4.2.8p9-win of ntp.conf. -

- -

Short Table of Contents

- -
-
    -
  • 1 Description
  • + + - - - - - -
    - -
    -

    -Previous: , Up: Top  

    +
    +


    +Previous: Top, +Up: Top +
    - -

    1 Description

    + + +

    Description

    The behavior of ntpd can be changed by a configuration file, by default ntp.conf. -

    -
    + +
    +


    -
    -

    -Previous: , Up: ntp.conf Description  

    +
    - -

    1.1 Notes about ntp.conf

    - - +

    Notes about ntp.conf

    +

    -

    The +

    The ntp.conf configuration file is read at initial startup by the ntpd(1ntpdmdoc) daemon in order to specify the synchronization sources, -modes and other related information. +modes and other related information. Usually, it is installed in the -/etc +/etc directory, but could be installed elsewhere -(see the daemon’s +(see the daemon's -c command line option). -

    -

    The file format is similar to other -UNIX -configuration files. + +

    The file format is similar to other +unix +configuration files. Comments begin with a -‘#’ +# character and extend to the end of the line; -blank lines are ignored. +blank lines are ignored. Configuration commands consist of an initial keyword followed by a list of arguments, -some of which may be optional, separated by whitespace. -Commands may not be continued over multiple lines. +some of which may be optional, separated by whitespace. +Commands may not be continued over multiple lines. Arguments may be host names, host addresses written in numeric, dotted-quad form, integers, floating point numbers (when specifying times in seconds) and text strings. -

    -

    The rest of this page describes the configuration and control options. + +

    The rest of this page describes the configuration and control options. The -"Notes on Configuring NTP and Setting up an NTP Subnet" +"Notes on Configuring NTP and Setting up an NTP Subnet" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp) -contains an extended discussion of these options. +/usr/share/doc/ntp) +contains an extended discussion of these options. In addition to the discussion of general -‘Configuration Options’, +Configuration Options, there are sections describing the following supported functionality and the options used to control it: -

    - -

    Following these is a section describing -Miscellaneous Options. +

    + +

    Following these is a section describing +Miscellaneous Options. While there is a rich set of options available, the only required option is one or more pool, @@ -167,41 +131,42 @@ the only required option is one or more broadcast or manycastclient -commands. -


    +commands. +
    +


    - - -

    1.1.1 Configuration Support

    + +

    Configuration Support

    +

    Following is a description of the configuration commands in -NTPv4. +NTPv4. These commands have the same basic functions as in NTPv3 and -in some cases new functions and new arguments. +in some cases new functions and new arguments. There are two classes of commands, configuration commands that configure a persistent association with a remote server or peer or reference clock, and auxiliary commands that specify environmental variables that control various related operations. -

    -

    1.1.1.1 Configuration Commands

    + +
    Configuration Commands
    +

    The various modes are determined by the command keyword and the -type of the required IP address. +type of the required IP address. Addresses are classed by type as (s) a remote server or peer (IPv4 class A, B and C), (b) the broadcast address of a local interface, (m) a multicast address (IPv4 -class D), or (r) a reference clock address (127.127.x.x). +class D), or (r) a reference clock address (127.127.x.x). Note that -only those options applicable to each command are listed below. +only those options applicable to each command are listed below. Use of options not listed may not be caught as an error, but may result in some weird and even destructive behavior. -

    -

    If the Basic Socket Interface Extensions for IPv6 (RFC-2553) + +

    If the Basic Socket Interface Extensions for IPv6 (RFC-2553) is detected, support for the IPv6 address family is generated -in addition to the default support of the IPv4 address family. +in addition to the default support of the IPv4 address family. In a few cases, including the reslist billboard generated @@ -209,96 +174,84 @@ by ntpq(1ntpqmdoc) or ntpdc(1ntpdcmdoc), -IPv6 addresses are automatically generated. +IPv6 addresses are automatically generated. IPv6 addresses can be identified by the presence of colons -“:” -in the address field. +: +in the address field. IPv6 addresses can be used almost everywhere where IPv4 addresses can be used, with the exception of reference clock addresses, which are always IPv4. -

    -

    Note that in contexts where a host name is expected, a + +

    Note that in contexts where a host name is expected, a -4 qualifier preceding the host name forces DNS resolution to the IPv4 namespace, while a -6 -qualifier forces DNS resolution to the IPv6 namespace. +qualifier forces DNS resolution to the IPv6 namespace. See IPv6 references for the equivalent classes for that address family. -

    -
    pool address [burst] [iburst] [version version] [prefer] [minpoll minpoll] [maxpoll maxpoll]
    -
    server address [key key | autokey] [burst] [iburst] [version version] [prefer] [minpoll minpoll] [maxpoll maxpoll] [true]
    -
    peer address [key key | autokey] [version version] [prefer] [minpoll minpoll] [maxpoll maxpoll] [true] [xleave]
    -
    broadcast address [key key | autokey] [version version] [prefer] [minpoll minpoll] [ttl ttl] [xleave]
    -
    manycastclient address [key key | autokey] [version version] [prefer] [minpoll minpoll] [maxpoll maxpoll] [ttl ttl]
    -
    +
    +
    pool address [burst] [iburst] [version version] [prefer] [minpoll minpoll] [maxpoll maxpoll]
    server address [key key | autokey] [burst] [iburst] [version version] [prefer] [minpoll minpoll] [maxpoll maxpoll] [true]
    peer address [key key | autokey] [version version] [prefer] [minpoll minpoll] [maxpoll maxpoll] [true] [xleave]
    broadcast address [key key | autokey] [version version] [prefer] [minpoll minpoll] [ttl ttl] [xleave]
    manycastclient address [key key | autokey] [version version] [prefer] [minpoll minpoll] [maxpoll maxpoll] [ttl ttl]
    -

    These five commands specify the time server name or address to -be used and the mode in which to operate. +

    These five commands specify the time server name or address to +be used and the mode in which to operate. The address can be -either a DNS name or an IP address in dotted-quad notation. +either a DNS name or an IP address in dotted-quad notation. Additional information on association behavior can be found in the -"Association Management" +"Association Management" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp). -

    -
    pool
    -

    For type s addresses, this command mobilizes a persistent -client mode association with a number of remote servers. +/usr/share/doc/ntp). +

    +
    pool
    For type s addresses, this command mobilizes a persistent +client mode association with a number of remote servers. In this mode the local clock can synchronized to the remote server, but the remote server can never be synchronized to -the local clock. -

    -
    server
    -

    For type s and r addresses, this command mobilizes a persistent +the local clock. +

    server
    For type s and r addresses, this command mobilizes a persistent client mode association with the specified remote server or local -radio clock. +radio clock. In this mode the local clock can synchronized to the remote server, but the remote server can never be synchronized to -the local clock. +the local clock. This command should not be used for type -b or m addresses. -

    -
    peer
    -

    For type s addresses (only), this command mobilizes a +b or m addresses. +

    peer
    For type s addresses (only), this command mobilizes a persistent symmetric-active mode association with the specified -remote peer. +remote peer. In this mode the local clock can be synchronized to the remote peer or the remote peer can be synchronized to the local -clock. +clock. This is useful in a network of servers where, depending on various failure scenarios, either the local or remote peer may be -the better source of time. +the better source of time. This command should NOT be used for type -b, m or r addresses. -

    -
    broadcast
    -

    For type b and m addresses (only), this -command mobilizes a persistent broadcast mode association. +b, m or r addresses. +

    broadcast
    For type b and m addresses (only), this +command mobilizes a persistent broadcast mode association. Multiple commands can be used to specify multiple local broadcast interfaces -(subnets) and/or multiple multicast groups. +(subnets) and/or multiple multicast groups. Note that local broadcast messages go only to the interface associated with the -subnet specified, but multicast messages go to all interfaces. +subnet specified, but multicast messages go to all interfaces. In broadcast mode the local server sends periodic broadcast messages to a client population at the address specified, which is usually the broadcast address on (one of) the -local network(s) or a multicast address assigned to NTP. +local network(s) or a multicast address assigned to NTP. The IANA has assigned the multicast group address IPv4 224.0.1.1 and IPv6 ff05::101 (site local) exclusively to NTP, but other nonconflicting addresses can be used to contain the -messages within administrative boundaries. +messages within administrative boundaries. Ordinarily, this specification applies only to the local server operating as a sender; for operation as a broadcast client, see the @@ -306,73 +259,65 @@ sender; for operation as a broadcast client, see the or multicastclient commands -below. -

    -
    manycastclient
    -

    For type m addresses (only), this command mobilizes a +below. +

    manycastclient
    For type m addresses (only), this command mobilizes a manycast client mode association for the multicast address -specified. +specified. In this case a specific address must be supplied which matches the address used on the manycastserver command for -the designated manycast servers. +the designated manycast servers. The NTP multicast address 224.0.1.1 assigned by the IANA should NOT be used, unless specific means are taken to avoid spraying large areas of the Internet with these messages and causing a possibly massive implosion of replies -at the sender. +at the sender. The manycastserver command specifies that the local server is to operate in client mode with the remote servers that are -discovered as the result of broadcast/multicast messages. +discovered as the result of broadcast/multicast messages. The client broadcasts a request message to the group address associated with the specified address and specifically enabled -servers respond to these messages. +servers respond to these messages. The client selects the servers providing the best time and continues as with the server -command. +command. The remaining servers are discarded as if never -heard. -

    +heard.
    -

    Options: -

    -
    autokey
    -

    All packets sent to and received from the server or peer are to +

    Options: +

    +
    autokey
    All packets sent to and received from the server or peer are to include authentication fields encrypted using the autokey scheme described in -‘Authentication Options’. -

    -
    burst
    -

    when the server is reachable, send a burst of eight packets -instead of the usual one. +Authentication Options. +

    burst
    when the server is reachable, send a burst of eight packets +instead of the usual one. The packet spacing is normally 2 s; however, the spacing between the first and second packets can be changed with the calldelay command to allow -additional time for a modem or ISDN call to complete. +additional time for a modem or ISDN call to complete. This is designed to improve timekeeping quality with the server -command and s addresses. -

    -
    iburst
    -

    When the server is unreachable, send a burst of eight packets -instead of the usual one. +command and s addresses. +

    iburst
    When the server is unreachable, send a burst of eight packets +instead of the usual one. The packet spacing is normally 2 s; however, the spacing between the first two packets can be changed with the calldelay command to allow -additional time for a modem or ISDN call to complete. +additional time for a modem or ISDN call to complete. This is designed to speed the initial synchronization acquisition with the server @@ -380,196 +325,167 @@ command and s addresses and when ntpd(1ntpdmdoc) is started with the -q -option. -

    -
    key key
    -

    All packets sent to and received from the server or peer are to +option. +

    key key
    All packets sent to and received from the server or peer are to include authentication fields encrypted using the specified key -identifier with values from 1 to 65534, inclusive. +identifier with values from 1 to 65534, inclusive. The -default is to include no encryption field. -

    -
    minpoll minpoll
    -
    maxpoll maxpoll
    -

    These options specify the minimum and maximum poll intervals +default is to include no encryption field. +

    minpoll minpoll
    maxpoll maxpoll
    These options specify the minimum and maximum poll intervals for NTP messages, as a power of 2 in seconds The maximum poll interval defaults to 10 (1,024 s), but can be increased by the maxpoll -option to an upper limit of 17 (36.4 h). +option to an upper limit of 17 (36.4 h). The minimum poll interval defaults to 6 (64 s), but can be decreased by the minpoll -option to a lower limit of 4 (16 s). -

    -
    noselect
    -

    Marks the server as unused, except for display purposes. -The server is discarded by the selection algroithm. -

    -
    preempt
    -

    Says the association can be preempted. -

    -
    true
    -

    Marks the server as a truechimer. -Use this option only for testing. -

    -
    prefer
    -

    Marks the server as preferred. +option to a lower limit of 4 (16 s). +

    noselect
    Marks the server as unused, except for display purposes. +The server is discarded by the selection algroithm. +
    preempt
    Says the association can be preempted. +
    true
    Marks the server as a truechimer. +Use this option only for testing. +
    prefer
    Marks the server as preferred. All other things being equal, this host will be chosen for synchronization among a set of -correctly operating hosts. +correctly operating hosts. See the -"Mitigation Rules and the prefer Keyword" +"Mitigation Rules and the prefer Keyword" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp) -for further information. -

    -
    true
    -

    Forces the association to always survive the selection and clustering algorithms. +/usr/share/doc/ntp) +for further information. +

    true
    Forces the association to always survive the selection and clustering algorithms. This option should almost certainly only -be used while testing an association. -

    -
    ttl ttl
    -

    This option is used only with broadcast server and manycast -client modes. +be used while testing an association. +

    ttl ttl
    This option is used only with broadcast server and manycast +client modes. It specifies the time-to-live ttl to use on broadcast server and multicast server and the maximum ttl for the expanding ring search with manycast -client packets. +client packets. Selection of the proper value, which defaults to 127, is something of a black art and should be coordinated with the -network administrator. -

    -
    version version
    -

    Specifies the version number to be used for outgoing NTP -packets. +network administrator. +

    version version
    Specifies the version number to be used for outgoing NTP +packets. Versions 1-4 are the choices, with version 4 the -default. -

    -
    xleave
    -

    Valid in +default. +

    xleave
    Valid in peer and broadcast -modes only, this flag enables interleave mode. -

    +modes only, this flag enables interleave mode.
    - -

    1.1.1.2 Auxiliary Commands

    -
    -
    broadcastclient
    -

    This command enables reception of broadcast server messages to -any local interface (type b) address. + +

    Auxiliary Commands
    + +
    +
    broadcastclient
    This command enables reception of broadcast server messages to +any local interface (type b) address. Upon receiving a message for the first time, the broadcast client measures the nominal server propagation delay using a brief client/server exchange with the server, then enters the broadcast client mode, in which it -synchronizes to succeeding broadcast messages. +synchronizes to succeeding broadcast messages. Note that, in order to avoid accidental or malicious disruption in this mode, both the server and client should operate using symmetric-key or public-key authentication as described in -‘Authentication Options’. -

    -
    manycastserver address ...
    -

    This command enables reception of manycast client messages to -the multicast group address(es) (type m) specified. +Authentication Options. +

    manycastserver address ...
    This command enables reception of manycast client messages to +the multicast group address(es) (type m) specified. At least one address is required, but the NTP multicast address 224.0.1.1 assigned by the IANA should NOT be used, unless specific means are taken to limit the span of the reply and avoid a possibly massive -implosion at the original sender. +implosion at the original sender. Note that, in order to avoid accidental or malicious disruption in this mode, both the server and client should operate using symmetric-key or public-key authentication as described in -‘Authentication Options’. -

    -
    multicastclient address ...
    -

    This command enables reception of multicast server messages to -the multicast group address(es) (type m) specified. +Authentication Options. +

    multicastclient address ...
    This command enables reception of multicast server messages to +the multicast group address(es) (type m) specified. Upon receiving a message for the first time, the multicast client measures the nominal server propagation delay using a brief client/server exchange with the server, then enters the broadcast client mode, in -which it synchronizes to succeeding multicast messages. +which it synchronizes to succeeding multicast messages. Note that, in order to avoid accidental or malicious disruption in this mode, both the server and client should operate using symmetric-key or public-key authentication as described in -‘Authentication Options’. -

    -
    mdnstries number
    -

    If we are participating in mDNS, +Authentication Options. +

    mdnstries number
    If we are participating in mDNS, after we have synched for the first time -we attempt to register with the mDNS system. +we attempt to register with the mDNS system. If that registration attempt fails, we try again at one minute intervals for up to mdnstries -times. +times. After all, ntpd -may be starting before mDNS. +may be starting before mDNS. The default value for mdnstries -is 5. -

    +is 5.
    -
    +
    +


    - - -

    1.1.2 Authentication Support

    + +

    Authentication Support

    +

    Authentication support allows the NTP client to verify that the server is in fact known and trusted and not an intruder intending -accidentally or on purpose to masquerade as that server. +accidentally or on purpose to masquerade as that server. The NTPv3 specification RFC-1305 defines a scheme which provides -cryptographic authentication of received NTP packets. +cryptographic authentication of received NTP packets. Originally, this was done using the Data Encryption Standard (DES) algorithm operating in Cipher Block Chaining (CBC) mode, commonly called -DES-CBC. +DES-CBC. Subsequently, this was replaced by the RSA Message Digest -5 (MD5) algorithm using a private key, commonly called keyed-MD5. +5 (MD5) algorithm using a private key, commonly called keyed-MD5. Either algorithm computes a message digest, or one-way hash, which can be used to verify the server has the correct private key and key identifier. -

    -

    NTPv4 retains the NTPv3 scheme, properly described as symmetric key + +

    NTPv4 retains the NTPv3 scheme, properly described as symmetric key cryptography and, in addition, provides a new Autokey scheme -based on public key cryptography. +based on public key cryptography. Public key cryptography is generally considered more secure than symmetric key cryptography, since the security is based on a private value which is generated by each server and -never revealed. +never revealed. With Autokey all key distribution and management functions involve only public values, which -considerably simplifies key distribution and storage. +considerably simplifies key distribution and storage. Public key management is based on X.509 certificates, which can be provided by commercial services or produced by utility programs in the OpenSSL software library or the NTPv4 distribution. -

    -

    While the algorithms for symmetric key cryptography are + +

    While the algorithms for symmetric key cryptography are included in the NTPv4 distribution, public key cryptography requires the OpenSSL software library to be installed -before building the NTP distribution. +before building the NTP distribution. Directions for doing that are on the Building and Installing the Distribution page. -

    -

    Authentication is configured separately for each association + +

    Authentication is configured separately for each association using the key or @@ -581,36 +497,36 @@ subcommand on the and manycastclient configuration commands as described in -‘Configuration Options’ -page. +Configuration Options +page. The authentication options described below specify the locations of the key files, if other than default, which symmetric keys are trusted and the interval between various operations, if other than default. -

    -

    Authentication is always enabled, + +

    Authentication is always enabled, although ineffective if not configured as -described below. +described below. If a NTP packet arrives including a message authentication code (MAC), it is accepted only if it -passes all cryptographic checks. +passes all cryptographic checks. The checks require correct key ID, key value -and message digest. +and message digest. If the packet has been modified in any way or replayed by an intruder, it will fail one or more -of these checks and be discarded. +of these checks and be discarded. Furthermore, the Autokey scheme requires a preliminary protocol exchange to obtain the server certificate, verify its credentials and initialize the protocol -

    -

    The + +

    The auth flag controls whether new associations or -remote configuration commands require cryptographic authentication. +remote configuration commands require cryptographic authentication. This flag can be set or reset by the enable and @@ -619,22 +535,22 @@ commands and also by remote configuration commands sent by a ntpdc(1ntpdcmdoc) program running on -another machine. +another machine. If this flag is enabled, which is the default case, new broadcast client and symmetric passive associations and remote configuration commands must be cryptographically -authenticated using either symmetric key or public key cryptography. +authenticated using either symmetric key or public key cryptography. If this flag is disabled, these operations are effective even if not cryptographic -authenticated. +authenticated. It should be understood that operating with the auth flag disabled invites a significant vulnerability where a rogue hacker can masquerade as a falseticker and seriously -disrupt system timekeeping. +disrupt system timekeeping. It is important to note that this flag has no purpose other than to allow or disallow @@ -643,41 +559,42 @@ and symmetric active messages and remote configuration commands and, in particular, the flag has no effect on the authentication process itself. -

    -

    An attractive alternative where multicast support is available + +

    An attractive alternative where multicast support is available is manycast mode, in which clients periodically troll for servers as described in the Automatic NTP Configuration Options -page. +page. Either symmetric key or public key -cryptographic authentication can be used in this mode. +cryptographic authentication can be used in this mode. The principle advantage of manycast mode is that potential servers need not be configured in advance, since the client finds them during regular operation, and the configuration files for all clients can be identical. -

    -

    The security model and protocol schemes for + +

    The security model and protocol schemes for both symmetric key and public key cryptography are summarized below; further details are in the briefings, papers and reports at the NTP project page linked from http://www.ntp.org/. -

    -

    1.1.2.1 Symmetric-Key Cryptography

    + +
    Symmetric-Key Cryptography
    +

    The original RFC-1305 specification allows any one of possibly 65,534 keys, each distinguished by a 32-bit key identifier, to -authenticate an association. +authenticate an association. The servers and clients involved must agree on the key and key identifier to -authenticate NTP packets. +authenticate NTP packets. Keys and related information are specified in a key file, usually called -ntp.keys, +ntp.keys, which must be distributed and stored using -secure means beyond the scope of the NTP protocol itself. +secure means beyond the scope of the NTP protocol itself. Besides the keys used for ordinary NTP associations, additional keys can be used as passwords for the @@ -685,25 +602,25 @@ additional keys can be used as passwords for the and ntpdc(1ntpdcmdoc) utility programs. -

    -

    When + +

    When ntpd(1ntpdmdoc) is first started, it reads the key file specified in the keys configuration command and installs the keys -in the key cache. +in the key cache. However, individual keys must be activated with the trusted -command before use. +command before use. This allows, for instance, the installation of possibly several batches of keys and then activating or deactivating each batch remotely using -ntpdc(1ntpdcmdoc). +ntpdc(1ntpdcmdoc). This also provides a revocation capability that can be used -if a key becomes compromised. +if a key becomes compromised. The requestkey command selects the key used as the password for the @@ -713,118 +630,121 @@ utility, while the command selects the key used as the password for the ntpq(1ntpqmdoc) utility. -

    -

    1.1.2.2 Public Key Cryptography

    + +
    Public Key Cryptography
    +

    NTPv4 supports the original NTPv3 symmetric key scheme described in RFC-1305 and in addition the Autokey protocol, -which is based on public key cryptography. +which is based on public key cryptography. The Autokey Version 2 protocol described on the Autokey Protocol page verifies packet integrity using MD5 message digests and verifies the source with digital signatures and any of several -digest/signature schemes. +digest/signature schemes. Optional identity schemes described on the Identity Schemes page and based on cryptographic challenge/response algorithms -are also available. +are also available. Using all of these schemes provides strong security against replay with or without modification, spoofing, masquerade and most forms of clogging attacks. -

    -

    The Autokey protocol has several modes of operation -corresponding to the various NTP modes supported. + +

    The Autokey protocol has several modes of operation +corresponding to the various NTP modes supported. Most modes use a special cookie which can be computed independently by the client and server, -but encrypted in transmission. +but encrypted in transmission. All modes use in addition a variant of the S-KEY scheme, in which a pseudo-random key list is generated and used -in reverse order. +in reverse order. These schemes are described along with an executive summary, current status, briefing slides and reading list on the -‘Autonomous Authentication’ +Autonomous Authentication page. -

    -

    The specific cryptographic environment used by Autokey servers + +

    The specific cryptographic environment used by Autokey servers and clients is determined by a set of files and soft links generated by the ntp-keygen(1ntpkeygenmdoc) -program. +program. This includes a required host key file, required certificate file and optional sign key file, -leapsecond file and identity scheme files. +leapsecond file and identity scheme files. The digest/signature scheme is specified in the X.509 certificate -along with the matching sign key. +along with the matching sign key. There are several schemes available in the OpenSSL software library, each identified by a specific string such as md5WithRSAEncryption, which stands for the MD5 message digest with RSA -encryption scheme. +encryption scheme. The current NTP distribution supports all the schemes in the OpenSSL library, including those based on RSA and DSA digital signatures. -

    -

    NTP secure groups can be used to define cryptographic compartments -and security hierarchies. + +

    NTP secure groups can be used to define cryptographic compartments +and security hierarchies. It is important that every host in the group be able to construct a certificate trail to one -or more trusted hosts in the same group. +or more trusted hosts in the same group. Each group host runs the Autokey protocol to obtain the certificates -for all hosts along the trail to one or more trusted hosts. +for all hosts along the trail to one or more trusted hosts. This requires the configuration file in all hosts to be engineered so that, even under anticipated failure conditions, the NTP subnet will form such that every group host can find a trail to at least one trusted host. -

    -

    1.1.2.3 Naming and Addressing

    + +
    Naming and Addressing
    +

    It is important to note that Autokey does not use DNS to -resolve addresses, since DNS can’t be completely trusted -until the name servers have synchronized clocks. +resolve addresses, since DNS can't be completely trusted +until the name servers have synchronized clocks. The cryptographic name used by Autokey to bind the host identity credentials and cryptographic values must be independent -of interface, network and any other naming convention. +of interface, network and any other naming convention. The name appears in the host certificate in either or both the subject and issuer fields, so protection against DNS compromise is essential. -

    -

    By convention, the name of an Autokey host is the name returned + +

    By convention, the name of an Autokey host is the name returned by the Unix gethostname(2) -system call or equivalent in other systems. +system call or equivalent in other systems. By the system design -model, there are no provisions to allow alternate names or aliases. +model, there are no provisions to allow alternate names or aliases. However, this is not to say that DNS aliases, different names for each interface, etc., are constrained in any way. -

    -

    It is also important to note that Autokey verifies authenticity + +

    It is also important to note that Autokey verifies authenticity using the host name, network address and public keys, all of which are bound together by the protocol specifically -to deflect masquerade attacks. +to deflect masquerade attacks. For this reason Autokey includes the source and destination IP addresses in message digest computations and so the same addresses must be available -at both the server and client. +at both the server and client. For this reason operation -with network address translation schemes is not possible. +with network address translation schemes is not possible. This reflects the intended robust security model where government and corporate NTP servers are operated outside firewall perimeters. -

    -

    1.1.2.4 Operation

    + +
    Operation
    +

    A specific combination of authentication scheme (none, symmetric key, public key) and identity scheme is called -a cryptotype, although not all combinations are compatible. +a cryptotype, although not all combinations are compatible. There may be management configurations where the clients, -servers and peers may not all support the same cryptotypes. +servers and peers may not all support the same cryptotypes. A secure NTPv4 subnet can be configured in many ways while keeping in mind the principles explained above and -in this section. +in this section. Note however that some cryptotype combinations may successfully interoperate with each other, but may not represent good security practice. -

    -

    The cryptotype of an association is determined at the time + +

    The cryptotype of an association is determined at the time of mobilization, either at configuration time or some time -later when a message of appropriate cryptotype arrives. +later when a message of appropriate cryptotype arrives. When mobilized by a server or @@ -841,609 +761,513 @@ using the symmetric key ID specified; if the autokey subcommand is present, the association is authenticated using Autokey. -

    -

    When multiple identity schemes are supported in the Autokey -protocol, the first message exchange determines which one is used. + +

    When multiple identity schemes are supported in the Autokey +protocol, the first message exchange determines which one is used. The client request message contains bits corresponding -to which schemes it has available. +to which schemes it has available. The server response message -contains bits corresponding to which schemes it has available. +contains bits corresponding to which schemes it has available. Both server and client match the received bits with their own and select a common scheme. -

    -

    Following the principle that time is a public value, + +

    Following the principle that time is a public value, a server responds to any client packet that matches -its cryptotype capabilities. +its cryptotype capabilities. Thus, a server receiving an unauthenticated packet will respond with an unauthenticated packet, while the same server receiving a packet of a cryptotype -it supports will respond with packets of that cryptotype. +it supports will respond with packets of that cryptotype. However, unconfigured broadcast or manycast client associations or symmetric passive associations will not be mobilized unless the server supports a cryptotype compatible -with the first packet received. +with the first packet received. By default, unauthenticated associations will not be mobilized unless overridden in a decidedly dangerous way. -

    -

    Some examples may help to reduce confusion. -Client Alice has no specific cryptotype selected. -Server Bob has both a symmetric key file and minimal Autokey files. -Alice’s unauthenticated messages arrive at Bob, who replies with -unauthenticated messages. -Cathy has a copy of Bob’s symmetric -key file and has selected key ID 4 in messages to Bob. -Bob verifies the message with his key ID 4. -If it’s the + +

    Some examples may help to reduce confusion. +Client Alice has no specific cryptotype selected. +Server Bob has both a symmetric key file and minimal Autokey files. +Alice's unauthenticated messages arrive at Bob, who replies with +unauthenticated messages. +Cathy has a copy of Bob's symmetric +key file and has selected key ID 4 in messages to Bob. +Bob verifies the message with his key ID 4. +If it's the same key and the message is verified, Bob sends Cathy a reply -authenticated with that key. +authenticated with that key. If verification fails, Bob sends Cathy a thing called a crypto-NAK, which tells her -something broke. +something broke. She can see the evidence using the ntpq(1ntpqmdoc) program. -

    -

    Denise has rolled her own host key and certificate. -She also uses one of the identity schemes as Bob. + +

    Denise has rolled her own host key and certificate. +She also uses one of the identity schemes as Bob. She sends the first Autokey message to Bob and they -both dance the protocol authentication and identity steps. +both dance the protocol authentication and identity steps. If all comes out okay, Denise and Bob continue as described above. -

    -

    It should be clear from the above that Bob can support + +

    It should be clear from the above that Bob can support all the girls at the same time, as long as he has compatible -authentication and identity credentials. +authentication and identity credentials. Now, Bob can act just like the girls in his own choice of servers; he can run multiple configured associations with multiple different -servers (or the same server, although that might not be useful). +servers (or the same server, although that might not be useful). But, wise security policy might preclude some cryptotype combinations; for instance, running an identity scheme with one server and no authentication with another might not be wise. -

    -

    1.1.2.5 Key Management

    + +
    Key Management
    +

    The cryptographic values used by the Autokey protocol are incorporated as a set of files generated by the ntp-keygen(1ntpkeygenmdoc) utility program, including symmetric key, host key and public certificate files, as well as sign key, identity parameters -and leapseconds files. +and leapseconds files. Alternatively, host and sign keys and certificate files can be generated by the OpenSSL utilities and certificates can be imported from public certificate -authorities. +authorities. Note that symmetric keys are necessary for the ntpq(1ntpqmdoc) and ntpdc(1ntpdcmdoc) -utility programs. +utility programs. The remaining files are necessary only for the Autokey protocol. -

    -

    Certificates imported from OpenSSL or public certificate -authorities have certian limitations. + +

    Certificates imported from OpenSSL or public certificate +authorities have certian limitations. The certificate should be in ASN.1 syntax, X.509 Version 3 format and encoded in PEM, which is the same format -used by OpenSSL. +used by OpenSSL. The overall length of the certificate encoded -in ASN.1 must not exceed 1024 bytes. +in ASN.1 must not exceed 1024 bytes. The subject distinguished name field (CN) is the fully qualified name of the host -on which it is used; the remaining subject fields are ignored. +on which it is used; the remaining subject fields are ignored. The certificate extension fields must not contain either a subject key identifier or a issuer key identifier field; however, an extended key usage field for a trusted host must contain the value -trustRoot;. +trustRoot;. Other extension fields are ignored. -

    -

    1.1.2.6 Authentication Commands

    -
    -
    autokey [logsec]
    -

    Specifies the interval between regenerations of the session key -list used with the Autokey protocol. + +

    Authentication Commands
    + +
    +
    autokey [logsec]
    Specifies the interval between regenerations of the session key +list used with the Autokey protocol. Note that the size of the key list for each association depends on this interval and the current -poll interval. -The default value is 12 (4096 s or about 1.1 hours). +poll interval. +The default value is 12 (4096 s or about 1.1 hours). For poll intervals above the specified interval, a session key list with a single entry will be regenerated for every message -sent. -

    -
    controlkey key
    -

    Specifies the key identifier to use with the +sent. +

    controlkey key
    Specifies the key identifier to use with the ntpq(1ntpqmdoc) utility, which uses the standard -protocol defined in RFC-1305. +protocol defined in RFC-1305. The key argument is the key identifier for a trusted key, where the value can be in the -range 1 to 65,534, inclusive. -

    -
    crypto [cert file] [leap file] [randfile file] [host file] [sign file] [gq file] [gqpar file] [iffpar file] [mvpar file] [pw password]
    -

    This command requires the OpenSSL library. +range 1 to 65,534, inclusive. +

    crypto [cert file] [leap file] [randfile file] [host file] [sign file] [gq file] [gqpar file] [iffpar file] [mvpar file] [pw password]
    This command requires the OpenSSL library. It activates public key cryptography, selects the message digest and signature encryption scheme and loads the required private and public -values described above. +values described above. If one or more files are left unspecified, -the default names are used as described above. +the default names are used as described above. Unless the complete path and name of the file are specified, the location of a file is relative to the keys directory specified in the keysdir command or default -/usr/local/etc. +/usr/local/etc. Following are the subcommands: -

    -
    cert file
    -

    Specifies the location of the required host public certificate file. +

    +
    cert file
    Specifies the location of the required host public certificate file. This overrides the link -ntpkey_cert_hostname -in the keys directory. -

    -
    gqpar file
    -

    Specifies the location of the optional GQ parameters file. +ntpkey_cert_hostname +in the keys directory. +

    gqpar file
    Specifies the location of the optional GQ parameters file. This overrides the link -ntpkey_gq_hostname -in the keys directory. -

    -
    host file
    -

    Specifies the location of the required host key file. +ntpkey_gq_hostname +in the keys directory. +

    host file
    Specifies the location of the required host key file. This overrides the link -ntpkey_key_hostname -in the keys directory. -

    -
    iffpar file
    -

    Specifies the location of the optional IFF parameters file. +ntpkey_key_hostname +in the keys directory. +

    iffpar file
    Specifies the location of the optional IFF parameters file. This overrides the link -ntpkey_iff_hostname -in the keys directory. -

    -
    leap file
    -

    Specifies the location of the optional leapsecond file. +ntpkey_iff_hostname +in the keys directory. +

    leap file
    Specifies the location of the optional leapsecond file. This overrides the link -ntpkey_leap -in the keys directory. -

    -
    mvpar file
    -

    Specifies the location of the optional MV parameters file. +ntpkey_leap +in the keys directory. +

    mvpar file
    Specifies the location of the optional MV parameters file. This overrides the link -ntpkey_mv_hostname -in the keys directory. -

    -
    pw password
    -

    Specifies the password to decrypt files containing private keys and -identity parameters. +ntpkey_mv_hostname +in the keys directory. +

    pw password
    Specifies the password to decrypt files containing private keys and +identity parameters. This is required only if these files have been -encrypted. -

    -
    randfile file
    -

    Specifies the location of the random seed file used by the OpenSSL -library. -The defaults are described in the main text above. -

    -
    sign file
    -

    Specifies the location of the optional sign key file. +encrypted. +

    randfile file
    Specifies the location of the random seed file used by the OpenSSL +library. +The defaults are described in the main text above. +
    sign file
    Specifies the location of the optional sign key file. This overrides the link -ntpkey_sign_hostname -in the keys directory. +ntpkey_sign_hostname +in the keys directory. If this file is -not found, the host key is also the sign key. -

    +not found, the host key is also the sign key.
    -
    -
    keys keyfile
    -

    Specifies the complete path and location of the MD5 key file +

    keys keyfile
    Specifies the complete path and location of the MD5 key file containing the keys and key identifiers used by ntpd(1ntpdmdoc), ntpq(1ntpqmdoc) and ntpdc(1ntpdcmdoc) -when operating with symmetric key cryptography. +when operating with symmetric key cryptography. This is the same operation as the -k -command line option. -

    -
    keysdir path
    -

    This command specifies the default directory path for -cryptographic keys, parameters and certificates. +command line option. +

    keysdir path
    This command specifies the default directory path for +cryptographic keys, parameters and certificates. The default is -/usr/local/etc/. -

    -
    requestkey key
    -

    Specifies the key identifier to use with the +/usr/local/etc/. +

    requestkey key
    Specifies the key identifier to use with the ntpdc(1ntpdcmdoc) utility program, which uses a proprietary protocol specific to this implementation of -ntpd(1ntpdmdoc). +ntpd(1ntpdmdoc). The key argument is a key identifier for the trusted key, where the value can be in the range 1 to -65,534, inclusive. -

    -
    revoke logsec
    -

    Specifies the interval between re-randomization of certain +65,534, inclusive. +

    revoke logsec
    Specifies the interval between re-randomization of certain cryptographic values used by the Autokey scheme, as a power of 2 in -seconds. +seconds. These values need to be updated frequently in order to deflect brute-force attacks on the algorithms of the scheme; -however, updating some values is a relatively expensive operation. -The default interval is 16 (65,536 s or about 18 hours). +however, updating some values is a relatively expensive operation. +The default interval is 16 (65,536 s or about 18 hours). For poll intervals above the specified interval, the values will be updated -for every message sent. -

    -
    trustedkey key ...
    -

    Specifies the key identifiers which are trusted for the +for every message sent. +

    trustedkey key ...
    Specifies the key identifiers which are trusted for the purposes of authenticating peers with symmetric key cryptography, as well as keys used by the ntpq(1ntpqmdoc) and ntpdc(1ntpdcmdoc) -programs. +programs. The authentication procedures require that both the local and remote servers share the same key and key identifier for this purpose, although different keys can be used with different -servers. +servers. The key arguments are 32-bit unsigned -integers with values from 1 to 65,534. -

    +integers with values from 1 to 65,534.
    - -

    1.1.2.7 Error Codes

    + +
    Error Codes
    +

    The following error codes are reported via the NTP control and monitoring protocol trap mechanism. -

    -
    101
    -

    (bad field format or length) -The packet has invalid version, length or format. -

    -
    102
    -

    (bad timestamp) -The packet timestamp is the same or older than the most recent received. -This could be due to a replay or a server clock time step. -

    -
    103
    -

    (bad filestamp) -The packet filestamp is the same or older than the most recent received. -This could be due to a replay or a key file generation error. -

    -
    104
    -

    (bad or missing public key) -The public key is missing, has incorrect format or is an unsupported type. -

    -
    105
    -

    (unsupported digest type) -The server requires an unsupported digest/signature scheme. -

    -
    106
    -

    (mismatched digest types) -Not used. -

    -
    107
    -

    (bad signature length) -The signature length does not match the current public key. -

    -
    108
    -

    (signature not verified) -The message fails the signature check. +

    +
    101
    (bad field format or length) +The packet has invalid version, length or format. +
    102
    (bad timestamp) +The packet timestamp is the same or older than the most recent received. +This could be due to a replay or a server clock time step. +
    103
    (bad filestamp) +The packet filestamp is the same or older than the most recent received. +This could be due to a replay or a key file generation error. +
    104
    (bad or missing public key) +The public key is missing, has incorrect format or is an unsupported type. +
    105
    (unsupported digest type) +The server requires an unsupported digest/signature scheme. +
    106
    (mismatched digest types) +Not used. +
    107
    (bad signature length) +The signature length does not match the current public key. +
    108
    (signature not verified) +The message fails the signature check. It could be bogus or signed by a -different private key. -

    -
    109
    -

    (certificate not verified) -The certificate is invalid or signed with the wrong key. -

    -
    110
    -

    (certificate not verified) +different private key. +

    109
    (certificate not verified) +The certificate is invalid or signed with the wrong key. +
    110
    (certificate not verified) The certificate is not yet valid or has expired or the signature could not -be verified. -

    -
    111
    -

    (bad or missing cookie) -The cookie is missing, corrupted or bogus. -

    -
    112
    -

    (bad or missing leapseconds table) -The leapseconds table is missing, corrupted or bogus. -

    -
    113
    -

    (bad or missing certificate) -The certificate is missing, corrupted or bogus. -

    -
    114
    -

    (bad or missing identity) -The identity key is missing, corrupt or bogus. -

    +be verified. +
    111
    (bad or missing cookie) +The cookie is missing, corrupted or bogus. +
    112
    (bad or missing leapseconds table) +The leapseconds table is missing, corrupted or bogus. +
    113
    (bad or missing certificate) +The certificate is missing, corrupted or bogus. +
    114
    (bad or missing identity) +The identity key is missing, corrupt or bogus.
    -
    +
    +


    - - -

    1.1.3 Monitoring Support

    + +

    Monitoring Support

    +

    ntpd(1ntpdmdoc) includes a comprehensive monitoring facility suitable for continuous, long term recording of server and client -timekeeping performance. +timekeeping performance. See the statistics command below for a listing and example of each type of statistics currently -supported. +supported. Statistic files are managed using file generation sets and scripts in the -./scripts -directory of the source code distribution. +./scripts +directory of the source code distribution. Using these facilities and -UNIX +unix cron(8) jobs, the data can be automatically summarized and archived for retrospective analysis. -

    -

    1.1.3.1 Monitoring Commands

    -
    -
    statistics name ...
    -

    Enables writing of statistics records. + +

    Monitoring Commands
    + +
    +
    statistics name ...
    Enables writing of statistics records. Currently, eight kinds of name statistics are supported. -

    -
    clockstats
    -

    Enables recording of clock driver statistics information. +

    +
    clockstats
    Enables recording of clock driver statistics information. Each update received from a clock driver appends a line of the following form to the file generation set named clockstats: -

    49213 525.624 127.127.4.1 93 226 00:08:29.606 D
    -
    -

    The first two fields show the date (Modified Julian Day) and time -(seconds and fraction past UTC midnight). +

              
    +          49213 525.624 127.127.4.1 93 226 00:08:29.606 D
    +     
    + +

    The first two fields show the date (Modified Julian Day) and time +(seconds and fraction past UTC midnight). The next field shows the -clock address in dotted-quad notation. +clock address in dotted-quad notation. The final field shows the last timecode received from the clock in decoded ASCII format, where -meaningful. +meaningful. In some clock drivers a good deal of additional information -can be gathered and displayed as well. +can be gathered and displayed as well. See information specific to each -clock for further details. -

    -
    cryptostats
    -

    This option requires the OpenSSL cryptographic software library. +clock for further details. +

    cryptostats
    This option requires the OpenSSL cryptographic software library. It -enables recording of cryptographic public key protocol information. +enables recording of cryptographic public key protocol information. Each message received by the protocol module appends a line of the following form to the file generation set named cryptostats: -

    49213 525.624 127.127.4.1 message
    -
    -

    The first two fields show the date (Modified Julian Day) and time -(seconds and fraction past UTC midnight). +

              
    +          49213 525.624 127.127.4.1 message
    +     
    + +

    The first two fields show the date (Modified Julian Day) and time +(seconds and fraction past UTC midnight). The next field shows the peer address in dotted-quad notation, The final message field includes the -message type and certain ancillary information. +message type and certain ancillary information. See the -‘Authentication Options’ -section for further information. -

    -
    loopstats
    -

    Enables recording of loop filter statistics information. +Authentication Options +section for further information. +

    loopstats
    Enables recording of loop filter statistics information. Each update of the local clock outputs a line of the following form to the file generation set named loopstats: -

    50935 75440.031 0.000006019 13.778190 0.000351733 0.0133806
    -
    -

    The first two fields show the date (Modified Julian Day) and -time (seconds and fraction past UTC midnight). +

              
    +          50935 75440.031 0.000006019 13.778190 0.000351733 0.0133806
    +     
    + +

    The first two fields show the date (Modified Julian Day) and +time (seconds and fraction past UTC midnight). The next five fields show time offset (seconds), frequency offset (parts per million - PPM), RMS jitter (seconds), Allan deviation (PPM) and clock -discipline time constant. -

    -
    peerstats
    -

    Enables recording of peer statistics information. +discipline time constant. +

    peerstats
    Enables recording of peer statistics information. This includes statistics records of all peers of a NTP server and of special -signals, where present and configured. +signals, where present and configured. Each valid update appends a line of the following form to the current element of a file generation set named peerstats: -

    48773 10847.650 127.127.4.1 9714 -0.001605376 0.000000000 0.001424877 0.000958674
    -
    -

    The first two fields show the date (Modified Julian Day) and -time (seconds and fraction past UTC midnight). +

              
    +          48773 10847.650 127.127.4.1 9714 -0.001605376 0.000000000 0.001424877 0.000958674
    +     
    + +

    The first two fields show the date (Modified Julian Day) and +time (seconds and fraction past UTC midnight). The next two fields show the peer address in dotted-quad notation and status, -respectively. +respectively. The status field is encoded in hex in the format -described in Appendix A of the NTP specification RFC 1305. +described in Appendix A of the NTP specification RFC 1305. The final four fields show the offset, -delay, dispersion and RMS jitter, all in seconds. -

    -
    rawstats
    -

    Enables recording of raw-timestamp statistics information. +delay, dispersion and RMS jitter, all in seconds. +

    rawstats
    Enables recording of raw-timestamp statistics information. This includes statistics records of all peers of a NTP server and of -special signals, where present and configured. +special signals, where present and configured. Each NTP message received from a peer or clock driver appends a line of the following form to the file generation set named rawstats: -

    50928 2132.543 128.4.1.1 128.4.1.20 3102453281.584327000 3102453281.58622800031 02453332.540806000 3102453332.541458000
    -
    -

    The first two fields show the date (Modified Julian Day) and -time (seconds and fraction past UTC midnight). +

              
    +          50928 2132.543 128.4.1.1 128.4.1.20 3102453281.584327000 3102453281.58622800031 02453332.540806000 3102453332.541458000
    +     
    + +

    The first two fields show the date (Modified Julian Day) and +time (seconds and fraction past UTC midnight). The next two fields show the remote peer or clock address followed by the local address -in dotted-quad notation. +in dotted-quad notation. The final four fields show the originate, -receive, transmit and final NTP timestamps in order. +receive, transmit and final NTP timestamps in order. The timestamp values are as received and before processing by the various data -smoothing and mitigation algorithms. -

    -
    sysstats
    -

    Enables recording of ntpd statistics counters on a periodic basis. +smoothing and mitigation algorithms. +

    sysstats
    Enables recording of ntpd statistics counters on a periodic basis. Each hour a line of the following form is appended to the file generation set named sysstats: -

    50928 2132.543 36000 81965 0 9546 56 71793 512 540 10 147
    -
    -

    The first two fields show the date (Modified Julian Day) and time -(seconds and fraction past UTC midnight). +

              
    +          50928 2132.543 36000 81965 0 9546 56 71793 512 540 10 147
    +     
    + +

    The first two fields show the date (Modified Julian Day) and time +(seconds and fraction past UTC midnight). The remaining ten fields show the statistics counter values accumulated since the last generated line. -

    -
    Time since restart 36000
    -

    Time in hours since the system was last rebooted. -

    -
    Packets received 81965
    -

    Total number of packets received. -

    -
    Packets processed 0
    -

    Number of packets received in response to previous packets sent -

    -
    Current version 9546
    -

    Number of packets matching the current NTP version. -

    -
    Previous version 56
    -

    Number of packets matching the previous NTP version. -

    -
    Bad version 71793
    -

    Number of packets matching neither NTP version. -

    -
    Access denied 512
    -

    Number of packets denied access for any reason. -

    -
    Bad length or format 540
    -

    Number of packets with invalid length, format or port number. -

    -
    Bad authentication 10
    -

    Number of packets not verified as authentic. -

    -
    Rate exceeded 147
    -

    Number of packets discarded due to rate limitation. -

    +
    +
    Time since restart 36000
    Time in hours since the system was last rebooted. +
    Packets received 81965
    Total number of packets received. +
    Packets processed 0
    Number of packets received in response to previous packets sent +
    Current version 9546
    Number of packets matching the current NTP version. +
    Previous version 56
    Number of packets matching the previous NTP version. +
    Bad version 71793
    Number of packets matching neither NTP version. +
    Access denied 512
    Number of packets denied access for any reason. +
    Bad length or format 540
    Number of packets with invalid length, format or port number. +
    Bad authentication 10
    Number of packets not verified as authentic. +
    Rate exceeded 147
    Number of packets discarded due to rate limitation.
    -
    -
    statsdir directory_path
    -

    Indicates the full path of a directory where statistics files -should be created (see below). +

    statsdir directory_path
    Indicates the full path of a directory where statistics files +should be created (see below). This keyword allows the (otherwise constant) filegen filename prefix to be modified for file generation sets, which -is useful for handling statistics logs. -

    -
    filegen name [file filename] [type typename] [link | nolink] [enable | disable]
    -

    Configures setting of generation file set name. +is useful for handling statistics logs. +

    filegen name [file filename] [type typename] [link | nolink] [enable | disable]
    Configures setting of generation file set name. Generation file sets provide a means for handling files that are -continuously growing during the lifetime of a server. -Server statistics are a typical example for such files. +continuously growing during the lifetime of a server. +Server statistics are a typical example for such files. Generation file sets provide access to a set of files used -to store the actual data. +to store the actual data. At any time at most one element -of the set is being written to. +of the set is being written to. The type given specifies -when and how data will be directed to a new element of the set. +when and how data will be directed to a new element of the set. This way, information stored in elements of a file set that are currently unused are available for administrational -operations without the risk of disturbing the operation of ntpd. +operations without the risk of disturbing the operation of ntpd. (Most important: they can be removed to free space for new data produced.) -

    -

    Note that this command can be sent from the + +

    Note that this command can be sent from the ntpdc(1ntpdcmdoc) program running at a remote location. -

    -
    name
    -

    This is the type of the statistics records, as shown in the +

    +
    name
    This is the type of the statistics records, as shown in the statistics -command. -

    -
    file filename
    -

    This is the file name for the statistics records. +command. +

    file filename
    This is the file name for the statistics records. Filenames of set members are built from three concatenated elements prefix, filename and suffix: -

    -
    prefix
    -

    This is a constant filename path. +

    +
    prefix
    This is a constant filename path. It is not subject to modifications via the filegen -option. +option. It is defined by the -server, usually specified as a compile-time constant. +server, usually specified as a compile-time constant. It may, however, be configurable for individual file generation sets -via other commands. +via other commands. For example, the prefix used with loopstats and peerstats generation can be configured using the statsdir -option explained above. -

    -
    filename
    -

    This string is directly concatenated to the prefix mentioned +option explained above. +

    filename
    This string is directly concatenated to the prefix mentioned above (no intervening -‘/’). +/). This can be modified using the file argument to the filegen -statement. +statement. No -.. +.. elements are allowed in this component to prevent filenames referring to parts outside the filesystem hierarchy denoted by -prefix. -

    -
    suffix
    -

    This part is reflects individual elements of a file set. +prefix. +

    suffix
    This part is reflects individual elements of a file set. It is -generated according to the type of a file set. -

    +generated according to the type of a file set.
    -
    -
    type typename
    -

    A file generation set is characterized by its type. +

    type typename
    A file generation set is characterized by its type. The following types are supported: -

    -
    none
    -

    The file set is actually a single plain file. -

    -
    pid
    -

    One element of file set is used per incarnation of a ntpd -server. +

    +
    none
    The file set is actually a single plain file. +
    pid
    One element of file set is used per incarnation of a ntpd +server. This type does not perform any changes to file set members during runtime, however it provides an easy way of separating files belonging to different ntpd(1ntpdmdoc) -server incarnations. +server incarnations. The set member filename is built by appending a -‘.’ +. to concatenated prefix and @@ -1451,423 +1275,377 @@ and strings, and appending the decimal representation of the process ID of the ntpd(1ntpdmdoc) -server process. -

    -
    day
    -

    One file generation set element is created per day. +server process. +

    day
    One file generation set element is created per day. A day is -defined as the period between 00:00 and 24:00 UTC. +defined as the period between 00:00 and 24:00 UTC. The file set member suffix consists of a -‘.’ +. and a day specification in the form -YYYYMMdd. +YYYYMMdd. YYYY -is a 4-digit year number (e.g., 1992). +is a 4-digit year number (e.g., 1992). MM -is a two digit month number. +is a two digit month number. dd -is a two digit day number. +is a two digit day number. Thus, all information written at 10 December 1992 would end up in a file named prefix -filename.19921210. -

    -
    week
    -

    Any file set member contains data related to a certain week of -a year. +filename.19921210. +

    week
    Any file set member contains data related to a certain week of +a year. The term week is defined by computing day-of-year -modulo 7. +modulo 7. Elements of such a file generation set are distinguished by appending the following suffix to the file set filename base: A dot, a 4-digit year number, the letter W, -and a 2-digit week number. +and a 2-digit week number. For example, information from January, 10th 1992 would end up in a file with suffix -.No . Ns Ar 1992W1 . -

    -
    month
    -

    One generation file set element is generated per month. +.No . Ns Ar 1992W1 . +

    month
    One generation file set element is generated per month. The file name suffix consists of a dot, a 4-digit year number, and -a 2-digit month. -

    -
    year
    -

    One generation file element is generated per year. +a 2-digit month. +

    year
    One generation file element is generated per year. The filename -suffix consists of a dot and a 4 digit year number. -

    -
    age
    -

    This type of file generation sets changes to a new element of -the file set every 24 hours of server operation. +suffix consists of a dot and a 4 digit year number. +

    age
    This type of file generation sets changes to a new element of +the file set every 24 hours of server operation. The filename suffix consists of a dot, the letter a, -and an 8-digit number. +and an 8-digit number. This number is taken to be the number of seconds the server is -running at the start of the corresponding 24-hour period. +running at the start of the corresponding 24-hour period. Information is only written to a file generation by specifying enable; output is prevented by specifying -disable. -

    +disable.
    -
    -
    link | nolink
    -

    It is convenient to be able to access the current element of a file -generation set by a fixed name. +

    link | nolink
    It is convenient to be able to access the current element of a file +generation set by a fixed name. This feature is enabled by specifying link and disabled using -nolink. +nolink. If link is specified, a hard link from the current file set element to a file without -suffix is created. +suffix is created. When there is already a file with this name and the number of links of this file is one, it is renamed appending a dot, the letter C, and the pid of the ntpd(1ntpdmdoc) -server process. +server process. When the -number of links is greater than one, the file is unlinked. +number of links is greater than one, the file is unlinked. This -allows the current file to be accessed by a constant name. -

    -
    enable | disable
    -

    Enables or disables the recording function. -

    -
    -
    +allows the current file to be accessed by a constant name. +
    enable | disable
    Enables or disables the recording function.
    -
    -
    -
    +
    +
    +
    +


    - - -

    1.1.4 Access Control Support

    + +

    Access Control Support

    +

    The ntpd(1ntpdmdoc) daemon implements a general purpose address/mask based restriction -list. +list. The list contains address/match entries sorted first -by increasing address values and and then by increasing mask values. +by increasing address values and and then by increasing mask values. A match occurs when the bitwise AND of the mask and the packet source address is equal to the bitwise AND of the mask and -address in the list. +address in the list. The list is searched in order with the last match found defining the restriction flags associated -with the entry. +with the entry. Additional information and examples can be found in the -"Notes on Configuring NTP and Setting up a NTP Subnet" +"Notes on Configuring NTP and Setting up a NTP Subnet" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp). -

    -

    The restriction facility was implemented in conformance +/usr/share/doc/ntp). + +

    The restriction facility was implemented in conformance with the access policies for the original NSFnet backbone -time servers. +time servers. Later the facility was expanded to deflect -cryptographic and clogging attacks. +cryptographic and clogging attacks. While this facility may be useful for keeping unwanted or broken or malicious clients from congesting innocent servers, it should not be considered -an alternative to the NTP authentication facilities. +an alternative to the NTP authentication facilities. Source address based restrictions are easily circumvented by a determined cracker. -

    -

    Clients can be denied service because they are explicitly + +

    Clients can be denied service because they are explicitly included in the restrict list created by the restrict command or implicitly as the result of cryptographic or rate limit -violations. +violations. Cryptographic violations include certificate or identity verification failure; rate limit violations generally result from defective NTP implementations that send packets -at abusive rates. +at abusive rates. Some violations cause denied service only for the offending packet, others cause denied service for a timed period and others cause the denied service for -an indefinite period. +an indefinite period. When a client or network is denied access for an indefinite period, the only way at present to remove the restrictions is by restarting the server. -

    -

    1.1.4.1 The Kiss-of-Death Packet

    + +
    The Kiss-of-Death Packet
    +

    Ordinarily, packets denied service are simply dropped with no -further action except incrementing statistics counters. +further action except incrementing statistics counters. Sometimes a more proactive response is needed, such as a server message that explicitly requests the client to stop sending and leave a message -for the system operator. +for the system operator. A special packet format has been created -for this purpose called the "kiss-of-death" (KoD) packet. +for this purpose called the "kiss-of-death" (KoD) packet. KoD packets have the leap bits set unsynchronized and stratum set to zero and the reference identifier field set to a four-byte -ASCII code. +ASCII code. If the noserve or notrust flag of the matching restrict list entry is set, -the code is "DENY"; if the +the code is "DENY"; if the limited flag is set and the rate limit -is exceeded, the code is "RATE". -Finally, if a cryptographic violation occurs, the code is "CRYP". -

    -

    A client receiving a KoD performs a set of sanity checks to +is exceeded, the code is "RATE". +Finally, if a cryptographic violation occurs, the code is "CRYP". + +

    A client receiving a KoD performs a set of sanity checks to minimize security exposure, then updates the stratum and reference identifier peer variables, sets the access denied (TEST4) bit in the peer flash variable and sends -a message to the log. +a message to the log. As long as the TEST4 bit is set, -the client will send no further packets to the server. +the client will send no further packets to the server. The only way at present to recover from this condition is -to restart the protocol at both the client and server. +to restart the protocol at both the client and server. This -happens automatically at the client when the association times out. +happens automatically at the client when the association times out. It will happen at the server only if the server operator cooperates. -

    -

    1.1.4.2 Access Control Commands

    -
    -
    discard [average avg] [minimum min] [monitor prob]
    -

    Set the parameters of the + +

    Access Control Commands
    + +
    +
    discard [average avg] [minimum min] [monitor prob]
    Set the parameters of the limited facility which protects the server from -client abuse. +client abuse. The average subcommand specifies the minimum average packet spacing, while the minimum -subcommand specifies the minimum packet spacing. +subcommand specifies the minimum packet spacing. Packets that violate these minima are discarded -and a kiss-o’-death packet returned if enabled. +and a kiss-o'-death packet returned if enabled. The default -minimum average and minimum are 5 and 2, respectively. +minimum average and minimum are 5 and 2, respectively. The monitor subcommand specifies the probability of discard -for packets that overflow the rate-control window. -

    -
    restrict address [mask mask] [flag ...]
    -

    The +for packets that overflow the rate-control window. +

    restrict address [mask mask] [flag ...]
    The address argument expressed in -dotted-quad form is the address of a host or network. +dotted-quad form is the address of a host or network. Alternatively, the address -argument can be a valid host DNS name. +argument can be a valid host DNS name. The mask argument expressed in dotted-quad form defaults to 255.255.255.255, meaning that the address -is treated as the address of an individual host. +is treated as the address of an individual host. A default entry (address 0.0.0.0, mask 0.0.0.0) -is always included and is always the first entry in the list. +is always included and is always the first entry in the list. Note that text string default, with no mask option, may -be used to indicate the default entry. +be used to indicate the default entry. In the current implementation, flag always restricts access, i.e., an entry with no flags indicates that free -access to the server is to be given. +access to the server is to be given. The flags are not orthogonal, in that more restrictive flags will often make less restrictive -ones redundant. +ones redundant. The flags can generally be classed into two categories, those which restrict time service and those which restrict informational queries and attempts to do run-time -reconfiguration of the server. +reconfiguration of the server. One or more of the following flags may be specified: -

    -
    ignore
    -

    Deny packets of all kinds, including +

    +
    ignore
    Deny packets of all kinds, including ntpq(1ntpqmdoc) and ntpdc(1ntpdcmdoc) -queries. -

    -
    kod
    -

    If this flag is set when an access violation occurs, a kiss-o’-death -(KoD) packet is sent. +queries. +

    kod
    If this flag is set when an access violation occurs, a kiss-o'-death +(KoD) packet is sent. KoD packets are rate limited to no more than one -per second. +per second. If another KoD packet occurs within one second after the -last one, the packet is dropped. -

    -
    limited
    -

    Deny service if the packet spacing violates the lower limits specified +last one, the packet is dropped. +

    limited
    Deny service if the packet spacing violates the lower limits specified in the discard -command. +command. A history of clients is kept using the monitoring capability of -ntpd(1ntpdmdoc). +ntpd(1ntpdmdoc). Thus, monitoring is always active as long as there is a restriction entry with the limited -flag. -

    -
    lowpriotrap
    -

    Declare traps set by matching hosts to be low priority. +flag. +

    lowpriotrap
    Declare traps set by matching hosts to be low priority. The number of traps a server can maintain is limited (the current limit -is 3). +is 3). Traps are usually assigned on a first come, first served -basis, with later trap requestors being denied service. +basis, with later trap requestors being denied service. This flag modifies the assignment algorithm by allowing low priority traps to -be overridden by later requests for normal priority traps. -

    -
    nomodify
    -

    Deny +be overridden by later requests for normal priority traps. +

    nomodify
    Deny ntpq(1ntpqmdoc) and ntpdc(1ntpdcmdoc) queries which attempt to modify the state of the -server (i.e., run time reconfiguration). +server (i.e., run time reconfiguration). Queries which return -information are permitted. -

    -
    noquery
    -

    Deny +information are permitted. +

    noquery
    Deny ntpq(1ntpqmdoc) and ntpdc(1ntpdcmdoc) -queries. -Time service is not affected. -

    -
    nopeer
    -

    Deny packets which would result in mobilizing a new association. +queries. +Time service is not affected. +

    nopeer
    Deny packets which would result in mobilizing a new association. This includes broadcast and symmetric active packets when a configured -association does not exist. +association does not exist. It also includes pool -associations, so if you want to use servers from a +associations, so if you want to use servers from a pool directive and also want to use nopeer -by default, you’ll want a +by default, you'll want a restrict source ... line as well that does -

    -
    not
    -

    include the +

    not
    include the nopeer -directive. -

    -
    noserve
    -

    Deny all packets except +directive. +

    noserve
    Deny all packets except ntpq(1ntpqmdoc) and ntpdc(1ntpdcmdoc) -queries. -

    -
    notrap
    -

    Decline to provide mode 6 control message trap service to matching -hosts. +queries. +

    notrap
    Decline to provide mode 6 control message trap service to matching +hosts. The trap service is a subsystem of the ntpq(1ntpqmdoc) control message -protocol which is intended for use by remote event logging programs. -

    -
    notrust
    -

    Deny service unless the packet is cryptographically authenticated. -

    -
    ntpport
    -

    This is actually a match algorithm modifier, rather than a -restriction flag. +protocol which is intended for use by remote event logging programs. +

    notrust
    Deny service unless the packet is cryptographically authenticated. +
    ntpport
    This is actually a match algorithm modifier, rather than a +restriction flag. Its presence causes the restriction entry to be matched only if the source port in the packet is the standard NTP -UDP port (123). +UDP port (123). Both ntpport and non-ntpport may -be specified. +be specified. The ntpport is considered more specific and -is sorted later in the list. -

    -
    version
    -

    Deny packets that do not match the current NTP version. -

    +is sorted later in the list. +
    version
    Deny packets that do not match the current NTP version.
    -

    Default restriction list entries with the flags ignore, interface, -ntpport, for each of the local host’s interface addresses are +

    Default restriction list entries with the flags ignore, interface, +ntpport, for each of the local host's interface addresses are inserted into the table at startup to prevent the server -from attempting to synchronize to its own time. +from attempting to synchronize to its own time. A default entry is also always present, though if it is otherwise unconfigured; no flags are associated with the default entry (i.e., everything besides your own -NTP server is unrestricted). -

    +NTP server is unrestricted).
    -
    +
    +


    - - -

    1.1.5 Automatic NTP Configuration Options

    - -

    1.1.5.1 Manycasting

    + +

    Automatic NTP Configuration Options

    + +
    Manycasting
    +

    Manycasting is a automatic discovery and configuration paradigm -new to NTPv4. +new to NTPv4. It is intended as a means for a multicast client to troll the nearby network neighborhood to find cooperating manycast servers, validate them using cryptographic means and evaluate their time values with respect to other servers -that might be lurking in the vicinity. +that might be lurking in the vicinity. The intended result is that each manycast client mobilizes -client associations with some number of the "best" +client associations with some number of the "best" of the nearby manycast servers, yet automatically reconfigures to sustain this number of servers should one or another fail. -

    -

    Note that the manycasting paradigm does not coincide + +

    Note that the manycasting paradigm does not coincide with the anycast paradigm described in RFC-1546, which is designed to find a single server from a clique -of servers providing the same service. +of servers providing the same service. The manycast paradigm is designed to find a plurality of redundant servers satisfying defined optimality criteria. -

    -

    Manycasting can be used with either symmetric key -or public key cryptography. + +

    Manycasting can be used with either symmetric key +or public key cryptography. The public key infrastructure (PKI) offers the best protection against compromised keys and is generally considered stronger, at least with relatively -large key sizes. +large key sizes. It is implemented using the Autokey protocol and the OpenSSL cryptographic library available from -http://www.openssl.org/. +http://www.openssl.org/. The library can also be used with other NTPv4 modes as well and is highly recommended, especially for broadcast modes. -

    -

    A persistent manycast client association is configured + +

    A persistent manycast client association is configured using the manycastclient command, which is similar to the @@ -1876,62 +1654,62 @@ command but with a multicast (IPv4 class D or IPv6 prefix FF) -group address. +group address. The IANA has designated IPv4 address 224.1.1.1 -and IPv6 address FF05::101 (site local) for NTP. +and IPv6 address FF05::101 (site local) for NTP. When more servers are needed, it broadcasts manycast client messages to this address at the minimum feasible rate and minimum feasible time-to-live (TTL) hops, depending -on how many servers have already been found. +on how many servers have already been found. There can be as many manycast client associations as different group address, each one serving as a template for a future ephemeral unicast client/server association. -

    -

    Manycast servers configured with the + +

    Manycast servers configured with the manycastserver command listen on the specified group address for manycast -client messages. +client messages. Note the distinction between manycast client, which actively broadcasts messages, and manycast server, -which passively responds to them. +which passively responds to them. If a manycast server is in scope of the current TTL and is itself synchronized to a valid source and operating at a stratum level equal to or lower than the manycast client, it replies to the manycast client message with an ordinary unicast server message. -

    -

    The manycast client receiving this message mobilizes + +

    The manycast client receiving this message mobilizes an ephemeral client/server association according to the matching manycast client template, but only if cryptographically authenticated and the server stratum is less than or equal -to the client stratum. +to the client stratum. Authentication is explicitly required -and either symmetric key or public key (Autokey) can be used. +and either symmetric key or public key (Autokey) can be used. Then, the client polls the server at its unicast address in burst mode in order to reliably set the host clock -and validate the source. +and validate the source. This normally results in a volley of eight client/server at 2-s intervals during which both the synchronization and cryptographic -protocols run concurrently. +protocols run concurrently. Following the volley, the client runs the NTP intersection and clustering -algorithms, which act to discard all but the "best" +algorithms, which act to discard all but the "best" associations according to stratum and synchronization -distance. +distance. The surviving associations then continue in ordinary client/server mode. -

    -

    The manycast client polling strategy is designed to reduce + +

    The manycast client polling strategy is designed to reduce as much as possible the volume of manycast client messages and the effects of implosion due to near-simultaneous -arrival of manycast server messages. +arrival of manycast server messages. The strategy is determined by the manycastclient, tos and ttl -configuration commands. +configuration commands. The manycast poll interval is normally eight times the system poll interval, which starts out at the @@ -1940,17 +1718,17 @@ value specified in the manycastclient, command and, under normal circumstances, increments to the maxpolll -value specified in this command. +value specified in this command. Initially, the TTL is set at the minimum hops specified by the ttl -command. +command. At each retransmission the TTL is increased until reaching the maximum hops specified by this command or a sufficient -number client associations have been found. +number client associations have been found. Further retransmissions use the same TTL. -

    -

    The quality and reliability of the suite of associations + +

    The quality and reliability of the suite of associations discovered by the manycast client is determined by the NTP mitigation algorithms and the minclock @@ -1958,66 +1736,66 @@ and minsane values specified in the tos -configuration command. +configuration command. At least minsane candidate servers must be available and the mitigation algorithms produce at least minclock -survivors in order to synchronize the clock. +survivors in order to synchronize the clock. Byzantine agreement principles require at least four -candidates in order to correctly discard a single falseticker. +candidates in order to correctly discard a single falseticker. For legacy purposes, minsane defaults to 1 and minclock -defaults to 3. +defaults to 3. For manycast service minsane should be explicitly set to 4, assuming at least that number of servers are available. -

    -

    If at least + +

    If at least minclock servers are found, the manycast poll interval is immediately set to eight times -maxpoll. +maxpoll. If less than minclock servers are found when the TTL has reached the maximum hops, -the manycast poll interval is doubled. +the manycast poll interval is doubled. For each transmission after that, the poll interval is doubled again until reaching the maximum of eight times -maxpoll. +maxpoll. Further transmissions use the same poll interval and -TTL values. +TTL values. Note that while all this is going on, each client/server association found is operating normally it the system poll interval. -

    -

    Administratively scoped multicast boundaries are normally + +

    Administratively scoped multicast boundaries are normally specified by the network router configuration and, -in the case of IPv6, the link/site scope prefix. +in the case of IPv6, the link/site scope prefix. By default, the increment for TTL hops is 32 starting from 31; however, the ttl configuration command can be used to modify the values to match the scope rules. -

    -

    It is often useful to narrow the range of acceptable -servers which can be found by manycast client associations. + +

    It is often useful to narrow the range of acceptable +servers which can be found by manycast client associations. Because manycast servers respond only when the client stratum is equal to or greater than the server stratum, primary (stratum 1) servers fill find only primary servers -in TTL range, which is probably the most common objective. +in TTL range, which is probably the most common objective. However, unless configured otherwise, all manycast clients in TTL range will eventually find all primary servers in TTL range, which is probably not the most common -objective in large networks. +objective in large networks. The tos -command can be used to modify this behavior. +command can be used to modify this behavior. Servers with stratum below floor or above @@ -2029,283 +1807,269 @@ process; however, these servers may be temporally accepted if the number of servers within TTL range is less than minclock. -

    -

    The above actions occur for each manycast client message, -which repeats at the designated poll interval. + +

    The above actions occur for each manycast client message, +which repeats at the designated poll interval. However, once the ephemeral client association is mobilized, subsequent manycast server replies are discarded, -since that would result in a duplicate association. +since that would result in a duplicate association. If during a poll interval the number of client associations falls below minclock, all manycast client prototype associations are reset to the initial poll interval and TTL hops and operation -resumes from the beginning. +resumes from the beginning. It is important to avoid frequent manycast client messages, since each one requires -all manycast servers in TTL range to respond. +all manycast servers in TTL range to respond. The result could well be an implosion, either minor or major, -depending on the number of servers in range. +depending on the number of servers in range. The recommended value for maxpoll is 12 (4,096 s). -

    -

    It is possible and frequently useful to configure a host -as both manycast client and manycast server. + +

    It is possible and frequently useful to configure a host +as both manycast client and manycast server. A number of hosts configured this way and sharing a common group address will automatically organize themselves in an optimum configuration based on stratum and -synchronization distance. +synchronization distance. For example, consider an NTP subnet of two primary servers and a hundred or more -dependent clients. +dependent clients. With two exceptions, all servers and clients have identical configuration files including both multicastclient and multicastserver commands using, for instance, multicast group address -239.1.1.1. +239.1.1.1. The only exception is that each primary server configuration file must include commands for the primary reference source such as a GPS receiver. -

    -

    The remaining configuration files for all secondary + +

    The remaining configuration files for all secondary servers and clients have the same contents, except for the tos -command, which is specific for each stratum level. +command, which is specific for each stratum level. For stratum 1 and stratum 2 servers, that command is -not necessary. +not necessary. For stratum 3 and above servers the floor -value is set to the intended stratum number. +value is set to the intended stratum number. Thus, all stratum 3 configuration files are identical, all stratum 4 files are identical and so forth. -

    -

    Once operations have stabilized in this scenario, + +

    Once operations have stabilized in this scenario, the primary servers will find the primary reference source and each other, since they both operate at the same stratum (1), but not with any secondary server or client, -since these operate at a higher stratum. +since these operate at a higher stratum. The secondary -servers will find the servers at the same stratum level. +servers will find the servers at the same stratum level. If one of the primary servers loses its GPS receiver, it will continue to operate as a client and other clients will time out the corresponding association and re-associate accordingly. -

    -

    Some administrators prefer to avoid running + +

    Some administrators prefer to avoid running ntpd(1ntpdmdoc) continuously and run either sntp(1sntpmdoc) or ntpd(1ntpdmdoc) -q -as a cron job. +as a cron job. In either case the servers must be configured in advance and the program fails if none are -available when the cron job runs. +available when the cron job runs. A really slick application of manycast is with ntpd(1ntpdmdoc) --q. +-q. The program wakes up, scans the local landscape looking for the usual suspects, selects the best from among -the rascals, sets the clock and then departs. +the rascals, sets the clock and then departs. Servers do not have to be configured in advance and all clients throughout the network can have the same configuration file. -

    -

    1.1.5.2 Manycast Interactions with Autokey

    + +
    Manycast Interactions with Autokey
    +

    Each time a manycast client sends a client mode packet to a multicast group address, all manycast servers in scope generate a reply including the host name -and status word. +and status word. The manycast clients then run the Autokey protocol, which collects and verifies -all certificates involved. +all certificates involved. Following the burst interval all but three survivors are cast off, -but the certificates remain in the local cache. +but the certificates remain in the local cache. It often happens that several complete signing trails from the client to the primary servers are collected in this way. -

    -

    About once an hour or less often if the poll interval -exceeds this, the client regenerates the Autokey key list. -This is in general transparent in client/server mode. + +

    About once an hour or less often if the poll interval +exceeds this, the client regenerates the Autokey key list. +This is in general transparent in client/server mode. However, about once per day the server private value used to generate cookies is refreshed along with all -manycast client associations. +manycast client associations. In this case all -cryptographic values including certificates is refreshed. +cryptographic values including certificates is refreshed. If a new certificate has been generated since the last refresh epoch, it will automatically revoke all prior certificates that happen to be in the -certificate cache. +certificate cache. At the same time, the manycast scheme starts all over from the beginning and the expanding ring shrinks to the minimum and increments from there while collecting all servers in scope. -

    -

    1.1.5.3 Broadcast Options

    -
    -
    tos [bcpollbstep gate]
    -

    This command provides a way to delay, + +

    Broadcast Options
    + +
    +
    tos [bcpollbstep gate]
    This command provides a way to delay, by the specified number of broadcast poll intervals, -believing backward time steps from a broadcast server. -Broadcast time networks are expected to be trusted. -In the event a broadcast server’s time is stepped backwards, +believing backward time steps from a broadcast server. +Broadcast time networks are expected to be trusted. +In the event a broadcast server's time is stepped backwards, there is clear benefit to having the clients notice this change -as soon as possible. +as soon as possible. Attacks such as replay attacks can happen, however, and even though there are a number of protections built in to -broadcast mode, attempts to perform a replay attack are possible. +broadcast mode, attempts to perform a replay attack are possible. This value defaults to 0, but can be changed to any number of poll intervals between 0 and 4. -

    -
    - -

    1.1.5.4 Manycast Options

    -
    -
    tos [ceiling ceiling | cohort { 0 | 1 } | floor floor | minclock minclock | minsane minsane]
    -

    This command affects the clock selection and clustering -algorithms. + +

    Manycast Options
    + +
    +
    tos [ceiling ceiling | cohort { 0 | 1 } | floor floor | minclock minclock | minsane minsane]
    This command affects the clock selection and clustering +algorithms. It can be used to select the quality and quantity of peers used to synchronize the system clock -and is most useful in manycast mode. +and is most useful in manycast mode. The variables operate as follows: -

    -
    ceiling ceiling
    -

    Peers with strata above +

    +
    ceiling ceiling
    Peers with strata above ceiling will be discarded if there are at least minclock -peers remaining. +peers remaining. This value defaults to 15, but can be changed -to any number from 1 to 15. -

    -
    cohort {0 | 1}
    -

    This is a binary flag which enables (0) or disables (1) +to any number from 1 to 15. +

    cohort {0 | 1}
    This is a binary flag which enables (0) or disables (1) manycast server replies to manycast clients with the same -stratum level. +stratum level. This is useful to reduce implosions where large numbers of clients with the same stratum level -are present. -The default is to enable these replies. -

    -
    floor floor
    -

    Peers with strata below +are present. +The default is to enable these replies. +

    floor floor
    Peers with strata below floor will be discarded if there are at least minclock -peers remaining. +peers remaining. This value defaults to 1, but can be changed -to any number from 1 to 15. -

    -
    minclock minclock
    -

    The clustering algorithm repeatedly casts out outlier +to any number from 1 to 15. +

    minclock minclock
    The clustering algorithm repeatedly casts out outlier associations until no more than minclock -associations remain. +associations remain. This value defaults to 3, but can be changed to any number from 1 to the number of -configured sources. -

    -
    minsane minsane
    -

    This is the minimum number of candidates available +configured sources. +

    minsane minsane
    This is the minimum number of candidates available to the clock selection algorithm in order to produce -one or more truechimers for the clustering algorithm. +one or more truechimers for the clustering algorithm. If fewer than this number are available, the clock is -undisciplined and allowed to run free. +undisciplined and allowed to run free. The default is 1 -for legacy purposes. +for legacy purposes. However, according to principles of Byzantine agreement, minsane should be at least 4 in order to detect and discard -a single falseticker. -

    +a single falseticker.
    -
    -
    ttl hop ...
    -

    This command specifies a list of TTL values in increasing -order, up to 8 values can be specified. +

    ttl hop ...
    This command specifies a list of TTL values in increasing +order, up to 8 values can be specified. In manycast mode these values are used in turn -in an expanding-ring search. +in an expanding-ring search. The default is eight -multiples of 32 starting at 31. -

    +multiples of 32 starting at 31.
    -
    +
    +


    - - -

    1.1.6 Reference Clock Support

    -

    The NTP Version 4 daemon supports some three dozen different radio, + +

    Reference Clock Support

    + +

    The NTP Version 4 daemon supports some three dozen different radio, satellite and modem reference clocks plus a special pseudo-clock -used for backup or when no other clock source is available. +used for backup or when no other clock source is available. Detailed descriptions of individual device drivers and options can be found in the -"Reference Clock Drivers" +"Reference Clock Drivers" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp). +/usr/share/doc/ntp). Additional information can be found in the pages linked there, including the -"Debugging Hints for Reference Clock Drivers" +"Debugging Hints for Reference Clock Drivers" and -"How To Write a Reference Clock Driver" +"How To Write a Reference Clock Driver" pages (available as part of the HTML documentation provided in -/usr/share/doc/ntp). +/usr/share/doc/ntp). In addition, support for a PPS signal is available as described in the -"Pulse-per-second (PPS) Signal Interfacing" +"Pulse-per-second (PPS) Signal Interfacing" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp). +/usr/share/doc/ntp). Many drivers support special line discipline/streams modules which can -significantly improve the accuracy using the driver. +significantly improve the accuracy using the driver. These are described in the -"Line Disciplines and Streams Drivers" +"Line Disciplines and Streams Drivers" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp). -

    -

    A reference clock will generally (though not always) be a radio +/usr/share/doc/ntp). + +

    A reference clock will generally (though not always) be a radio timecode receiver which is synchronized to a source of standard time such as the services offered by the NRC in Canada and NIST and -USNO in the US. +USNO in the US. The interface between the computer and the timecode -receiver is device dependent, but is usually a serial port. +receiver is device dependent, but is usually a serial port. A device driver specific to each reference clock must be selected and compiled in the distribution; however, most common radio, satellite -and modem clocks are included by default. +and modem clocks are included by default. Note that an attempt to configure a reference clock when the driver has not been compiled or the hardware port has not been appropriately configured results in a scalding remark to the system log file, but is otherwise non hazardous. -

    -

    For the purposes of configuration, + +

    For the purposes of configuration, ntpd(1ntpdmdoc) treats reference clocks in a manner analogous to normal NTP peers as much -as possible. +as possible. Reference clocks are identified by a syntactically correct but invalid IP address, in order to distinguish them from -normal NTP peers. +normal NTP peers. Reference clock addresses are of the form 127.127.t.u, where @@ -2314,222 +2078,199 @@ is an integer denoting the clock type and u indicates the unit -number in the range 0-3. +number in the range 0-3. While it may seem overkill, it is in fact sometimes useful to configure multiple reference clocks of the same type, in which case the unit numbers must be unique. -

    -

    The + +

    The server command is used to configure a reference clock, where the address argument in that command -is the clock address. +is the clock address. The key, version and ttl -options are not used for reference clock support. +options are not used for reference clock support. The mode option is added for reference clock support, as -described below. +described below. The prefer option can be useful to persuade the server to cherish a reference clock with somewhat more -enthusiasm than other reference clocks or peers. +enthusiasm than other reference clocks or peers. Further information on this option can be found in the -"Mitigation Rules and the prefer Keyword" +"Mitigation Rules and the prefer Keyword" (available as part of the HTML documentation provided in -/usr/share/doc/ntp) -page. +/usr/share/doc/ntp) +page. The minpoll and maxpoll options have -meaning only for selected clock drivers. +meaning only for selected clock drivers. See the individual clock driver document pages for additional information. -

    -

    The + +

    The fudge command is used to provide additional information for individual clock drivers and normally follows immediately after the server -command. +command. The address -argument specifies the clock address. +argument specifies the clock address. The refid and stratum options can be used to -override the defaults for the device. +override the defaults for the device. There are two optional device-dependent time offsets and four flags that can be included in the fudge command as well. -

    -

    The stratum number of a reference clock is by default zero. + +

    The stratum number of a reference clock is by default zero. Since the ntpd(1ntpdmdoc) daemon adds one to the stratum of each peer, a primary server ordinarily displays an external stratum of -one. +one. In order to provide engineered backups, it is often useful to -specify the reference clock stratum as greater than zero. +specify the reference clock stratum as greater than zero. The stratum -option is used for this purpose. +option is used for this purpose. Also, in cases involving both a reference clock and a pulse-per-second (PPS) discipline signal, it is useful to specify the reference clock -identifier as other than the default, depending on the driver. +identifier as other than the default, depending on the driver. The refid -option is used for this purpose. +option is used for this purpose. Except where noted, these options apply to all clock drivers. -

    -

    1.1.6.1 Reference Clock Commands

    -
    -
    server 127.127.t.u [prefer] [mode int] [minpoll int] [maxpoll int]
    -

    This command can be used to configure reference clocks in -special ways. + +

    Reference Clock Commands
    + +
    +
    server 127.127.t.u [prefer] [mode int] [minpoll int] [maxpoll int]
    This command can be used to configure reference clocks in +special ways. The options are interpreted as follows: -

    -
    prefer
    -

    Marks the reference clock as preferred. +

    +
    prefer
    Marks the reference clock as preferred. All other things being equal, this host will be chosen for synchronization among a set of -correctly operating hosts. +correctly operating hosts. See the -"Mitigation Rules and the prefer Keyword" +"Mitigation Rules and the prefer Keyword" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp) -for further information. -

    -
    mode int
    -

    Specifies a mode number which is interpreted in a -device-specific fashion. +/usr/share/doc/ntp) +for further information. +

    mode int
    Specifies a mode number which is interpreted in a +device-specific fashion. For instance, it selects a dialing protocol in the ACTS driver and a device subtype in the parse -drivers. -

    -
    minpoll int
    -
    maxpoll int
    -

    These options specify the minimum and maximum polling interval +drivers. +

    minpoll int
    maxpoll int
    These options specify the minimum and maximum polling interval for reference clock messages, as a power of 2 in seconds For most directly connected reference clocks, both minpoll and maxpoll -default to 6 (64 s). +default to 6 (64 s). For modem reference clocks, minpoll defaults to 10 (17.1 m) and maxpoll -defaults to 14 (4.5 h). -The allowable range is 4 (16 s) to 17 (36.4 h) inclusive. -

    +defaults to 14 (4.5 h). +The allowable range is 4 (16 s) to 17 (36.4 h) inclusive.
    -
    -
    fudge 127.127.t.u [time1 sec] [time2 sec] [stratum int] [refid string] [mode int] [flag1 0 | 1] [flag2 0 | 1] [flag3 0 | 1] [flag4 0 | 1]
    -

    This command can be used to configure reference clocks in -special ways. +

    fudge 127.127.t.u [time1 sec] [time2 sec] [stratum int] [refid string] [mode int] [flag1 0 | 1] [flag2 0 | 1] [flag3 0 | 1] [flag4 0 | 1]
    This command can be used to configure reference clocks in +special ways. It must immediately follow the server -command which configures the driver. +command which configures the driver. Note that the same capability is possible at run time using the ntpdc(1ntpdcmdoc) -program. +program. The options are interpreted as follows: -

    -
    time1 sec
    -

    Specifies a constant to be added to the time offset produced by -the driver, a fixed-point decimal number in seconds. +

    +
    time1 sec
    Specifies a constant to be added to the time offset produced by +the driver, a fixed-point decimal number in seconds. This is used as a calibration constant to adjust the nominal time offset of a particular clock to agree with an external standard, such as a -precision PPS signal. +precision PPS signal. It also provides a way to correct a systematic error or bias due to serial port or operating system -latencies, different cable lengths or receiver internal delay. +latencies, different cable lengths or receiver internal delay. The specified offset is in addition to the propagation delay provided -by other means, such as internal DIPswitches. +by other means, such as internal DIPswitches. Where a calibration for an individual system and driver is available, an approximate -correction is noted in the driver documentation pages. +correction is noted in the driver documentation pages. Note: in order to facilitate calibration when more than one radio clock or PPS signal is supported, a special calibration -feature is available. +feature is available. It takes the form of an argument to the enable command described in Miscellaneous Options page and operates as described in the -"Reference Clock Drivers" +"Reference Clock Drivers" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp). -

    -
    time2 secs
    -

    Specifies a fixed-point decimal number in seconds, which is -interpreted in a driver-dependent way. +/usr/share/doc/ntp). +

    time2 secs
    Specifies a fixed-point decimal number in seconds, which is +interpreted in a driver-dependent way. See the descriptions of specific drivers in the -"Reference Clock Drivers" +"Reference Clock Drivers" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp). -

    -
    stratum int
    -

    Specifies the stratum number assigned to the driver, an integer -between 0 and 15. +/usr/share/doc/ntp). +

    stratum int
    Specifies the stratum number assigned to the driver, an integer +between 0 and 15. This number overrides the default stratum number -ordinarily assigned by the driver itself, usually zero. -

    -
    refid string
    -

    Specifies an ASCII string of from one to four characters which -defines the reference identifier used by the driver. +ordinarily assigned by the driver itself, usually zero. +

    refid string
    Specifies an ASCII string of from one to four characters which +defines the reference identifier used by the driver. This string overrides the default identifier ordinarily assigned by the driver -itself. -

    -
    mode int
    -

    Specifies a mode number which is interpreted in a -device-specific fashion. +itself. +

    mode int
    Specifies a mode number which is interpreted in a +device-specific fashion. For instance, it selects a dialing protocol in the ACTS driver and a device subtype in the parse -drivers. -

    -
    flag1 0 | 1
    -
    flag2 0 | 1
    -
    flag3 0 | 1
    -
    flag4 0 | 1
    -

    These four flags are used for customizing the clock driver. +drivers. +

    flag1 0 | 1
    flag2 0 | 1
    flag3 0 | 1
    flag4 0 | 1
    These four flags are used for customizing the clock driver. The interpretation of these values, and whether they are used at all, -is a function of the particular clock driver. +is a function of the particular clock driver. However, by convention flag4 @@ -2538,186 +2279,155 @@ data to the clockstats file configured with the filegen -command. +command. Further information on the filegen command can be found in -‘Monitoring Options’. -

    +Monitoring Options.
    -
    -
    -
    +
    +
    +


    -
    -

    -Next: , Previous: , Up: ntp.conf Notes  

    +
    - -

    1.1.7 Miscellaneous Options

    -
    -
    broadcastdelay seconds
    -

    The broadcast and multicast modes require a special calibration + +

    Miscellaneous Options

    + +
    +
    broadcastdelay seconds
    The broadcast and multicast modes require a special calibration to determine the network delay between the local and remote -servers. +servers. Ordinarily, this is done automatically by the initial -protocol exchanges between the client and server. +protocol exchanges between the client and server. In some cases, the calibration procedure may fail due to network or server access -controls, for example. +controls, for example. This command specifies the default delay to -be used under these circumstances. +be used under these circumstances. Typically (for Ethernet), a -number between 0.003 and 0.007 seconds is appropriate. +number between 0.003 and 0.007 seconds is appropriate. The default -when this command is not used is 0.004 seconds. -

    -
    calldelay delay
    -

    This option controls the delay in seconds between the first and second +when this command is not used is 0.004 seconds. +

    calldelay delay
    This option controls the delay in seconds between the first and second packets sent in burst or iburst mode to allow additional time for a modem -or ISDN call to complete. -

    -
    driftfile driftfile
    -

    This command specifies the complete path and name of the file used to -record the frequency of the local clock oscillator. +or ISDN call to complete. +

    driftfile driftfile
    This command specifies the complete path and name of the file used to +record the frequency of the local clock oscillator. This is the same operation as the -f -command line option. +command line option. If the file exists, it is read at startup in order to set the initial frequency and then updated once per -hour with the current frequency computed by the daemon. +hour with the current frequency computed by the daemon. If the file name is specified, but the file itself does not exist, the starts with an initial -frequency of zero and creates the file when writing it for the first time. +frequency of zero and creates the file when writing it for the first time. If this command is not given, the daemon will always start with an initial frequency of zero. -

    -

    The file format consists of a single line containing a single + +

    The file format consists of a single line containing a single floating point number, which records the frequency offset measured -in parts-per-million (PPM). +in parts-per-million (PPM). The file is updated by first writing the current drift value into a temporary file and then renaming -this file to replace the old version. +this file to replace the old version. This implies that ntpd(1ntpdmdoc) must have write permission for the directory the drift file is located in, and that file system links, symbolic or -otherwise, should be avoided. -

    -
    dscp value
    -

    This option specifies the Differentiated Services Control Point (DSCP) value, -a 6-bit code. -The default value is 46, signifying Expedited Forwarding. -

    -
    enable [auth | bclient | calibrate | kernel | mode7 | monitor | ntp | stats | peer_clear_digest_early | unpeer_crypto_early | unpeer_crypto_nak_early | unpeer_digest_early]
    -
    disable [auth | bclient | calibrate | kernel | mode7 | monitor | ntp | stats | peer_clear_digest_early | unpeer_crypto_early | unpeer_crypto_nak_early | unpeer_digest_early]
    -

    Provides a way to enable or disable various server options. -Flags not mentioned are unaffected. +otherwise, should be avoided. +

    dscp value
    This option specifies the Differentiated Services Control Point (DSCP) value, +a 6-bit code. +The default value is 46, signifying Expedited Forwarding. +
    enable [auth | bclient | calibrate | kernel | mode7 | monitor | ntp | stats | peer_clear_digest_early | unpeer_crypto_early | unpeer_crypto_nak_early | unpeer_digest_early]
    disable [auth | bclient | calibrate | kernel | mode7 | monitor | ntp | stats | peer_clear_digest_early | unpeer_crypto_early | unpeer_crypto_nak_early | unpeer_digest_early]
    Provides a way to enable or disable various server options. +Flags not mentioned are unaffected. Note that all of these flags can be controlled remotely using the ntpdc(1ntpdcmdoc) utility program. -

    -
    auth
    -

    Enables the server to synchronize with unconfigured peers only if the +

    +
    auth
    Enables the server to synchronize with unconfigured peers only if the peer has been correctly authenticated using either public key or -private key cryptography. +private key cryptography. The default for this flag is -enable. -

    -
    bclient
    -

    Enables the server to listen for a message from a broadcast or +enable. +

    bclient
    Enables the server to listen for a message from a broadcast or multicast server, as in the multicastclient command with default -address. +address. The default for this flag is -disable. -

    -
    calibrate
    -

    Enables the calibrate feature for reference clocks. +disable. +

    calibrate
    Enables the calibrate feature for reference clocks. The default for this flag is -disable. -

    -
    kernel
    -

    Enables the kernel time discipline, if available. +disable. +

    kernel
    Enables the kernel time discipline, if available. The default for this flag is enable if support is available, otherwise -disable. -

    -
    mode7
    -

    Enables processing of NTP mode 7 implementation-specific requests +disable. +

    mode7
    Enables processing of NTP mode 7 implementation-specific requests which are used by the deprecated ntpdc(1ntpdcmdoc) -program. -The default for this flag is disable. +program. +The default for this flag is disable. This flag is excluded from runtime configuration using -ntpq(1ntpqmdoc). +ntpq(1ntpqmdoc). The ntpq(1ntpqmdoc) program provides the same capabilities as ntpdc(1ntpdcmdoc) -using standard mode 6 requests. -

    -
    monitor
    -

    Enables the monitoring facility. +using standard mode 6 requests. +

    monitor
    Enables the monitoring facility. See the ntpdc(1ntpdcmdoc) program and the monlist -command or further information. +command or further information. The default for this flag is -enable. -

    -
    ntp
    -

    Enables time and frequency discipline. +enable. +

    ntp
    Enables time and frequency discipline. In effect, this switch opens and -closes the feedback loop, which is useful for testing. +closes the feedback loop, which is useful for testing. The default for this flag is -enable. -

    -
    peer_clear_digest_early
    -

    By default, if +enable. +

    peer_clear_digest_early
    By default, if ntpd(1ntpdmdoc) is using autokey and it receives a crypto-NAK packet that passes the duplicate packet and origin timestamp checks -the peer variables are immediately cleared. +the peer variables are immediately cleared. While this is generally a feature as it allows for quick recovery if a server key has changed, a properly forged and appropriately delivered crypto-NAK packet -can be used in a DoS attack. +can be used in a DoS attack. If you have active noticable problems with this type of DoS attack then you should consider -disabling this option. +disabling this option. You can check your peerstats -file for evidence of any of these attacks. +file for evidence of any of these attacks. The default for this flag is -enable. -

    -
    stats
    -

    Enables the statistics facility. +enable. +

    stats
    Enables the statistics facility. See the -‘Monitoring Options’ -section for further information. +Monitoring Options +section for further information. The default for this flag is -disable. -

    -
    unpeer_crypto_early
    -

    By default, if +disable. +

    unpeer_crypto_early
    By default, if ntpd(1ntpdmdoc) receives an autokey packet that fails TEST9, a crypto failure, -the association is immediately cleared. +the association is immediately cleared. This is almost certainly a feature, but if, in spite of the current recommendation of not using autokey, you are @@ -2727,112 +2437,101 @@ using autokey you are seeing this sort of DoS attack disabling this flag will delay tearing down the association until the reachability counter -becomes zero. +becomes zero. You can check your peerstats -file for evidence of any of these attacks. +file for evidence of any of these attacks. The default for this flag is -enable. -

    -
    unpeer_crypto_nak_early
    -

    By default, if +enable. +

    unpeer_crypto_nak_early
    By default, if ntpd(1ntpdmdoc) receives a crypto-NAK packet that passes the duplicate packet and origin timestamp checks -the association is immediately cleared. +the association is immediately cleared. While this is generally a feature as it allows for quick recovery if a server key has changed, a properly forged and appropriately delivered crypto-NAK packet -can be used in a DoS attack. +can be used in a DoS attack. If you have active noticable problems with this type of DoS attack then you should consider -disabling this option. +disabling this option. You can check your peerstats -file for evidence of any of these attacks. +file for evidence of any of these attacks. The default for this flag is -enable. -

    -
    unpeer_digest_early
    -

    By default, if +enable. +

    unpeer_digest_early
    By default, if ntpd(1ntpdmdoc) receives what should be an authenticated packet that passes other packet sanity checks but contains an invalid digest -the association is immediately cleared. +the association is immediately cleared. While this is generally a feature as it allows for quick recovery, if this type of packet is carefully forged and sent -during an appropriate window it can be used for a DoS attack. +during an appropriate window it can be used for a DoS attack. If you have active noticable problems with this type of DoS attack then you should consider -disabling this option. +disabling this option. You can check your peerstats -file for evidence of any of these attacks. +file for evidence of any of these attacks. The default for this flag is -enable. -

    +enable.
    -
    -
    includefile includefile
    -

    This command allows additional configuration commands -to be included from a separate file. +

    includefile includefile
    This command allows additional configuration commands +to be included from a separate file. Include files may be nested to a depth of five; upon reaching the end of any include file, command processing resumes in the previous -configuration file. +configuration file. This option is useful for sites that run ntpd(1ntpdmdoc) on multiple hosts, with (mostly) common options (e.g., a -restriction list). -

    -
    leapsmearinterval seconds
    -

    This EXPERIMENTAL option is only available if +restriction list). +

    leapsmearinterval seconds
    This EXPERIMENTAL option is only available if ntpd(1ntpdmdoc) was built with the --enable-leap-smear option to the configure -script. -It specifies the interval over which a leap second correction will be applied. +script. +It specifies the interval over which a leap second correction will be applied. Recommended values for this option are between -7200 (2 hours) and 86400 (24 hours). -.Sy DO NOT USE THIS OPTION ON PUBLIC-ACCESS SERVERS! -See http://bugs.ntp.org/2855 for more information. -

    -
    logconfig configkeyword
    -

    This command controls the amount and type of output written to +7200 (2 hours) and 86400 (24 hours). +.Sy DO NOT USE THIS OPTION ON PUBLIC-ACCESS SERVERS! +See http://bugs.ntp.org/2855 for more information. +

    logconfig configkeyword
    This command controls the amount and type of output written to the system syslog(3) facility or the alternate logfile -log file. -By default, all output is turned on. +log file. +By default, all output is turned on. All configkeyword keywords can be prefixed with -‘=’, -‘+’ +=, ++ and -‘-’, +-, where -‘=’ += sets the syslog(3) priority mask, -‘+’ ++ adds and -‘-’ +- removes -messages. +messages. syslog(3) messages can be controlled in four classes -(clock, peer, sys and sync). +(clock, peer, sys and sync). Within these classes four types of messages can be controlled: informational messages (info), @@ -2843,307 +2542,259 @@ statistics messages and status messages (status). -

    -

    Configuration keywords are formed by concatenating the message class with -the event class. + +

    Configuration keywords are formed by concatenating the message class with +the event class. The all -prefix can be used instead of a message class. +prefix can be used instead of a message class. A message class may also be followed by the all keyword to enable/disable all -messages of the respective message class. +messages of the respective message class. Thus, a minimal log configuration could look like this: -

    logconfig =syncstatus +sysevents
    -
    -

    This would just list the synchronizations state of +

              
    +          logconfig =syncstatus +sysevents
    +     
    + +

    This would just list the synchronizations state of ntpd(1ntpdmdoc) -and the major system events. +and the major system events. For a simple reference server, the following minimum message configuration could be useful: -

    logconfig =syncall +clockall
    -
    -

    This configuration will list all clock information and -synchronization information. +

              
    +          logconfig =syncall +clockall
    +     
    + +

    This configuration will list all clock information and +synchronization information. All other events and messages about -peers, system events and so on is suppressed. -

    -
    logfile logfile
    -

    This command specifies the location of an alternate log file to +peers, system events and so on is suppressed. +

    logfile logfile
    This command specifies the location of an alternate log file to be used instead of the default system syslog(3) -facility. +facility. This is the same operation as the -l -command line option. -

    -
    setvar variable [default]
    -

    This command adds an additional system variable. +command line option. +

    setvar variable [default]
    This command adds an additional system variable. These variables can be used to distribute additional information such as -the access policy. +the access policy. If the variable of the form name=value is followed by the default keyword, the variable will be listed as part of the default system variables -(rv command)). +(rv command)). These additional variables serve -informational purposes only. +informational purposes only. They are not related to the protocol -other that they can be listed. +other that they can be listed. The known protocol variables will always override any variables defined via the setvar -mechanism. +mechanism. There are three special variables that contain the names -of all variable of the same group. +of all variable of the same group. The sys_var_list holds -the names of all system variables. +the names of all system variables. The peer_var_list holds the names of all peer variables and the clock_var_list -holds the names of the reference clock variables. -

    -
    tinker [allan allan | dispersion dispersion | freq freq | huffpuff huffpuff | panic panic | step step | stepback stepback | stepfwd stepfwd | stepout stepout]
    -

    This command can be used to alter several system variables in -very exceptional circumstances. +holds the names of the reference clock variables. +

    tinker [allan allan | dispersion dispersion | freq freq | huffpuff huffpuff | panic panic | step step | stepback stepback | stepfwd stepfwd | stepout stepout]
    This command can be used to alter several system variables in +very exceptional circumstances. It should occur in the -configuration file before any other configuration options. +configuration file before any other configuration options. The default values of these variables have been carefully optimized for -a wide range of network speeds and reliability expectations. +a wide range of network speeds and reliability expectations. In general, they interact in intricate ways that are hard to predict -and some combinations can result in some very nasty behavior. +and some combinations can result in some very nasty behavior. Very rarely is it necessary to change the default values; but, some folks cannot resist twisting the knobs anyway and this command is -for them. +for them. Emphasis added: twisters are on their own and can expect no help from the support group. -

    -

    The variables operate as follows: -

    -
    allan allan
    -

    The argument becomes the new value for the minimum Allan + +

    The variables operate as follows: +

    +
    allan allan
    The argument becomes the new value for the minimum Allan intercept, which is a parameter of the PLL/FLL clock discipline -algorithm. +algorithm. The value in log2 seconds defaults to 7 (1024 s), which is also the lower -limit. -

    -
    dispersion dispersion
    -

    The argument becomes the new value for the dispersion increase rate, -normally .000015 s/s. -

    -
    freq freq
    -

    The argument becomes the initial value of the frequency offset in -parts-per-million. +limit. +

    dispersion dispersion
    The argument becomes the new value for the dispersion increase rate, +normally .000015 s/s. +
    freq freq
    The argument becomes the initial value of the frequency offset in +parts-per-million. This overrides the value in the frequency file, if -present, and avoids the initial training state if it is not. -

    -
    huffpuff huffpuff
    -

    The argument becomes the new value for the experimental -huff-n’-puff filter span, which determines the most recent interval -the algorithm will search for a minimum delay. +present, and avoids the initial training state if it is not. +

    huffpuff huffpuff
    The argument becomes the new value for the experimental +huff-n'-puff filter span, which determines the most recent interval +the algorithm will search for a minimum delay. The lower limit is -900 s (15 m), but a more reasonable value is 7200 (2 hours). +900 s (15 m), but a more reasonable value is 7200 (2 hours). There is no default, since the filter is not enabled unless this command -is given. -

    -
    panic panic
    -

    The argument is the panic threshold, normally 1000 s. +is given. +

    panic panic
    The argument is the panic threshold, normally 1000 s. If set to zero, the panic sanity check is disabled and a clock offset of any value will -be accepted. -

    -
    step step
    -

    The argument is the step threshold, which by default is 0.128 s. +be accepted. +

    step step
    The argument is the step threshold, which by default is 0.128 s. It can -be set to any positive number in seconds. +be set to any positive number in seconds. If set to zero, step -adjustments will never occur. +adjustments will never occur. Note: The kernel time discipline is disabled if the step threshold is set to zero or greater than the -default. -

    -
    stepback stepback
    -

    The argument is the step threshold for the backward direction, -which by default is 0.128 s. +default. +

    stepback stepback
    The argument is the step threshold for the backward direction, +which by default is 0.128 s. It can -be set to any positive number in seconds. +be set to any positive number in seconds. If both the forward and backward step thresholds are set to zero, step -adjustments will never occur. +adjustments will never occur. Note: The kernel time discipline is disabled if each direction of step threshold are either -set to zero or greater than .5 second. -

    -
    stepfwd stepfwd
    -

    As for stepback, but for the forward direction. -

    -
    stepout stepout
    -

    The argument is the stepout timeout, which by default is 900 s. +set to zero or greater than .5 second. +

    stepfwd stepfwd
    As for stepback, but for the forward direction. +
    stepout stepout
    The argument is the stepout timeout, which by default is 900 s. It can -be set to any positive number in seconds. +be set to any positive number in seconds. If set to zero, the stepout -pulses will not be suppressed. -

    +pulses will not be suppressed.
    -
    -
    rlimit [memlock Nmegabytes | stacksize N4kPages filenum Nfiledescriptors]
    -
    -
    memlock Nmegabytes
    -

    Specify the number of megabytes of memory that should be -allocated and locked. +

    rlimit [memlock Nmegabytes | stacksize N4kPages filenum Nfiledescriptors]
    +
    +
    memlock Nmegabytes
    Specify the number of megabytes of memory that should be +allocated and locked. Probably only available under Linux, this option may be useful when dropping root (the -i -option). -The default is 32 megabytes on non-Linux machines, and -1 under Linux. --1 means "do not lock the process into memory". -0 means "lock whatever memory the process wants into memory". -

    -
    stacksize N4kPages
    -

    Specifies the maximum size of the process stack on systems with the +option). +The default is 32 megabytes on non-Linux machines, and -1 under Linux. +-1 means "do not lock the process into memory". +0 means "lock whatever memory the process wants into memory". +

    stacksize N4kPages
    Specifies the maximum size of the process stack on systems with the mlockall() -function. -Defaults to 50 4k pages (200 4k pages in OpenBSD). -

    -
    filenum Nfiledescriptors
    -

    Specifies the maximum number of file descriptors ntpd may have open at once. -Defaults to the system default. -

    +function. +Defaults to 50 4k pages (200 4k pages in OpenBSD). +
    filenum Nfiledescriptors
    Specifies the maximum number of file descriptors ntpd may have open at once. +Defaults to the system default.
    -
    -
    trap host_address [port port_number] [interface interface_address]
    -

    This command configures a trap receiver at the given host +

    trap host_address [port port_number] [interface interface_address]
    This command configures a trap receiver at the given host address and port number for sending messages with the specified -local interface address. +local interface address. If the port number is unspecified, a value -of 18447 is used. +of 18447 is used. If the interface address is not specified, the message is sent with a source address of the local interface the -message is sent through. +message is sent through. Note that on a multihomed host the interface used may vary from time to time with routing changes. -

    -

    The trap receiver will generally log event messages and other -information from the server in a log file. + +

    The trap receiver will generally log event messages and other +information from the server in a log file. While such monitor programs may also request their own trap dynamically, configuring a trap receiver will ensure that no messages are lost when the server -is started. -

    -
    hop ...
    -

    This command specifies a list of TTL values in increasing order, up to 8 -values can be specified. +is started. +

    hop ...
    This command specifies a list of TTL values in increasing order, up to 8 +values can be specified. In manycast mode these values are used in turn in -an expanding-ring search. +an expanding-ring search. The default is eight multiples of 32 starting at -31. -

    +31.
    -

    This section was generated by AutoGen, -using the agtexi-cmd template and the option descriptions for the ntp.conf program. +

    This section was generated by AutoGen, +using the agtexi-cmd template and the option descriptions for the ntp.conf program. This software is released under the NTP license, <http://ntp.org/license>. -

    - - - - - - - -
    + + + +
    +


    - - -

    1.1.8 ntp.conf Files

    -
    -
    /etc/ntp.conf
    -

    the default name of the configuration file -

    -
    ntp.keys
    -

    private MD5 keys -

    -
    ntpkey
    -

    RSA private key -

    -
    ntpkey_host
    -

    RSA public key -

    -
    ntp_dh
    -

    Diffie-Hellman agreement parameters -

    + +

    ntp.conf Files

    + +
    +
    /etc/ntp.conf
    the default name of the configuration file +
    ntp.keys
    private MD5 keys +
    ntpkey
    RSA private key +
    ntpkey_host
    RSA public key +
    ntp_dh
    Diffie-Hellman agreement parameters
    -
    +
    +


    -
    -

    -Next: , Previous: , Up: ntp.conf Notes  

    +
    - -

    1.1.9 ntp.conf See Also

    -

    ntpd(1ntpdmdoc), + +

    ntp.conf See Also

    + +

    ntpd(1ntpdmdoc), ntpdc(1ntpdcmdoc), ntpq(1ntpqmdoc) -

    -

    In addition to the manual pages provided, + +

    In addition to the manual pages provided, comprehensive documentation is available on the world wide web at -http://www.ntp.org/. +http://www.ntp.org/. A snapshot of this documentation is available in HTML format in -/usr/share/doc/ntp. +/usr/share/doc/ntp.
    -

    -
    -

    David L. Mills, Network Time Protocol (Version 4), RFC5905 -


    + +


    +David L. Mills, Network Time Protocol (Version 4), RFC5905 +

    +


    -
    -

    -Next: , Previous: , Up: ntp.conf Notes  

    +
    - -

    1.1.10 ntp.conf Bugs

    -

    The syntax checking is not picky; some combinations of + +

    ntp.conf Bugs

    + +

    The syntax checking is not picky; some combinations of ridiculous and even hilarious options and modes may not be detected. -

    -

    The -ntpkey_host + +

    The +ntpkey_host files are really digital -certificates. +certificates. These should be obtained via secure directory -services when they become universally available. -


    -
    -

    -  

    +services when they become universally available. +
    +


    + +
    - -

    1.1.11 ntp.conf Notes

    -

    This document was derived from FreeBSD. -


    +

    ntp.conf Notes

    + +

    This document was derived from FreeBSD. + - - diff --git a/ntpd/ntp.conf.man.in b/ntpd/ntp.conf.man.in index 4e0b05c34..c040e295e 100644 --- a/ntpd/ntp.conf.man.in +++ b/ntpd/ntp.conf.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntp.conf 5 "02 Jan 2017" "4.2.8p9" "File Formats" +.TH ntp.conf 5 "21 Mar 2017" "4.2.8p10-win-beta1" "File Formats" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-uOainW/ag-HOaamW) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:04:58 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:39:53 AM by AutoGen 5.18.5 .\" From the definitions ntp.conf.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/ntpd/ntp.conf.mdoc.in b/ntpd/ntp.conf.mdoc.in index b86cf02e2..4ad08e5f3 100644 --- a/ntpd/ntp.conf.mdoc.in +++ b/ntpd/ntp.conf.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTP_CONF 5 File Formats .Os .\" EDIT THIS FILE WITH CAUTION (ntp.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:04:49 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:39:58 AM by AutoGen 5.18.5 .\" From the definitions ntp.conf.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/ntpd/ntp.keys.5man b/ntpd/ntp.keys.5man index 587042b21..5f7908358 100644 --- a/ntpd/ntp.keys.5man +++ b/ntpd/ntp.keys.5man @@ -1,8 +1,8 @@ -.TH ntp.keys 5man "02 Jan 2017" "4.2.8p9" "File Formats" +.TH ntp.keys 5man "21 Mar 2017" "4.2.8p10-win-beta1" "File Formats" .\" .\" EDIT THIS FILE WITH CAUTION (ntp.man) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:00 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:32:02 AM by AutoGen 5.18.5 .\" From the definitions ntp.keys.def .\" and the template file agman-file.tpl .Sh NAME diff --git a/ntpd/ntp.keys.5mdoc b/ntpd/ntp.keys.5mdoc index 02989005b..19ed35bfd 100644 --- a/ntpd/ntp.keys.5mdoc +++ b/ntpd/ntp.keys.5mdoc @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTP_KEYS 5mdoc File Formats -.Os Linux 3.2.0-4-686-pae +.Os SunOS 5.10 .\" EDIT THIS FILE WITH CAUTION (ntp.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:04:51 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:32:12 AM by AutoGen 5.18.5 .\" From the definitions ntp.keys.def .\" and the template file agmdoc-file.tpl .Sh NAME diff --git a/ntpd/ntp.keys.html b/ntpd/ntp.keys.html index 613c2cbfc..a04a06925 100644 --- a/ntpd/ntp.keys.html +++ b/ntpd/ntp.keys.html @@ -1,139 +1,101 @@ - - - + NTP Symmetric Key - + - - - - - - - - - - + + + + + + +

    NTP Symmetric Key

    +
    +


    +Next: , +Previous: (dir), +Up: (dir) +
    +
    - -

    NTP Symmetric Key

    - - - +

    NTP's Symmetric Key File User Manual

    +

    This document describes the symmetric key file for the NTP Project's +ntpd program. - -

    -

    -Next: , Previous: , Up: (dir)  

    -
    - -

    NTP’s Symmetric Key File User Manual

    +

    This document applies to version 4.2.8p10-win-beta1 of ntp.keys. -

    This document describes the symmetric key file for the NTP Project’s -ntpd program. -

    -

    This document applies to version 4.2.8p9-win of ntp.keys. -

    - -

    Short Table of Contents

    - -
    -
      -
    • 1 Description
    • + + - - - - - -
      - -
      -

      -Previous: , Up: Top  

      +
      +


      +Previous: Top, +Up: Top +
      - -

      1 Description

      + + +

      Description

      The name and location of the symmetric key file for ntpd can be specified in a configuration file, by default /etc/ntp.keys. -

      -
      + +
      +


      -
      -

      -Previous: , Up: ntp.keys Description  

      +
      - -

      1.1 Notes about ntp.keys

      - - +

      Notes about ntp.keys

      +

      -

      This document describes the format of an NTP symmetric key file. +

      This document describes the format of an NTP symmetric key file. For a description of the use of this type of file, see the -"Authentication Support" +"Authentication Support" section of the ntp.conf(5) page. -

      -

      ntpd(8) + +

      ntpd(8) reads its keys from a file specified using the -k command line option or the keys -statement in the configuration file. +statement in the configuration file. While key number 0 is fixed by the NTP standard (as 56 zero bits) and may not be changed, one or more keys numbered between 1 and 65534 may be arbitrarily set in the keys file. -

      -

      The key file uses the same comment conventions -as the configuration file. + +

      The key file uses the same comment conventions +as the configuration file. Key entries use a fixed format of the form -

      -
      -
      keyno type key opt_IP_list
      -
      -

      where +

           keyno type key opt_IP_list
      +
      +

      where keyno is a positive integer (between 1 and 65534), type @@ -143,113 +105,104 @@ and is the key itself, and opt_IP_list is an optional comma-separated list of IPs -that are allowed to serve time. +that are allowed to serve time. If opt_IP_list is empty, any properly-authenticated server message will be accepted. -

      -

      The + +

      The key may be given in a format controlled by the type -field. +field. The type MD5 -is always supported. +is always supported. If ntpd was built with the OpenSSL library -then any digest library supported by that library may be specified. +then any digest library supported by that library may be specified. However, if compliance with FIPS 140-2 is required the type must be either SHA or SHA1. -

      -

      What follows are some key types, and corresponding formats: -

      -
      -
      MD5
      -

      The key is 1 to 16 printable characters terminated by + +

      What follows are some key types, and corresponding formats: + +

      +
      MD5
      The key is 1 to 16 printable characters terminated by an EOL, whitespace, or a # -(which is the "start of comment" character). -

      -
      -
      SHA
      -
      SHA1
      -
      RMD160
      -

      The key is a hex-encoded ASCII string of 40 characters, -which is truncated as necessary. -

      +(which is the "start of comment" character). + +
      SHA
      SHA1
      RMD160
      The key is a hex-encoded ASCII string of 40 characters, +which is truncated as necessary.
      -

      Note that the keys used by the +

      Note that the keys used by the ntpq(8) and ntpdc(8) programs are checked against passwords requested by the programs and entered by hand, so it is generally appropriate to specify these keys in ASCII format. -

      -

      This section was generated by AutoGen, -using the agtexi-cmd template and the option descriptions for the ntp.keys program. + +

      This section was generated by AutoGen, +using the agtexi-cmd template and the option descriptions for the ntp.keys program. This software is released under the NTP license, <http://ntp.org/license>. -

      - - - - - - -
      - -
      -

      -Next: , Up: ntp.keys Notes  

      + + + +
      +


      +Next: , +Up: ntp.keys Notes +
      - -

      1.1.1 ntp.keys Files

      -
      -
      /etc/ntp.keys
      -

      the default name of the configuration file -

      + +

      ntp.keys Files

      + +
      +
      /etc/ntp.keys
      the default name of the configuration file
      -
      - -
      -

      -Next: , Previous: , Up: ntp.keys Notes  

      +
      +


      +Next: , +Previous: ntp.keys Files, +Up: ntp.keys Notes +
      - -

      1.1.2 ntp.keys See Also

      + +

      ntp.keys See Also

      +

      ntp.conf(5), ntpd(1ntpdmdoc), ntpdate(1ntpdatemdoc), ntpdc(1ntpdcmdoc), sntp(1sntpmdoc) -


      -
      -

      -  

      +
      +


      +Previous: ntp.keys See Also, +Up: ntp.keys Notes +
      - -

      1.1.3 ntp.keys Notes

      -

      This document was derived from FreeBSD. -


      +

      ntp.keys Notes

      + +

      This document was derived from FreeBSD. + - - diff --git a/ntpd/ntp.keys.man.in b/ntpd/ntp.keys.man.in index bdb7835a1..b81de9515 100644 --- a/ntpd/ntp.keys.man.in +++ b/ntpd/ntp.keys.man.in @@ -1,8 +1,8 @@ -.TH ntp.keys 5 "02 Jan 2017" "4.2.8p9" "File Formats" +.TH ntp.keys 5 "21 Mar 2017" "4.2.8p10-win-beta1" "File Formats" .\" .\" EDIT THIS FILE WITH CAUTION (ntp.man) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:00 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:32:02 AM by AutoGen 5.18.5 .\" From the definitions ntp.keys.def .\" and the template file agman-file.tpl .Sh NAME diff --git a/ntpd/ntp.keys.mdoc.in b/ntpd/ntp.keys.mdoc.in index 1234838c9..3ef86d0e2 100644 --- a/ntpd/ntp.keys.mdoc.in +++ b/ntpd/ntp.keys.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTP_KEYS 5 File Formats -.Os Linux 3.2.0-4-686-pae +.Os SunOS 5.10 .\" EDIT THIS FILE WITH CAUTION (ntp.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:04:51 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:32:12 AM by AutoGen 5.18.5 .\" From the definitions ntp.keys.def .\" and the template file agmdoc-file.tpl .Sh NAME diff --git a/ntpd/ntpd-opts.c b/ntpd/ntpd-opts.c index 93ede45e2..77bc63802 100644 --- a/ntpd/ntpd-opts.c +++ b/ntpd/ntpd-opts.c @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpd-opts.c) * - * It has been AutoGen-ed January 2, 2017 at 12:04:21 PM by AutoGen 5.18.5 + * It has been AutoGen-ed March 21, 2017 at 09:30:00 AM by AutoGen 5.18.5 * From the definitions ntpd-opts.def * and the template file options * @@ -50,7 +50,7 @@ extern "C" { #endif extern FILE * option_usage_fp; #define zCopyright (ntpd_opt_strs+0) -#define zLicenseDescrip (ntpd_opt_strs+340) +#define zLicenseDescrip (ntpd_opt_strs+351) /* * global included definitions @@ -74,15 +74,15 @@ extern FILE * option_usage_fp; /** * static const strings for ntpd options */ -static char const ntpd_opt_strs[3129] = -/* 0 */ "ntpd 4.2.8p9\n" +static char const ntpd_opt_strs[3162] = +/* 0 */ "ntpd 4.2.8p10-win-beta1\n" "Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n" "This is free software. It is licensed for use, modification and\n" "redistribution under the terms of the NTP License, copies of which\n" "can be seen at:\n" " \n" " \n\0" -/* 340 */ "Permission to use, copy, modify, and distribute this software and its\n" +/* 351 */ "Permission to use, copy, modify, and distribute this software and its\n" "documentation for any purpose with or without fee is hereby granted,\n" "provided that the above copyright notice appears in all copies and that\n" "both the copyright notice and this permission notice appear in supporting\n" @@ -92,136 +92,136 @@ static char const ntpd_opt_strs[3129] = "Time Foundation makes no representations about the suitability this\n" "software for any purpose. It is provided \"as is\" without express or\n" "implied warranty.\n\0" -/* 1008 */ "Force IPv4 DNS name resolution\0" -/* 1039 */ "IPV4\0" -/* 1044 */ "ipv4\0" -/* 1049 */ "Force IPv6 DNS name resolution\0" -/* 1080 */ "IPV6\0" -/* 1085 */ "ipv6\0" -/* 1090 */ "Require crypto authentication\0" -/* 1120 */ "AUTHREQ\0" -/* 1128 */ "authreq\0" -/* 1136 */ "Do not require crypto authentication\0" -/* 1173 */ "AUTHNOREQ\0" -/* 1183 */ "authnoreq\0" -/* 1193 */ "Allow us to sync to broadcast servers\0" -/* 1231 */ "BCASTSYNC\0" -/* 1241 */ "bcastsync\0" -/* 1251 */ "configuration file name\0" -/* 1275 */ "CONFIGFILE\0" -/* 1286 */ "configfile\0" -/* 1297 */ "Increase debug verbosity level\0" -/* 1328 */ "DEBUG_LEVEL\0" -/* 1340 */ "debug-level\0" -/* 1352 */ "Set the debug verbosity level\0" -/* 1382 */ "SET_DEBUG_LEVEL\0" -/* 1398 */ "set-debug-level\0" -/* 1414 */ "frequency drift file name\0" -/* 1440 */ "DRIFTFILE\0" -/* 1450 */ "driftfile\0" -/* 1460 */ "Allow the first adjustment to be Big\0" -/* 1497 */ "PANICGATE\0" -/* 1507 */ "panicgate\0" -/* 1517 */ "Step any initial offset correction.\0" -/* 1553 */ "FORCE_STEP_ONCE\0" -/* 1569 */ "force-step-once\0" -/* 1585 */ "Jail directory\0" -/* 1600 */ "JAILDIR\0" -/* 1608 */ "jaildir\0" -/* 1616 */ "built without --enable-clockctl or --enable-linuxcaps or --enable-solarisprivs\0" -/* 1695 */ "Listen on an interface name or address\0" -/* 1734 */ "INTERFACE\0" -/* 1744 */ "interface\0" -/* 1754 */ "path to symmetric keys\0" -/* 1777 */ "KEYFILE\0" -/* 1785 */ "keyfile\0" -/* 1793 */ "path to the log file\0" -/* 1814 */ "LOGFILE\0" -/* 1822 */ "logfile\0" -/* 1830 */ "Do not listen to virtual interfaces\0" -/* 1866 */ "NOVIRTUALIPS\0" -/* 1879 */ "novirtualips\0" -/* 1892 */ "Modify Multimedia Timer (Windows only)\0" -/* 1931 */ "MODIFYMMTIMER\0" -/* 1945 */ "modifymmtimer\0" -/* 1959 */ "Do not fork\0" -/* 1971 */ "NOFORK\0" -/* 1978 */ "nofork\0" -/* 1985 */ "Run at high priority\0" -/* 2006 */ "NICE\0" -/* 2011 */ "nice\0" -/* 2016 */ "path to the PID file\0" -/* 2037 */ "PIDFILE\0" -/* 2045 */ "pidfile\0" -/* 2053 */ "Process priority\0" -/* 2070 */ "PRIORITY\0" -/* 2079 */ "priority\0" -/* 2088 */ "Set the time and quit\0" -/* 2110 */ "QUIT\0" -/* 2115 */ "quit\0" -/* 2120 */ "Broadcast/propagation delay\0" -/* 2148 */ "PROPAGATIONDELAY\0" -/* 2165 */ "propagationdelay\0" -/* 2182 */ "Save parsed configuration and quit\0" -/* 2217 */ "SAVECONFIGQUIT\0" -/* 2232 */ "saveconfigquit\0" -/* 2247 */ "Statistics file location\0" -/* 2272 */ "STATSDIR\0" -/* 2281 */ "statsdir\0" -/* 2290 */ "Trusted key number\0" -/* 2309 */ "TRUSTEDKEY\0" -/* 2320 */ "trustedkey\0" -/* 2331 */ "Run as userid (or userid:groupid)\0" -/* 2365 */ "USER\0" -/* 2370 */ "user\0" -/* 2375 */ "interval in seconds between scans for new or dropped interfaces\0" -/* 2439 */ "UPDATEINTERVAL\0" -/* 2454 */ "updateinterval\0" -/* 2469 */ "make ARG an ntp variable (RW)\0" -/* 2499 */ "VAR\0" -/* 2503 */ "var\0" -/* 2507 */ "make ARG an ntp variable (RW|DEF)\0" -/* 2541 */ "DVAR\0" -/* 2546 */ "dvar\0" -/* 2551 */ "Seconds to wait for first clock sync\0" -/* 2588 */ "WAIT_SYNC\0" -/* 2598 */ "wait-sync\0" -/* 2608 */ "Slew up to 600 seconds\0" -/* 2631 */ "SLEW\0" -/* 2636 */ "slew\0" -/* 2641 */ "Use CPU cycle counter (Windows only)\0" -/* 2678 */ "USEPCC\0" -/* 2685 */ "usepcc\0" -/* 2692 */ "Force CPU cycle counter use (Windows only)\0" -/* 2735 */ "PCCFREQ\0" -/* 2743 */ "pccfreq\0" -/* 2751 */ "Register with mDNS as a NTP server\0" -/* 2786 */ "MDNS\0" -/* 2791 */ "mdns\0" -/* 2796 */ "display extended usage information and exit\0" -/* 2840 */ "help\0" -/* 2845 */ "extended usage information passed thru pager\0" -/* 2890 */ "more-help\0" -/* 2900 */ "output version information and exit\0" -/* 2936 */ "version\0" -/* 2944 */ "NTPD\0" -/* 2949 */ "ntpd - NTP daemon program - Ver. 4.2.8p9\n" +/* 1019 */ "Force IPv4 DNS name resolution\0" +/* 1050 */ "IPV4\0" +/* 1055 */ "ipv4\0" +/* 1060 */ "Force IPv6 DNS name resolution\0" +/* 1091 */ "IPV6\0" +/* 1096 */ "ipv6\0" +/* 1101 */ "Require crypto authentication\0" +/* 1131 */ "AUTHREQ\0" +/* 1139 */ "authreq\0" +/* 1147 */ "Do not require crypto authentication\0" +/* 1184 */ "AUTHNOREQ\0" +/* 1194 */ "authnoreq\0" +/* 1204 */ "Allow us to sync to broadcast servers\0" +/* 1242 */ "BCASTSYNC\0" +/* 1252 */ "bcastsync\0" +/* 1262 */ "configuration file name\0" +/* 1286 */ "CONFIGFILE\0" +/* 1297 */ "configfile\0" +/* 1308 */ "Increase debug verbosity level\0" +/* 1339 */ "DEBUG_LEVEL\0" +/* 1351 */ "debug-level\0" +/* 1363 */ "Set the debug verbosity level\0" +/* 1393 */ "SET_DEBUG_LEVEL\0" +/* 1409 */ "set-debug-level\0" +/* 1425 */ "frequency drift file name\0" +/* 1451 */ "DRIFTFILE\0" +/* 1461 */ "driftfile\0" +/* 1471 */ "Allow the first adjustment to be Big\0" +/* 1508 */ "PANICGATE\0" +/* 1518 */ "panicgate\0" +/* 1528 */ "Step any initial offset correction.\0" +/* 1564 */ "FORCE_STEP_ONCE\0" +/* 1580 */ "force-step-once\0" +/* 1596 */ "Jail directory\0" +/* 1611 */ "JAILDIR\0" +/* 1619 */ "jaildir\0" +/* 1627 */ "built without --enable-clockctl or --enable-linuxcaps or --enable-solarisprivs\0" +/* 1706 */ "Listen on an interface name or address\0" +/* 1745 */ "INTERFACE\0" +/* 1755 */ "interface\0" +/* 1765 */ "path to symmetric keys\0" +/* 1788 */ "KEYFILE\0" +/* 1796 */ "keyfile\0" +/* 1804 */ "path to the log file\0" +/* 1825 */ "LOGFILE\0" +/* 1833 */ "logfile\0" +/* 1841 */ "Do not listen to virtual interfaces\0" +/* 1877 */ "NOVIRTUALIPS\0" +/* 1890 */ "novirtualips\0" +/* 1903 */ "Modify Multimedia Timer (Windows only)\0" +/* 1942 */ "MODIFYMMTIMER\0" +/* 1956 */ "modifymmtimer\0" +/* 1970 */ "Do not fork\0" +/* 1982 */ "NOFORK\0" +/* 1989 */ "nofork\0" +/* 1996 */ "Run at high priority\0" +/* 2017 */ "NICE\0" +/* 2022 */ "nice\0" +/* 2027 */ "path to the PID file\0" +/* 2048 */ "PIDFILE\0" +/* 2056 */ "pidfile\0" +/* 2064 */ "Process priority\0" +/* 2081 */ "PRIORITY\0" +/* 2090 */ "priority\0" +/* 2099 */ "Set the time and quit\0" +/* 2121 */ "QUIT\0" +/* 2126 */ "quit\0" +/* 2131 */ "Broadcast/propagation delay\0" +/* 2159 */ "PROPAGATIONDELAY\0" +/* 2176 */ "propagationdelay\0" +/* 2193 */ "Save parsed configuration and quit\0" +/* 2228 */ "SAVECONFIGQUIT\0" +/* 2243 */ "saveconfigquit\0" +/* 2258 */ "Statistics file location\0" +/* 2283 */ "STATSDIR\0" +/* 2292 */ "statsdir\0" +/* 2301 */ "Trusted key number\0" +/* 2320 */ "TRUSTEDKEY\0" +/* 2331 */ "trustedkey\0" +/* 2342 */ "Run as userid (or userid:groupid)\0" +/* 2376 */ "USER\0" +/* 2381 */ "user\0" +/* 2386 */ "interval in seconds between scans for new or dropped interfaces\0" +/* 2450 */ "UPDATEINTERVAL\0" +/* 2465 */ "updateinterval\0" +/* 2480 */ "make ARG an ntp variable (RW)\0" +/* 2510 */ "VAR\0" +/* 2514 */ "var\0" +/* 2518 */ "make ARG an ntp variable (RW|DEF)\0" +/* 2552 */ "DVAR\0" +/* 2557 */ "dvar\0" +/* 2562 */ "Seconds to wait for first clock sync\0" +/* 2599 */ "WAIT_SYNC\0" +/* 2609 */ "wait-sync\0" +/* 2619 */ "Slew up to 600 seconds\0" +/* 2642 */ "SLEW\0" +/* 2647 */ "slew\0" +/* 2652 */ "Use CPU cycle counter (Windows only)\0" +/* 2689 */ "USEPCC\0" +/* 2696 */ "usepcc\0" +/* 2703 */ "Force CPU cycle counter use (Windows only)\0" +/* 2746 */ "PCCFREQ\0" +/* 2754 */ "pccfreq\0" +/* 2762 */ "Register with mDNS as a NTP server\0" +/* 2797 */ "MDNS\0" +/* 2802 */ "mdns\0" +/* 2807 */ "display extended usage information and exit\0" +/* 2851 */ "help\0" +/* 2856 */ "extended usage information passed thru pager\0" +/* 2901 */ "more-help\0" +/* 2911 */ "output version information and exit\0" +/* 2947 */ "version\0" +/* 2955 */ "NTPD\0" +/* 2960 */ "ntpd - NTP daemon program - Ver. 4.2.8p10-win-beta1\n" "Usage: %s [ - [] | --[{=| }] ]... \\\n" "\t\t[ ... ]\n\0" -/* 3080 */ "http://bugs.ntp.org, bugs@ntp.org\0" -/* 3114 */ "\n\0" -/* 3116 */ "ntpd 4.2.8p9"; +/* 3102 */ "http://bugs.ntp.org, bugs@ntp.org\0" +/* 3136 */ "\n\0" +/* 3138 */ "ntpd 4.2.8p10-win-beta1"; /** * ipv4 option description with * "Must also have options" and "Incompatible options": */ /** Descriptive text for the ipv4 option */ -#define IPV4_DESC (ntpd_opt_strs+1008) +#define IPV4_DESC (ntpd_opt_strs+1019) /** Upper-cased name for the ipv4 option */ -#define IPV4_NAME (ntpd_opt_strs+1039) +#define IPV4_NAME (ntpd_opt_strs+1050) /** Name string for the ipv4 option */ -#define IPV4_name (ntpd_opt_strs+1044) +#define IPV4_name (ntpd_opt_strs+1055) /** Other options that appear in conjunction with the ipv4 option */ static int const aIpv4CantList[] = { INDEX_OPT_IPV6, NO_EQUIVALENT }; @@ -233,11 +233,11 @@ static int const aIpv4CantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the ipv6 option */ -#define IPV6_DESC (ntpd_opt_strs+1049) +#define IPV6_DESC (ntpd_opt_strs+1060) /** Upper-cased name for the ipv6 option */ -#define IPV6_NAME (ntpd_opt_strs+1080) +#define IPV6_NAME (ntpd_opt_strs+1091) /** Name string for the ipv6 option */ -#define IPV6_name (ntpd_opt_strs+1085) +#define IPV6_name (ntpd_opt_strs+1096) /** Other options that appear in conjunction with the ipv6 option */ static int const aIpv6CantList[] = { INDEX_OPT_IPV4, NO_EQUIVALENT }; @@ -249,11 +249,11 @@ static int const aIpv6CantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the authreq option */ -#define AUTHREQ_DESC (ntpd_opt_strs+1090) +#define AUTHREQ_DESC (ntpd_opt_strs+1101) /** Upper-cased name for the authreq option */ -#define AUTHREQ_NAME (ntpd_opt_strs+1120) +#define AUTHREQ_NAME (ntpd_opt_strs+1131) /** Name string for the authreq option */ -#define AUTHREQ_name (ntpd_opt_strs+1128) +#define AUTHREQ_name (ntpd_opt_strs+1139) /** Other options that appear in conjunction with the authreq option */ static int const aAuthreqCantList[] = { INDEX_OPT_AUTHNOREQ, NO_EQUIVALENT }; @@ -265,11 +265,11 @@ static int const aAuthreqCantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the authnoreq option */ -#define AUTHNOREQ_DESC (ntpd_opt_strs+1136) +#define AUTHNOREQ_DESC (ntpd_opt_strs+1147) /** Upper-cased name for the authnoreq option */ -#define AUTHNOREQ_NAME (ntpd_opt_strs+1173) +#define AUTHNOREQ_NAME (ntpd_opt_strs+1184) /** Name string for the authnoreq option */ -#define AUTHNOREQ_name (ntpd_opt_strs+1183) +#define AUTHNOREQ_name (ntpd_opt_strs+1194) /** Other options that appear in conjunction with the authnoreq option */ static int const aAuthnoreqCantList[] = { INDEX_OPT_AUTHREQ, NO_EQUIVALENT }; @@ -280,11 +280,11 @@ static int const aAuthnoreqCantList[] = { * bcastsync option description: */ /** Descriptive text for the bcastsync option */ -#define BCASTSYNC_DESC (ntpd_opt_strs+1193) +#define BCASTSYNC_DESC (ntpd_opt_strs+1204) /** Upper-cased name for the bcastsync option */ -#define BCASTSYNC_NAME (ntpd_opt_strs+1231) +#define BCASTSYNC_NAME (ntpd_opt_strs+1242) /** Name string for the bcastsync option */ -#define BCASTSYNC_name (ntpd_opt_strs+1241) +#define BCASTSYNC_name (ntpd_opt_strs+1252) /** Compiled in flag settings for the bcastsync option */ #define BCASTSYNC_FLAGS (OPTST_DISABLED) @@ -292,11 +292,11 @@ static int const aAuthnoreqCantList[] = { * configfile option description: */ /** Descriptive text for the configfile option */ -#define CONFIGFILE_DESC (ntpd_opt_strs+1251) +#define CONFIGFILE_DESC (ntpd_opt_strs+1262) /** Upper-cased name for the configfile option */ -#define CONFIGFILE_NAME (ntpd_opt_strs+1275) +#define CONFIGFILE_NAME (ntpd_opt_strs+1286) /** Name string for the configfile option */ -#define CONFIGFILE_name (ntpd_opt_strs+1286) +#define CONFIGFILE_name (ntpd_opt_strs+1297) /** Compiled in flag settings for the configfile option */ #define CONFIGFILE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -305,11 +305,11 @@ static int const aAuthnoreqCantList[] = { * debug-level option description: */ /** Descriptive text for the debug-level option */ -#define DEBUG_LEVEL_DESC (ntpd_opt_strs+1297) +#define DEBUG_LEVEL_DESC (ntpd_opt_strs+1308) /** Upper-cased name for the debug-level option */ -#define DEBUG_LEVEL_NAME (ntpd_opt_strs+1328) +#define DEBUG_LEVEL_NAME (ntpd_opt_strs+1339) /** Name string for the debug-level option */ -#define DEBUG_LEVEL_name (ntpd_opt_strs+1340) +#define DEBUG_LEVEL_name (ntpd_opt_strs+1351) /** Compiled in flag settings for the debug-level option */ #define DEBUG_LEVEL_FLAGS (OPTST_DISABLED) @@ -317,11 +317,11 @@ static int const aAuthnoreqCantList[] = { * set-debug-level option description: */ /** Descriptive text for the set-debug-level option */ -#define SET_DEBUG_LEVEL_DESC (ntpd_opt_strs+1352) +#define SET_DEBUG_LEVEL_DESC (ntpd_opt_strs+1363) /** Upper-cased name for the set-debug-level option */ -#define SET_DEBUG_LEVEL_NAME (ntpd_opt_strs+1382) +#define SET_DEBUG_LEVEL_NAME (ntpd_opt_strs+1393) /** Name string for the set-debug-level option */ -#define SET_DEBUG_LEVEL_name (ntpd_opt_strs+1398) +#define SET_DEBUG_LEVEL_name (ntpd_opt_strs+1409) /** Compiled in flag settings for the set-debug-level option */ #define SET_DEBUG_LEVEL_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -330,11 +330,11 @@ static int const aAuthnoreqCantList[] = { * driftfile option description: */ /** Descriptive text for the driftfile option */ -#define DRIFTFILE_DESC (ntpd_opt_strs+1414) +#define DRIFTFILE_DESC (ntpd_opt_strs+1425) /** Upper-cased name for the driftfile option */ -#define DRIFTFILE_NAME (ntpd_opt_strs+1440) +#define DRIFTFILE_NAME (ntpd_opt_strs+1451) /** Name string for the driftfile option */ -#define DRIFTFILE_name (ntpd_opt_strs+1450) +#define DRIFTFILE_name (ntpd_opt_strs+1461) /** Compiled in flag settings for the driftfile option */ #define DRIFTFILE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -343,11 +343,11 @@ static int const aAuthnoreqCantList[] = { * panicgate option description: */ /** Descriptive text for the panicgate option */ -#define PANICGATE_DESC (ntpd_opt_strs+1460) +#define PANICGATE_DESC (ntpd_opt_strs+1471) /** Upper-cased name for the panicgate option */ -#define PANICGATE_NAME (ntpd_opt_strs+1497) +#define PANICGATE_NAME (ntpd_opt_strs+1508) /** Name string for the panicgate option */ -#define PANICGATE_name (ntpd_opt_strs+1507) +#define PANICGATE_name (ntpd_opt_strs+1518) /** Compiled in flag settings for the panicgate option */ #define PANICGATE_FLAGS (OPTST_DISABLED) @@ -355,11 +355,11 @@ static int const aAuthnoreqCantList[] = { * force_step_once option description: */ /** Descriptive text for the force_step_once option */ -#define FORCE_STEP_ONCE_DESC (ntpd_opt_strs+1517) +#define FORCE_STEP_ONCE_DESC (ntpd_opt_strs+1528) /** Upper-cased name for the force_step_once option */ -#define FORCE_STEP_ONCE_NAME (ntpd_opt_strs+1553) +#define FORCE_STEP_ONCE_NAME (ntpd_opt_strs+1564) /** Name string for the force_step_once option */ -#define FORCE_STEP_ONCE_name (ntpd_opt_strs+1569) +#define FORCE_STEP_ONCE_name (ntpd_opt_strs+1580) /** Compiled in flag settings for the force_step_once option */ #define FORCE_STEP_ONCE_FLAGS (OPTST_DISABLED) @@ -368,11 +368,11 @@ static int const aAuthnoreqCantList[] = { */ #ifdef HAVE_DROPROOT /** Descriptive text for the jaildir option */ -#define JAILDIR_DESC (ntpd_opt_strs+1585) +#define JAILDIR_DESC (ntpd_opt_strs+1596) /** Upper-cased name for the jaildir option */ -#define JAILDIR_NAME (ntpd_opt_strs+1600) +#define JAILDIR_NAME (ntpd_opt_strs+1611) /** Name string for the jaildir option */ -#define JAILDIR_name (ntpd_opt_strs+1608) +#define JAILDIR_name (ntpd_opt_strs+1619) /** Compiled in flag settings for the jaildir option */ #define JAILDIR_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -381,19 +381,19 @@ static int const aAuthnoreqCantList[] = { #define JAILDIR_FLAGS (OPTST_OMITTED | OPTST_NO_INIT) #define JAILDIR_NAME NULL /** Descriptive text for the jaildir option */ -#define JAILDIR_DESC (ntpd_opt_strs+1616) -#define JAILDIR_name (ntpd_opt_strs+1608) +#define JAILDIR_DESC (ntpd_opt_strs+1627) +#define JAILDIR_name (ntpd_opt_strs+1619) #endif /* HAVE_DROPROOT */ /** * interface option description: */ /** Descriptive text for the interface option */ -#define INTERFACE_DESC (ntpd_opt_strs+1695) +#define INTERFACE_DESC (ntpd_opt_strs+1706) /** Upper-cased name for the interface option */ -#define INTERFACE_NAME (ntpd_opt_strs+1734) +#define INTERFACE_NAME (ntpd_opt_strs+1745) /** Name string for the interface option */ -#define INTERFACE_name (ntpd_opt_strs+1744) +#define INTERFACE_name (ntpd_opt_strs+1755) /** Compiled in flag settings for the interface option */ #define INTERFACE_FLAGS (OPTST_DISABLED | OPTST_STACKED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -402,11 +402,11 @@ static int const aAuthnoreqCantList[] = { * keyfile option description: */ /** Descriptive text for the keyfile option */ -#define KEYFILE_DESC (ntpd_opt_strs+1754) +#define KEYFILE_DESC (ntpd_opt_strs+1765) /** Upper-cased name for the keyfile option */ -#define KEYFILE_NAME (ntpd_opt_strs+1777) +#define KEYFILE_NAME (ntpd_opt_strs+1788) /** Name string for the keyfile option */ -#define KEYFILE_name (ntpd_opt_strs+1785) +#define KEYFILE_name (ntpd_opt_strs+1796) /** Compiled in flag settings for the keyfile option */ #define KEYFILE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -415,11 +415,11 @@ static int const aAuthnoreqCantList[] = { * logfile option description: */ /** Descriptive text for the logfile option */ -#define LOGFILE_DESC (ntpd_opt_strs+1793) +#define LOGFILE_DESC (ntpd_opt_strs+1804) /** Upper-cased name for the logfile option */ -#define LOGFILE_NAME (ntpd_opt_strs+1814) +#define LOGFILE_NAME (ntpd_opt_strs+1825) /** Name string for the logfile option */ -#define LOGFILE_name (ntpd_opt_strs+1822) +#define LOGFILE_name (ntpd_opt_strs+1833) /** Compiled in flag settings for the logfile option */ #define LOGFILE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -428,11 +428,11 @@ static int const aAuthnoreqCantList[] = { * novirtualips option description: */ /** Descriptive text for the novirtualips option */ -#define NOVIRTUALIPS_DESC (ntpd_opt_strs+1830) +#define NOVIRTUALIPS_DESC (ntpd_opt_strs+1841) /** Upper-cased name for the novirtualips option */ -#define NOVIRTUALIPS_NAME (ntpd_opt_strs+1866) +#define NOVIRTUALIPS_NAME (ntpd_opt_strs+1877) /** Name string for the novirtualips option */ -#define NOVIRTUALIPS_name (ntpd_opt_strs+1879) +#define NOVIRTUALIPS_name (ntpd_opt_strs+1890) /** Compiled in flag settings for the novirtualips option */ #define NOVIRTUALIPS_FLAGS (OPTST_DISABLED) @@ -441,11 +441,11 @@ static int const aAuthnoreqCantList[] = { */ #ifdef SYS_WINNT /** Descriptive text for the modifymmtimer option */ -#define MODIFYMMTIMER_DESC (ntpd_opt_strs+1892) +#define MODIFYMMTIMER_DESC (ntpd_opt_strs+1903) /** Upper-cased name for the modifymmtimer option */ -#define MODIFYMMTIMER_NAME (ntpd_opt_strs+1931) +#define MODIFYMMTIMER_NAME (ntpd_opt_strs+1942) /** Name string for the modifymmtimer option */ -#define MODIFYMMTIMER_name (ntpd_opt_strs+1945) +#define MODIFYMMTIMER_name (ntpd_opt_strs+1956) /** Compiled in flag settings for the modifymmtimer option */ #define MODIFYMMTIMER_FLAGS (OPTST_DISABLED) @@ -461,11 +461,11 @@ static int const aAuthnoreqCantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the nofork option */ -#define NOFORK_DESC (ntpd_opt_strs+1959) +#define NOFORK_DESC (ntpd_opt_strs+1970) /** Upper-cased name for the nofork option */ -#define NOFORK_NAME (ntpd_opt_strs+1971) +#define NOFORK_NAME (ntpd_opt_strs+1982) /** Name string for the nofork option */ -#define NOFORK_name (ntpd_opt_strs+1978) +#define NOFORK_name (ntpd_opt_strs+1989) /** Other options that appear in conjunction with the nofork option */ static int const aNoforkCantList[] = { INDEX_OPT_WAIT_SYNC, NO_EQUIVALENT }; @@ -476,11 +476,11 @@ static int const aNoforkCantList[] = { * nice option description: */ /** Descriptive text for the nice option */ -#define NICE_DESC (ntpd_opt_strs+1985) +#define NICE_DESC (ntpd_opt_strs+1996) /** Upper-cased name for the nice option */ -#define NICE_NAME (ntpd_opt_strs+2006) +#define NICE_NAME (ntpd_opt_strs+2017) /** Name string for the nice option */ -#define NICE_name (ntpd_opt_strs+2011) +#define NICE_name (ntpd_opt_strs+2022) /** Compiled in flag settings for the nice option */ #define NICE_FLAGS (OPTST_DISABLED) @@ -488,11 +488,11 @@ static int const aNoforkCantList[] = { * pidfile option description: */ /** Descriptive text for the pidfile option */ -#define PIDFILE_DESC (ntpd_opt_strs+2016) +#define PIDFILE_DESC (ntpd_opt_strs+2027) /** Upper-cased name for the pidfile option */ -#define PIDFILE_NAME (ntpd_opt_strs+2037) +#define PIDFILE_NAME (ntpd_opt_strs+2048) /** Name string for the pidfile option */ -#define PIDFILE_name (ntpd_opt_strs+2045) +#define PIDFILE_name (ntpd_opt_strs+2056) /** Compiled in flag settings for the pidfile option */ #define PIDFILE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -501,11 +501,11 @@ static int const aNoforkCantList[] = { * priority option description: */ /** Descriptive text for the priority option */ -#define PRIORITY_DESC (ntpd_opt_strs+2053) +#define PRIORITY_DESC (ntpd_opt_strs+2064) /** Upper-cased name for the priority option */ -#define PRIORITY_NAME (ntpd_opt_strs+2070) +#define PRIORITY_NAME (ntpd_opt_strs+2081) /** Name string for the priority option */ -#define PRIORITY_name (ntpd_opt_strs+2079) +#define PRIORITY_name (ntpd_opt_strs+2090) /** Compiled in flag settings for the priority option */ #define PRIORITY_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -515,11 +515,11 @@ static int const aNoforkCantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the quit option */ -#define QUIT_DESC (ntpd_opt_strs+2088) +#define QUIT_DESC (ntpd_opt_strs+2099) /** Upper-cased name for the quit option */ -#define QUIT_NAME (ntpd_opt_strs+2110) +#define QUIT_NAME (ntpd_opt_strs+2121) /** Name string for the quit option */ -#define QUIT_name (ntpd_opt_strs+2115) +#define QUIT_name (ntpd_opt_strs+2126) /** Other options that appear in conjunction with the quit option */ static int const aQuitCantList[] = { INDEX_OPT_SAVECONFIGQUIT, @@ -531,11 +531,11 @@ static int const aQuitCantList[] = { * propagationdelay option description: */ /** Descriptive text for the propagationdelay option */ -#define PROPAGATIONDELAY_DESC (ntpd_opt_strs+2120) +#define PROPAGATIONDELAY_DESC (ntpd_opt_strs+2131) /** Upper-cased name for the propagationdelay option */ -#define PROPAGATIONDELAY_NAME (ntpd_opt_strs+2148) +#define PROPAGATIONDELAY_NAME (ntpd_opt_strs+2159) /** Name string for the propagationdelay option */ -#define PROPAGATIONDELAY_name (ntpd_opt_strs+2165) +#define PROPAGATIONDELAY_name (ntpd_opt_strs+2176) /** Compiled in flag settings for the propagationdelay option */ #define PROPAGATIONDELAY_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -546,11 +546,11 @@ static int const aQuitCantList[] = { */ #ifdef SAVECONFIG /** Descriptive text for the saveconfigquit option */ -#define SAVECONFIGQUIT_DESC (ntpd_opt_strs+2182) +#define SAVECONFIGQUIT_DESC (ntpd_opt_strs+2193) /** Upper-cased name for the saveconfigquit option */ -#define SAVECONFIGQUIT_NAME (ntpd_opt_strs+2217) +#define SAVECONFIGQUIT_NAME (ntpd_opt_strs+2228) /** Name string for the saveconfigquit option */ -#define SAVECONFIGQUIT_name (ntpd_opt_strs+2232) +#define SAVECONFIGQUIT_name (ntpd_opt_strs+2243) /** Other options that appear in conjunction with the saveconfigquit option */ static int const aSaveconfigquitCantList[] = { INDEX_OPT_QUIT, @@ -571,11 +571,11 @@ static int const aSaveconfigquitCantList[] = { * statsdir option description: */ /** Descriptive text for the statsdir option */ -#define STATSDIR_DESC (ntpd_opt_strs+2247) +#define STATSDIR_DESC (ntpd_opt_strs+2258) /** Upper-cased name for the statsdir option */ -#define STATSDIR_NAME (ntpd_opt_strs+2272) +#define STATSDIR_NAME (ntpd_opt_strs+2283) /** Name string for the statsdir option */ -#define STATSDIR_name (ntpd_opt_strs+2281) +#define STATSDIR_name (ntpd_opt_strs+2292) /** Compiled in flag settings for the statsdir option */ #define STATSDIR_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -584,11 +584,11 @@ static int const aSaveconfigquitCantList[] = { * trustedkey option description: */ /** Descriptive text for the trustedkey option */ -#define TRUSTEDKEY_DESC (ntpd_opt_strs+2290) +#define TRUSTEDKEY_DESC (ntpd_opt_strs+2301) /** Upper-cased name for the trustedkey option */ -#define TRUSTEDKEY_NAME (ntpd_opt_strs+2309) +#define TRUSTEDKEY_NAME (ntpd_opt_strs+2320) /** Name string for the trustedkey option */ -#define TRUSTEDKEY_name (ntpd_opt_strs+2320) +#define TRUSTEDKEY_name (ntpd_opt_strs+2331) /** Compiled in flag settings for the trustedkey option */ #define TRUSTEDKEY_FLAGS (OPTST_DISABLED | OPTST_STACKED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -598,11 +598,11 @@ static int const aSaveconfigquitCantList[] = { */ #ifdef HAVE_DROPROOT /** Descriptive text for the user option */ -#define USER_DESC (ntpd_opt_strs+2331) +#define USER_DESC (ntpd_opt_strs+2342) /** Upper-cased name for the user option */ -#define USER_NAME (ntpd_opt_strs+2365) +#define USER_NAME (ntpd_opt_strs+2376) /** Name string for the user option */ -#define USER_name (ntpd_opt_strs+2370) +#define USER_name (ntpd_opt_strs+2381) /** Compiled in flag settings for the user option */ #define USER_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -611,19 +611,19 @@ static int const aSaveconfigquitCantList[] = { #define USER_FLAGS (OPTST_OMITTED | OPTST_NO_INIT) #define USER_NAME NULL /** Descriptive text for the user option */ -#define USER_DESC (ntpd_opt_strs+1616) -#define USER_name (ntpd_opt_strs+2370) +#define USER_DESC (ntpd_opt_strs+1627) +#define USER_name (ntpd_opt_strs+2381) #endif /* HAVE_DROPROOT */ /** * updateinterval option description: */ /** Descriptive text for the updateinterval option */ -#define UPDATEINTERVAL_DESC (ntpd_opt_strs+2375) +#define UPDATEINTERVAL_DESC (ntpd_opt_strs+2386) /** Upper-cased name for the updateinterval option */ -#define UPDATEINTERVAL_NAME (ntpd_opt_strs+2439) +#define UPDATEINTERVAL_NAME (ntpd_opt_strs+2450) /** Name string for the updateinterval option */ -#define UPDATEINTERVAL_name (ntpd_opt_strs+2454) +#define UPDATEINTERVAL_name (ntpd_opt_strs+2465) /** Compiled in flag settings for the updateinterval option */ #define UPDATEINTERVAL_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -632,11 +632,11 @@ static int const aSaveconfigquitCantList[] = { * var option description: */ /** Descriptive text for the var option */ -#define VAR_DESC (ntpd_opt_strs+2469) +#define VAR_DESC (ntpd_opt_strs+2480) /** Upper-cased name for the var option */ -#define VAR_NAME (ntpd_opt_strs+2499) +#define VAR_NAME (ntpd_opt_strs+2510) /** Name string for the var option */ -#define VAR_name (ntpd_opt_strs+2503) +#define VAR_name (ntpd_opt_strs+2514) /** Compiled in flag settings for the var option */ #define VAR_FLAGS (OPTST_DISABLED | OPTST_STACKED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -645,11 +645,11 @@ static int const aSaveconfigquitCantList[] = { * dvar option description: */ /** Descriptive text for the dvar option */ -#define DVAR_DESC (ntpd_opt_strs+2507) +#define DVAR_DESC (ntpd_opt_strs+2518) /** Upper-cased name for the dvar option */ -#define DVAR_NAME (ntpd_opt_strs+2541) +#define DVAR_NAME (ntpd_opt_strs+2552) /** Name string for the dvar option */ -#define DVAR_name (ntpd_opt_strs+2546) +#define DVAR_name (ntpd_opt_strs+2557) /** Compiled in flag settings for the dvar option */ #define DVAR_FLAGS (OPTST_DISABLED | OPTST_STACKED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -660,11 +660,11 @@ static int const aSaveconfigquitCantList[] = { */ #ifdef HAVE_WORKING_FORK /** Descriptive text for the wait-sync option */ -#define WAIT_SYNC_DESC (ntpd_opt_strs+2551) +#define WAIT_SYNC_DESC (ntpd_opt_strs+2562) /** Upper-cased name for the wait-sync option */ -#define WAIT_SYNC_NAME (ntpd_opt_strs+2588) +#define WAIT_SYNC_NAME (ntpd_opt_strs+2599) /** Name string for the wait-sync option */ -#define WAIT_SYNC_name (ntpd_opt_strs+2598) +#define WAIT_SYNC_name (ntpd_opt_strs+2609) /** Other options that appear in conjunction with the wait-sync option */ static int const aWait_SyncCantList[] = { INDEX_OPT_NOFORK, @@ -686,11 +686,11 @@ static int const aWait_SyncCantList[] = { * slew option description: */ /** Descriptive text for the slew option */ -#define SLEW_DESC (ntpd_opt_strs+2608) +#define SLEW_DESC (ntpd_opt_strs+2619) /** Upper-cased name for the slew option */ -#define SLEW_NAME (ntpd_opt_strs+2631) +#define SLEW_NAME (ntpd_opt_strs+2642) /** Name string for the slew option */ -#define SLEW_name (ntpd_opt_strs+2636) +#define SLEW_name (ntpd_opt_strs+2647) /** Compiled in flag settings for the slew option */ #define SLEW_FLAGS (OPTST_DISABLED) @@ -699,11 +699,11 @@ static int const aWait_SyncCantList[] = { */ #ifdef SYS_WINNT /** Descriptive text for the usepcc option */ -#define USEPCC_DESC (ntpd_opt_strs+2641) +#define USEPCC_DESC (ntpd_opt_strs+2652) /** Upper-cased name for the usepcc option */ -#define USEPCC_NAME (ntpd_opt_strs+2678) +#define USEPCC_NAME (ntpd_opt_strs+2689) /** Name string for the usepcc option */ -#define USEPCC_name (ntpd_opt_strs+2685) +#define USEPCC_name (ntpd_opt_strs+2696) /** Compiled in flag settings for the usepcc option */ #define USEPCC_FLAGS (OPTST_DISABLED) @@ -719,11 +719,11 @@ static int const aWait_SyncCantList[] = { */ #ifdef SYS_WINNT /** Descriptive text for the pccfreq option */ -#define PCCFREQ_DESC (ntpd_opt_strs+2692) +#define PCCFREQ_DESC (ntpd_opt_strs+2703) /** Upper-cased name for the pccfreq option */ -#define PCCFREQ_NAME (ntpd_opt_strs+2735) +#define PCCFREQ_NAME (ntpd_opt_strs+2746) /** Name string for the pccfreq option */ -#define PCCFREQ_name (ntpd_opt_strs+2743) +#define PCCFREQ_name (ntpd_opt_strs+2754) /** Compiled in flag settings for the pccfreq option */ #define PCCFREQ_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -740,11 +740,11 @@ static int const aWait_SyncCantList[] = { */ #ifdef HAVE_DNSREGISTRATION /** Descriptive text for the mdns option */ -#define MDNS_DESC (ntpd_opt_strs+2751) +#define MDNS_DESC (ntpd_opt_strs+2762) /** Upper-cased name for the mdns option */ -#define MDNS_NAME (ntpd_opt_strs+2786) +#define MDNS_NAME (ntpd_opt_strs+2797) /** Name string for the mdns option */ -#define MDNS_name (ntpd_opt_strs+2791) +#define MDNS_name (ntpd_opt_strs+2802) /** Compiled in flag settings for the mdns option */ #define MDNS_FLAGS (OPTST_DISABLED) @@ -758,11 +758,11 @@ static int const aWait_SyncCantList[] = { /* * Help/More_Help/Version option descriptions: */ -#define HELP_DESC (ntpd_opt_strs+2796) -#define HELP_name (ntpd_opt_strs+2840) +#define HELP_DESC (ntpd_opt_strs+2807) +#define HELP_name (ntpd_opt_strs+2851) #ifdef HAVE_WORKING_FORK -#define MORE_HELP_DESC (ntpd_opt_strs+2845) -#define MORE_HELP_name (ntpd_opt_strs+2890) +#define MORE_HELP_DESC (ntpd_opt_strs+2856) +#define MORE_HELP_name (ntpd_opt_strs+2901) #define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT) #else #define MORE_HELP_DESC HELP_DESC @@ -775,8 +775,8 @@ static int const aWait_SyncCantList[] = { # define VER_FLAGS (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \ OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT) #endif -#define VER_DESC (ntpd_opt_strs+2900) -#define VER_name (ntpd_opt_strs+2936) +#define VER_DESC (ntpd_opt_strs+2911) +#define VER_name (ntpd_opt_strs+2947) /** * Declare option callback procedures */ @@ -1258,21 +1258,21 @@ static tOptDesc optDesc[OPTION_CT] = { /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** Reference to the upper cased version of ntpd. */ -#define zPROGNAME (ntpd_opt_strs+2944) +#define zPROGNAME (ntpd_opt_strs+2955) /** Reference to the title line for ntpd usage. */ -#define zUsageTitle (ntpd_opt_strs+2949) +#define zUsageTitle (ntpd_opt_strs+2960) /** There is no ntpd configuration file. */ #define zRcName NULL /** There are no directories to search for ntpd config files. */ #define apzHomeList NULL /** The ntpd program bug email address. */ -#define zBugsAddr (ntpd_opt_strs+3080) +#define zBugsAddr (ntpd_opt_strs+3102) /** Clarification/explanation of what ntpd does. */ -#define zExplain (ntpd_opt_strs+3114) +#define zExplain (ntpd_opt_strs+3136) /** Extra detail explaining what ntpd does. */ #define zDetail (NULL) /** The full version string for ntpd. */ -#define zFullVersion (ntpd_opt_strs+3116) +#define zFullVersion (ntpd_opt_strs+3138) /* extracted from optcode.tlib near line 364 */ #if defined(ENABLE_NLS) @@ -1529,7 +1529,7 @@ static void bogus_function(void) { translate option names. */ /* referenced via ntpdOptions.pzCopyright */ - puts(_("ntpd 4.2.8p9\n\ + puts(_("ntpd 4.2.8p10-win-beta1\n\ Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n\ This is free software. It is licensed for use, modification and\n\ redistribution under the terms of the NTP License, copies of which\n\ @@ -1670,7 +1670,7 @@ implied warranty.\n")); puts(_("output version information and exit")); /* referenced via ntpdOptions.pzUsageTitle */ - puts(_("ntpd - NTP daemon program - Ver. 4.2.8p9\n\ + puts(_("ntpd - NTP daemon program - Ver. 4.2.8p10-win-beta1\n\ Usage: %s [ - [] | --[{=| }] ]... \\\n\ \t\t[ ... ]\n")); @@ -1678,7 +1678,7 @@ Usage: %s [ - [] | --[{=| }] ]... \\\n\ puts(_("\n")); /* referenced via ntpdOptions.pzFullVersion */ - puts(_("ntpd 4.2.8p9")); + puts(_("ntpd 4.2.8p10-win-beta1")); /* referenced via ntpdOptions.pzFullUsage */ puts(_("<<>>")); diff --git a/ntpd/ntpd-opts.h b/ntpd/ntpd-opts.h index ae7770777..97c72e3f2 100644 --- a/ntpd/ntpd-opts.h +++ b/ntpd/ntpd-opts.h @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpd-opts.h) * - * It has been AutoGen-ed January 2, 2017 at 12:04:21 PM by AutoGen 5.18.5 + * It has been AutoGen-ed March 21, 2017 at 09:29:58 AM by AutoGen 5.18.5 * From the definitions ntpd-opts.def * and the template file options * @@ -106,9 +106,9 @@ typedef enum { /** count of all options for ntpd */ #define OPTION_CT 38 /** ntpd version */ -#define NTPD_VERSION "4.2.8p9" +#define NTPD_VERSION "4.2.8p10-win-beta1" /** Full ntpd version text */ -#define NTPD_FULL_VERSION "ntpd 4.2.8p9" +#define NTPD_FULL_VERSION "ntpd 4.2.8p10-win-beta1" /** * Interface defines for all options. Replace "n" with the UPPER_CASED diff --git a/ntpd/ntpd.1ntpdman b/ntpd/ntpd.1ntpdman index 46519e926..ed545ebca 100644 --- a/ntpd/ntpd.1ntpdman +++ b/ntpd/ntpd.1ntpdman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntpd 1ntpdman "02 Jan 2017" "4.2.8p9" "User Commands" +.TH ntpd 1ntpdman "21 Mar 2017" "4.2.8p10-win-beta1" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-mMaalN/ag-3MaigN) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:01 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:32:02 AM by AutoGen 5.18.5 .\" From the definitions ntpd-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/ntpd/ntpd.1ntpdmdoc b/ntpd/ntpd.1ntpdmdoc index a41e982e3..d9f064628 100644 --- a/ntpd/ntpd.1ntpdmdoc +++ b/ntpd/ntpd.1ntpdmdoc @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTPD 1ntpdmdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntpd-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:04:53 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:32:12 AM by AutoGen 5.18.5 .\" From the definitions ntpd-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/ntpd/ntpd.html b/ntpd/ntpd.html index e972adc9c..363ab3a0e 100644 --- a/ntpd/ntpd.html +++ b/ntpd/ntpd.html @@ -1,173 +1,128 @@ - - - + -ntpd: Network Time Protocol (NTP) Daemon User’s Manual - - - - - - - - - - - - +ntpd: Network Time Protocol (NTP) Daemon User's Manual + + + + + + + - - -

      ntpd: Network Time Protocol (NTP) Daemon User’s Manual

      - - - - - - -
      -

      -Next: , Previous: , Up: (dir)  

      + +

      ntpd: Network Time Protocol (NTP) Daemon User's Manual

      +
      +


      +Next: , +Previous: (dir), +Up: (dir) +
      - -

      ntpd: Network Time Protocol (NTP) Daemon User Manual

      + +

      ntpd: Network Time Protocol (NTP) Daemon User Manual

      The ntpd program is an operating system daemon that synchronizes the -system clock to remote NTP time servers or local reference clocks. +system clock to remote NTP time servers or local reference clocks. It is a complete implementation of NTP version 4 defined by RFC-5905, but also retains compatible with version 3 defined by RFC-1305 and versions -1 and 2, defined by RFC-1059 and RFC-1119, respectively. +1 and 2, defined by RFC-1059 and RFC-1119, respectively. The program can operate in any of several modes, including client/server, symmetric and broadcast modes, and with both symmetric-key and public-key cryptography. -

      -

      This document applies to version 4.2.8p9-win of ntpd. -

      - -

      Short Table of Contents

      - - +

      This document applies to version 4.2.8p10-win-beta1 of ntpd. - - - - - +

      -
      +
      +


      -
      -

      -Next: , Up: Top  

      +
      - -

      1 Description

      + + +

      Description

      The ntpd program ordinarily requires -a configuration file described at ‘ntp.conf’. +a configuration file described at ntp.conf. This configuration file contains configuration commands described on -the pages listed above. +the pages listed above. However a client can discover remote servers and configure them -automatically. +automatically. This makes it possible to deploy a fleet of workstations without specifying configuration details specific to the local environment. -

      -

      The ntpd program normally operates continuously while adjusting the + +

      The ntpd program normally operates continuously while adjusting the system time and frequency, but in some cases this might not be -practical. +practical. With the -q option ntpd operates as in continuous mode, but -exits just after setting the clock for the first time. +exits just after setting the clock for the first time. Most applications will probably want to specify the iburst -option with the server command. +option with the server command. With this option an initial volley of messages is exchanged to -groom the data and set the clock in about ten seconds’ time. -If nothing is heard after a few minutes’ time, +groom the data and set the clock in about ten seconds' time. +If nothing is heard after a few minutes' time, the daemon times out and exits without setting the clock. -

      -
      + +
      +


      -
      -

      -Next: , Previous: , Up: ntpd Description  

      +
      - -

      1.1 Invoking ntpd

      - - +

      Invoking ntpd

      +

      -

      The +

      The ntpd utility is an operating system daemon which sets and maintains the system time of day in synchronism with Internet -standard time servers. +standard time servers. It is a complete implementation of the Network Time Protocol (NTP) version 4, as defined by RFC-5905, but also retains compatibility with version 3, as defined by RFC-1305, and versions 1 and 2, as defined by RFC-1059 and RFC-1119, respectively. -

      -

      The + +

      The ntpd utility does most computations in 64-bit floating point arithmetic and does relatively clumsy 64-bit fixed point operations only when necessary to preserve the ultimate precision, about 232 -picoseconds. +picoseconds. While the ultimate precision is not achievable with ordinary workstations and networks of today, it may be required with future gigahertz CPU clocks and gigabit LANs. -

      -

      Ordinarily, + +

      Ordinarily, ntpd reads the ntp.conf(5) configuration file at startup time in order to determine the -synchronization sources and operating modes. +synchronization sources and operating modes. It is also possible to specify a working, although limited, configuration entirely on the -command line, obviating the need for a configuration file. +command line, obviating the need for a configuration file. This may be particularly useful when the local host is to be configured as a broadcast/multicast client, with all peers being determined by listening to broadcasts at run time. -

      -

      If NetInfo support is built into + +

      If NetInfo support is built into ntpd then ntpd @@ -178,8 +133,8 @@ file cannot be read and no file is specified by the -c option. -

      -

      Various internal + +

      Various internal ntpd variables can be displayed and configuration options altered while the @@ -190,8 +145,8 @@ using the and ntpdc(1ntpdcmdoc) utility programs. -

      -

      When + +

      When ntpd starts it looks at the value of umask(2), @@ -200,109 +155,71 @@ and if zero will set the umask(2) to 022. -

      -

      This section was generated by AutoGen, -using the agtexi-cmd template and the option descriptions for the ntpd program. + +

      This section was generated by AutoGen, +using the agtexi-cmd template and the option descriptions for the ntpd program. This software is released under the NTP license, <http://ntp.org/license>. -

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

      -Next: , Up: ntpd Invocation  

      + + + +
      +


      +Next: , +Up: ntpd Invocation +
      - -

      1.1.1 ntpd help/usage (--help)

      - - -

      This is the automatically generated usage text for ntpd. -

      -

      The text printed is the same whether selected with the help option -(--help) or the more-help option (--more-help). more-help will print -the usage text by passing it through a pager program. + +

      ntpd help/usage (--help)

      + +

      +This is the automatically generated usage text for ntpd. + +

      The text printed is the same whether selected with the help option +(--help) or the more-help option (--more-help). more-help will print +the usage text by passing it through a pager program. more-help is disabled on platforms without a working fork(2) function. The PAGER environment variable is -used to select the program, defaulting to more. Both will exit +used to select the program, defaulting to more. Both will exit with a status code of 0. -

      -
      +
      ntpd - NTP daemon program - Ver. 4.2.8p9
       Usage:  ntpd [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \
                       [ <server1> ... <serverN> ]
      @@ -372,143 +289,149 @@ The following option preset mechanisms are supported:
        - examining environment variables named NTPD_*
       
       Please send bug reports to:  <http://bugs.ntp.org, bugs@ntp.org>
      -
      - -
      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      + +
      +


      +Next: , +Previous: ntpd usage, +Up: ntpd Invocation +
      - -

      1.1.2 ipv4 option (-4)

      - - -

      This is the “force ipv4 dns name resolution” option. -

      -

      This option has some usage constraints. It: -

        -
      • must not appear in combination with any of the following options: -ipv6. -
      - -

      Force DNS resolution of following host names on the command line -to the IPv4 namespace. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      + +

      ipv4 option (-4)

      + +

      +This is the “force ipv4 dns name resolution” option. + +

      This option has some usage constraints. It: +

        +
      • must not appear in combination with any of the following options: +ipv6. +
      + +

      Force DNS resolution of following host names on the command line +to the IPv4 namespace. +

      +


      +Next: , +Previous: ntpd ipv4, +Up: ntpd Invocation +
      - -

      1.1.3 ipv6 option (-6)

      - - -

      This is the “force ipv6 dns name resolution” option. -

      -

      This option has some usage constraints. It: -

        -
      • must not appear in combination with any of the following options: -ipv4. -
      - -

      Force DNS resolution of following host names on the command line -to the IPv6 namespace. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      + +

      ipv6 option (-6)

      + +

      +This is the “force ipv6 dns name resolution” option. + +

      This option has some usage constraints. It: +

        +
      • must not appear in combination with any of the following options: +ipv4. +
      + +

      Force DNS resolution of following host names on the command line +to the IPv6 namespace. +

      +


      +Next: , +Previous: ntpd ipv6, +Up: ntpd Invocation +
      - -

      1.1.4 authreq option (-a)

      - - -

      This is the “require crypto authentication” option. -

      -

      This option has some usage constraints. It: -

        -
      • must not appear in combination with any of the following options: -authnoreq. -
      - -

      Require cryptographic authentication for broadcast client, -multicast client and symmetric passive associations. -This is the default. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      + +

      authreq option (-a)

      + +

      +This is the “require crypto authentication” option. + +

      This option has some usage constraints. It: +

        +
      • must not appear in combination with any of the following options: +authnoreq. +
      + +

      Require cryptographic authentication for broadcast client, +multicast client and symmetric passive associations. +This is the default. +

      +


      +Next: , +Previous: ntpd authreq, +Up: ntpd Invocation +
      - -

      1.1.5 authnoreq option (-A)

      - - -

      This is the “do not require crypto authentication” option. -

      -

      This option has some usage constraints. It: -

        -
      • must not appear in combination with any of the following options: -authreq. -
      - -

      Do not require cryptographic authentication for broadcast client, -multicast client and symmetric passive associations. -This is almost never a good idea. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      + +

      authnoreq option (-A)

      + +

      +This is the “do not require crypto authentication” option. + +

      This option has some usage constraints. It: +

        +
      • must not appear in combination with any of the following options: +authreq. +
      + +

      Do not require cryptographic authentication for broadcast client, +multicast client and symmetric passive associations. +This is almost never a good idea. +

      +


      +Next: , +Previous: ntpd authnoreq, +Up: ntpd Invocation +
      - -

      1.1.6 configfile option (-c)

      - -

      This is the “configuration file name” option. -This option takes a string argument. +

      configfile option (-c)

      + +

      +This is the “configuration file name” option. +This option takes a string argument. The name and path of the configuration file, -/etc/ntp.conf -by default. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +/etc/ntp.conf +by default. +
      +


      +Next: , +Previous: ntpd configfile, +Up: ntpd Invocation +
      - -

      1.1.7 driftfile option (-f)

      - -

      This is the “frequency drift file name” option. -This option takes a string argument. +

      driftfile option (-f)

      + +

      +This is the “frequency drift file name” option. +This option takes a string argument. The name and path of the frequency file, -/etc/ntp.drift -by default. +/etc/ntp.drift +by default. This is the same operation as the driftfile driftfile configuration specification in the -/etc/ntp.conf -file. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +/etc/ntp.conf +file. +
      +


      +Next: , +Previous: ntpd driftfile, +Up: ntpd Invocation +
      - -

      1.1.8 panicgate option (-g)

      - - -

      This is the “allow the first adjustment to be big” option. -

      -

      This option has some usage constraints. It: -

        -
      • may appear an unlimited number of times. -
      - -

      Normally, + +

      panicgate option (-g)

      + +

      +This is the “allow the first adjustment to be big” option. + +

      This option has some usage constraints. It: +

        +
      • may appear an unlimited number of times. +
      + +

      Normally, ntpd exits with a message to the system log if the offset exceeds the panic threshold, which is 1000 s by default. This option allows the time to be set to any value without restriction; however, this can happen only once. If the threshold is exceeded after that, ntpd @@ -516,579 +439,581 @@ will exit with a message to the system log. This option can be used with the -q and -x -options. +options. See the tinker -configuration file directive for other options. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +configuration file directive for other options. +
      +


      +Next: , +Previous: ntpd panicgate, +Up: ntpd Invocation +
      - -

      1.1.9 force-step-once option (-G)

      - -

      This is the “step any initial offset correction.” option. +

      force-step-once option (-G)

      + +

      +This is the “step any initial offset correction.” option. Normally, ntpd steps the time if the time offset exceeds the step threshold, -which is 128 ms by default, and otherwise slews the time. +which is 128 ms by default, and otherwise slews the time. This option forces the initial offset correction to be stepped, -so the highest time accuracy can be achieved quickly. +so the highest time accuracy can be achieved quickly. However, this may also cause the time to be stepped back so this option must not be used if -applications requiring monotonic time are running. -See the tinker configuration file directive for other options. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +applications requiring monotonic time are running. +See the tinker configuration file directive for other options. +
      +


      +Next: , +Previous: ntpd force-step-once, +Up: ntpd Invocation +
      - -

      1.1.10 jaildir option (-i)

      - -

      This is the “jail directory” option. +

      jaildir option (-i)

      + +

      +This is the “jail directory” option. This option takes a string argument. -

      -

      This option has some usage constraints. It: -

        -
      • must be compiled in by defining HAVE_DROPROOT during the compilation. -
      -

      Chroot the server to the directory +

      This option has some usage constraints. It: +

        +
      • must be compiled in by defining HAVE_DROPROOT during the compilation. +
      + +

      Chroot the server to the directory jaildir -. -This option also implies that the server attempts to drop root privileges at startup. +. +This option also implies that the server attempts to drop root privileges at startup. You may need to also specify a -u -option. +option. This option is only available if the OS supports adjusting the clock -without full root privileges. +without full root privileges. This option is supported under NetBSD (configure with --enable-clockctl) or Linux (configure with ---enable-linuxcaps) or Solaris (configure with --enable-solarisprivs). -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +--enable-linuxcaps) or Solaris (configure with --enable-solarisprivs). +
      +


      +Next: , +Previous: ntpd jaildir, +Up: ntpd Invocation +
      - -

      1.1.11 interface option (-I)

      - - -

      This is the “listen on an interface name or address” option. -This option takes a string argument iface. -

      -

      This option has some usage constraints. It: -

        -
      • may appear an unlimited number of times. -
      - -

      Open the network address given, or all the addresses associated with the + +

      interface option (-I)

      + +

      +This is the “listen on an interface name or address” option. +This option takes a string argument iface. + +

      This option has some usage constraints. It: +

        +
      • may appear an unlimited number of times. +
      + +

      Open the network address given, or all the addresses associated with the given interface name. This option may appear multiple times. This option -also implies not opening other addresses, except wildcard and localhost. +also implies not opening other addresses, except wildcard and localhost. This option is deprecated. Please consider using the configuration file -interface command, which is more versatile. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      -
      - -

      1.1.12 keyfile option (-k)

      - - -

      This is the “path to symmetric keys” option. -This option takes a string argument. -Specify the name and path of the symmetric key file. -/etc/ntp.keys -is the default. +interface command, which is more versatile. +

      +


      +Next: , +Previous: ntpd interface, +Up: ntpd Invocation +
      +
      + +

      keyfile option (-k)

      + +

      +This is the “path to symmetric keys” option. +This option takes a string argument. +Specify the name and path of the symmetric key file. +/etc/ntp.keys +is the default. This is the same operation as the keys keyfile -configuration file directive. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      -
      - -

      1.1.13 logfile option (-l)

      - - -

      This is the “path to the log file” option. -This option takes a string argument. -Specify the name and path of the log file. -The default is the system log file. +configuration file directive. +

      +


      +Next: , +Previous: ntpd keyfile, +Up: ntpd Invocation +
      +
      + +

      logfile option (-l)

      + +

      +This is the “path to the log file” option. +This option takes a string argument. +Specify the name and path of the log file. +The default is the system log file. This is the same operation as the logfile logfile -configuration file directive. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +configuration file directive. +
      +


      +Next: , +Previous: ntpd logfile, +Up: ntpd Invocation +
      - -

      1.1.14 novirtualips option (-L)

      - -

      This is the “do not listen to virtual interfaces” option. +

      novirtualips option (-L)

      + +

      +This is the “do not listen to virtual interfaces” option. Do not listen to virtual interfaces, defined as those with names containing a colon. This option is deprecated. Please consider using the configuration file interface command, which -is more versatile. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +is more versatile. +
      +


      +Next: , +Previous: ntpd novirtualips, +Up: ntpd Invocation +
      - -

      1.1.15 modifymmtimer option (-M)

      - - -

      This is the “modify multimedia timer (windows only)” option. -

      -

      This option has some usage constraints. It: -

        -
      • must be compiled in by defining SYS_WINNT during the compilation. -
      - -

      Set the Windows Multimedia Timer to highest resolution. This + +

      modifymmtimer option (-M)

      + +

      +This is the “modify multimedia timer (windows only)” option. + +

      This option has some usage constraints. It: +

        +
      • must be compiled in by defining SYS_WINNT during the compilation. +
      + +

      Set the Windows Multimedia Timer to highest resolution. This ensures the resolution does not change while ntpd is running, -avoiding timekeeping glitches associated with changes. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +avoiding timekeeping glitches associated with changes. +
      +


      +Next: , +Previous: ntpd modifymmtimer, +Up: ntpd Invocation +
      - -

      1.1.16 nice option (-N)

      - -

      This is the “run at high priority” option. +

      nice option (-N)

      + +

      +This is the “run at high priority” option. To the extent permitted by the operating system, run ntpd -at the highest priority. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +at the highest priority. +
      +


      +Next: , +Previous: ntpd nice, +Up: ntpd Invocation +
      - -

      1.1.17 pidfile option (-p)

      - -

      This is the “path to the pid file” option. -This option takes a string argument. +

      pidfile option (-p)

      + +

      +This is the “path to the pid file” option. +This option takes a string argument. Specify the name and path of the file used to record -ntpd’s -process ID. +ntpd's +process ID. This is the same operation as the pidfile pidfile -configuration file directive. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +configuration file directive. +
      +


      +Next: , +Previous: ntpd pidfile, +Up: ntpd Invocation +
      - -

      1.1.18 priority option (-P)

      - -

      This is the “process priority” option. -This option takes a number argument. +

      priority option (-P)

      + +

      +This is the “process priority” option. +This option takes a number argument. To the extent permitted by the operating system, run ntpd at the specified sched_setscheduler(SCHED_FIFO) -priority. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +priority. +
      +


      +Next: , +Previous: ntpd priority, +Up: ntpd Invocation +
      - -

      1.1.19 quit option (-q)

      - - -

      This is the “set the time and quit” option. -

      -

      This option has some usage constraints. It: -

        -
      • must not appear in combination with any of the following options: -saveconfigquit, wait-sync. -
      - -

      ntpd + +

      quit option (-q)

      + +

      +This is the “set the time and quit” option. + +

      This option has some usage constraints. It: +

        +
      • must not appear in combination with any of the following options: +saveconfigquit, wait-sync. +
      + +

      ntpd will not daemonize and will exit after the clock is first synchronized. This behavior mimics that of the ntpdate -program, which will soon be replaced with a shell script. +program, which will soon be replaced with a shell script. The -g and -x -options can be used with this option. -Note: The kernel time discipline is disabled with this option. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      -
      - -

      1.1.20 propagationdelay option (-r)

      - - -

      This is the “broadcast/propagation delay” option. +options can be used with this option. +Note: The kernel time discipline is disabled with this option. +

      +


      +Next: , +Previous: ntpd quit, +Up: ntpd Invocation +
      +
      + +

      propagationdelay option (-r)

      + +

      +This is the “broadcast/propagation delay” option. +This option takes a string argument. +Specify the default propagation delay from the broadcast/multicast server to this client. This is necessary only if the delay cannot be computed automatically by the protocol. +

      +


      +Next: , +Previous: ntpd propagationdelay, +Up: ntpd Invocation +
      +
      + +

      saveconfigquit option

      + +

      +This is the “save parsed configuration and quit” option. This option takes a string argument. -Specify the default propagation delay from the broadcast/multicast server to this client. This is necessary only if the delay cannot be computed automatically by the protocol. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      -
      - -

      1.1.21 saveconfigquit option

      - -

      This is the “save parsed configuration and quit” option. -This option takes a string argument. -

      -

      This option has some usage constraints. It: -

        -
      • must be compiled in by defining SAVECONFIG during the compilation. -
      • must not appear in combination with any of the following options: -quit, wait-sync. -
      - -

      Cause ntpd to parse its startup configuration file and save an +

      This option has some usage constraints. It: +

        +
      • must be compiled in by defining SAVECONFIG during the compilation. +
      • must not appear in combination with any of the following options: +quit, wait-sync. +
      + +

      Cause ntpd to parse its startup configuration file and save an equivalent to the given filename and exit. This option was -designed for automated testing. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +designed for automated testing. +
      +


      +Next: , +Previous: ntpd saveconfigquit, +Up: ntpd Invocation +
      - -

      1.1.22 statsdir option (-s)

      - -

      This is the “statistics file location” option. -This option takes a string argument. -Specify the directory path for files created by the statistics facility. +

      statsdir option (-s)

      + +

      +This is the “statistics file location” option. +This option takes a string argument. +Specify the directory path for files created by the statistics facility. This is the same operation as the statsdir statsdir -configuration file directive. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +configuration file directive. +
      +


      +Next: , +Previous: ntpd statsdir, +Up: ntpd Invocation +
      - -

      1.1.23 trustedkey option (-t)

      - - -

      This is the “trusted key number” option. -This option takes a string argument tkey. -

      -

      This option has some usage constraints. It: -

        -
      • may appear an unlimited number of times. -
      - -

      Add the specified key number to the trusted key list. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      + +

      trustedkey option (-t)

      + +

      +This is the “trusted key number” option. +This option takes a string argument tkey. + +

      This option has some usage constraints. It: +

        +
      • may appear an unlimited number of times. +
      + +

      Add the specified key number to the trusted key list. +

      +


      +Next: , +Previous: ntpd trustedkey, +Up: ntpd Invocation +
      - -

      1.1.24 user option (-u)

      - -

      This is the “run as userid (or userid:groupid)” option. +

      user option (-u)

      + +

      +This is the “run as userid (or userid:groupid)” option. This option takes a string argument. -

      -

      This option has some usage constraints. It: -

        -
      • must be compiled in by defining HAVE_DROPROOT during the compilation. -
      -

      Specify a user, and optionally a group, to switch to. +

      This option has some usage constraints. It: +

        +
      • must be compiled in by defining HAVE_DROPROOT during the compilation. +
      + +

      Specify a user, and optionally a group, to switch to. This option is only available if the OS supports adjusting the clock -without full root privileges. +without full root privileges. This option is supported under NetBSD (configure with --enable-clockctl) or Linux (configure with ---enable-linuxcaps) or Solaris (configure with --enable-solarisprivs). -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +--enable-linuxcaps) or Solaris (configure with --enable-solarisprivs). +
      +


      +Next: , +Previous: ntpd user, +Up: ntpd Invocation +
      - -

      1.1.25 updateinterval option (-U)

      - -

      This is the “interval in seconds between scans for new or dropped interfaces” option. -This option takes a number argument. -Give the time in seconds between two scans for new or dropped interfaces. +

      updateinterval option (-U)

      + +

      +This is the “interval in seconds between scans for new or dropped interfaces” option. +This option takes a number argument. +Give the time in seconds between two scans for new or dropped interfaces. For systems with routing socket support the scans will be performed shortly after the interface change -has been detected by the system. -Use 0 to disable scanning. 60 seconds is the minimum time between scans. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +has been detected by the system. +Use 0 to disable scanning. 60 seconds is the minimum time between scans. +
      +


      +Next: , +Previous: ntpd updateinterval, +Up: ntpd Invocation +
      - -

      1.1.26 wait-sync option (-w)

      - -

      This is the “seconds to wait for first clock sync” option. +

      wait-sync option (-w)

      + +

      +This is the “seconds to wait for first clock sync” option. This option takes a number argument. -

      -

      This option has some usage constraints. It: -

        -
      • must be compiled in by defining HAVE_WORKING_FORK during the compilation. -
      • must not appear in combination with any of the following options: -nofork, quit, saveconfigquit. -
      - -

      If greater than zero, alters ntpd’s behavior when forking to + +

      This option has some usage constraints. It: +

        +
      • must be compiled in by defining HAVE_WORKING_FORK during the compilation. +
      • must not appear in combination with any of the following options: +nofork, quit, saveconfigquit. +
      + +

      If greater than zero, alters ntpd's behavior when forking to daemonize. Instead of exiting with status 0 immediately after the fork, the parent waits up to the specified number of seconds for the child to first synchronize the clock. The exit status is zero (success) if the clock was synchronized, -otherwise it is ETIMEDOUT. +otherwise it is ETIMEDOUT. This provides the option for a script starting ntpd to easily -wait for the first set of the clock before proceeding. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      -
      - -

      1.1.27 slew option (-x)

      - - -

      This is the “slew up to 600 seconds” option. -Normally, the time is slewed if the offset is less than the step threshold, which is 128 ms by default, and stepped if above the threshold. -This option sets the threshold to 600 s, which is well within the accuracy window to set the clock manually. -Note: Since the slew rate of typical Unix kernels is limited to 0.5 ms/s, each second of adjustment requires an amortization interval of 2000 s. -Thus, an adjustment as much as 600 s will take almost 14 days to complete. +wait for the first set of the clock before proceeding. +

      +


      +Next: , +Previous: ntpd wait-sync, +Up: ntpd Invocation +
      +
      + +

      slew option (-x)

      + +

      +This is the “slew up to 600 seconds” option. +Normally, the time is slewed if the offset is less than the step threshold, which is 128 ms by default, and stepped if above the threshold. +This option sets the threshold to 600 s, which is well within the accuracy window to set the clock manually. +Note: Since the slew rate of typical Unix kernels is limited to 0.5 ms/s, each second of adjustment requires an amortization interval of 2000 s. +Thus, an adjustment as much as 600 s will take almost 14 days to complete. This option can be used with the -g and -q -options. +options. See the tinker -configuration file directive for other options. -Note: The kernel time discipline is disabled with this option. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +configuration file directive for other options. +Note: The kernel time discipline is disabled with this option. +
      +


      +Next: , +Previous: ntpd slew, +Up: ntpd Invocation +
      - -

      1.1.28 usepcc option

      - - -

      This is the “use cpu cycle counter (windows only)” option. -

      -

      This option has some usage constraints. It: -

        -
      • must be compiled in by defining SYS_WINNT during the compilation. -
      - -

      Attempt to substitute the CPU counter for QueryPerformanceCounter. + +

      usepcc option

      + +

      +This is the “use cpu cycle counter (windows only)” option. + +

      This option has some usage constraints. It: +

        +
      • must be compiled in by defining SYS_WINNT during the compilation. +
      + +

      Attempt to substitute the CPU counter for QueryPerformanceCounter. The CPU counter and QueryPerformanceCounter are compared, and if they have the same frequency, the CPU counter (RDTSC on x86) is -used directly, saving the overhead of a system call. -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +used directly, saving the overhead of a system call. +
      +


      +Next: , +Previous: ntpd usepcc, +Up: ntpd Invocation +
      - -

      1.1.29 pccfreq option

      - -

      This is the “force cpu cycle counter use (windows only)” option. +

      pccfreq option

      + +

      +This is the “force cpu cycle counter use (windows only)” option. This option takes a string argument. -

      -

      This option has some usage constraints. It: -

        -
      • must be compiled in by defining SYS_WINNT during the compilation. -
      -

      Force substitution the CPU counter for QueryPerformanceCounter. +

      This option has some usage constraints. It: +

        +
      • must be compiled in by defining SYS_WINNT during the compilation. +
      + +

      Force substitution the CPU counter for QueryPerformanceCounter. The CPU counter (RDTSC on x86) is used unconditionally with the -given frequency (in Hz). -


      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +given frequency (in Hz). +
      +


      +Next: , +Previous: ntpd pccfreq, +Up: ntpd Invocation +
      - -

      1.1.30 mdns option (-m)

      - - -

      This is the “register with mdns as a ntp server” option. -

      -

      This option has some usage constraints. It: -

        -
      • must be compiled in by defining HAVE_DNSREGISTRATION during the compilation. -
      - -

      Registers as an NTP server with the local mDNS server which allows + +

      mdns option (-m)

      + +

      +This is the “register with mdns as a ntp server” option. + +

      This option has some usage constraints. It: +

        +
      • must be compiled in by defining HAVE_DNSREGISTRATION during the compilation. +
      + +

      Registers as an NTP server with the local mDNS server which allows the server to be discovered via mDNS client lookup. -

      -
      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +
      +


      +Next: , +Previous: ntpd mdns, +Up: ntpd Invocation +
      - -

      1.1.31 presetting/configuring ntpd

      + +

      presetting/configuring ntpd

      Any option that is not marked as not presettable may be preset by loading values from environment variables named NTPD and NTPD_<OPTION_NAME>. <OPTION_NAME> must be one of -the options listed above in upper case and segmented with underscores. +the options listed above in upper case and segmented with underscores. The NTPD variable will be tokenized and parsed like the command line. The remaining variables are tested for existence and their values are treated like option arguments. -

      -

      The command line options relating to configuration and/or usage help are: -

      - -

      version (-)

      +

      The command line options relating to configuration and/or usage help are: + +

      version (-)

      Print the program version to standard out, optionally with licensing information, then exit 0. The optional argument specifies how much licensing -detail to provide. The default is to print just the version. The licensing infomation may be selected with an option argument. +detail to provide. The default is to print just the version. The licensing infomation may be selected with an option argument. Only the first letter of the argument is examined: -

      -
      -
      version
      -

      Only print the version. This is the default. -

      -
      copyright
      -

      Name the copyright usage licensing terms. -

      -
      verbose
      -

      Print the full copyright usage licensing terms. -

      + +
      +
      version
      Only print the version. This is the default. +
      copyright
      Name the copyright usage licensing terms. +
      verbose
      Print the full copyright usage licensing terms.
      -
      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +
      +


      +Next: , +Previous: ntpd config, +Up: ntpd Invocation +
      - -

      1.1.32 ntpd exit status

      + +

      ntpd exit status

      One of the following exit values will be returned: -

      -
      0 (EXIT_SUCCESS)
      -

      Successful program execution. -

      -
      1 (EXIT_FAILURE)
      -

      The operation failed or the command syntax was not valid. -

      +
      +
      0 (EXIT_SUCCESS)
      Successful program execution. +
      1 (EXIT_FAILURE)
      The operation failed or the command syntax was not valid.
      -
      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      +
      +


      +Next: , +Previous: ntpd exit status, +Up: ntpd Invocation +
      - -

      1.1.33 ntpd Usage

      -
      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      + +

      ntpd Usage

      + +
      +


      +Next: , +Previous: ntpd Usage, +Up: ntpd Invocation +
      - -

      1.1.34 ntpd Files

      -
      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      + +

      ntpd Files

      + +
      +


      +Next: , +Previous: ntpd Files, +Up: ntpd Invocation +
      - -

      1.1.35 ntpd See Also

      -
      - -
      -

      -Next: , Previous: , Up: ntpd Invocation  

      + +

      ntpd See Also

      + +
      +


      +Next: , +Previous: ntpd See Also, +Up: ntpd Invocation +
      - -

      1.1.36 ntpd Bugs

      -
      - -
      -

      -Previous: , Up: ntpd Invocation  

      + +

      ntpd Bugs

      + +
      +


      +Previous: ntpd Bugs, +Up: ntpd Invocation +
      - -

      1.1.37 ntpd Notes

      -
      +

      ntpd Notes

      + +
      +


      -
      -

      -Previous: , Up: ntpd Description  

      +
      - -

      1.2 Usage

      - - - - - - - - - - - -
      WhatDefaultFlagOption
      configuration file/etc/ntp.conf-cconffile
      frequency filenone-fdriftfile
      leapseconds filenoneleapfile
      process ID filenone-ppidfile
      log filesystem log-llogfile
      include filenonenoneincludefile
      statistics path/var/NTP-sstatsdir
      keys path/usr/local/etc-kkeysdir
      -
      - - - - - + + +

      Usage

      + diff --git a/ntpd/ntpd.man.in b/ntpd/ntpd.man.in index 8fbf49272..5c050d5b7 100644 --- a/ntpd/ntpd.man.in +++ b/ntpd/ntpd.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntpd @NTPD_MS@ "02 Jan 2017" "4.2.8p9" "User Commands" +.TH ntpd @NTPD_MS@ "21 Mar 2017" "4.2.8p10-win-beta1" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-mMaalN/ag-3MaigN) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:01 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:32:02 AM by AutoGen 5.18.5 .\" From the definitions ntpd-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/ntpd/ntpd.mdoc.in b/ntpd/ntpd.mdoc.in index 07af5390d..89091f315 100644 --- a/ntpd/ntpd.mdoc.in +++ b/ntpd/ntpd.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTPD @NTPD_MS@ User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntpd-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:04:53 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:32:12 AM by AutoGen 5.18.5 .\" From the definitions ntpd-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/ntpdc/invoke-ntpdc.texi b/ntpdc/invoke-ntpdc.texi index 3290502f6..761c1d759 100644 --- a/ntpdc/invoke-ntpdc.texi +++ b/ntpdc/invoke-ntpdc.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-ntpdc.texi) # -# It has been AutoGen-ed January 2, 2017 at 12:05:10 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:32:42 AM by AutoGen 5.18.5 # From the definitions ntpdc-opts.def # and the template file agtexi-cmd.tpl @end ignore @@ -76,18 +76,20 @@ with a status code of 0. @exampleindent 0 @example -ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p9 -Usage: ntpdc [ - [] | --[@{=| @}] ]... [ host ...] +ntpdc - vendor-specific NTPD control program - Ver. 4.2.7p245 +USAGE: ntpdc [ - [] | --[@{=| @}] ]... [ host ...] Flg Arg Option-Name Description -4 no ipv4 Force IPv4 DNS name resolution - - prohibits the option 'ipv6' + - prohibits these options: + ipv6 -6 no ipv6 Force IPv6 DNS name resolution - - prohibits the option 'ipv4' + - prohibits these options: + ipv4 -c Str command run a command and exit - may appear multiple times -d no debug-level Increase debug verbosity level - may appear multiple times - -D Num set-debug-level Set the debug verbosity level + -D Str set-debug-level Set the debug verbosity level - may appear multiple times -i no interactive Force ntpq to operate in interactive mode - prohibits these options: @@ -96,30 +98,34 @@ Usage: ntpdc [ - [] | --[@{=| @}] ]... [ host ...] peers showpeers -l no listpeers Print a list of the peers - - prohibits the option 'command' + - prohibits these options: + command -n no numeric numeric host addresses -p no peers Print a list of the peers - - prohibits the option 'command' + - prohibits these options: + command -s no showpeers Show a list of the peers - - prohibits the option 'command' - opt version output version information and exit - -? no help display extended usage information and exit - -! no more-help extended usage information passed thru pager - -> opt save-opts save the option state to a config file - -< Str load-opts load options from a config file - - disabled as '--no-load-opts' + - prohibits these options: + command + opt version Output version information and exit + -? no help Display extended usage information and exit + -! no more-help Extended usage information passed thru pager + -> opt save-opts Save the option state to a config file + -< Str load-opts Load options from a config file + - disabled as --no-load-opts - may appear multiple times Options are specified by doubled hyphens and their name or by a single hyphen and the flag character. + The following option preset mechanisms are supported: - reading file $HOME/.ntprc - reading file ./.ntprc - examining environment variables named NTPDC_* -Please send bug reports to: +please send bug reports to: http://bugs.ntp.org, bugs@@ntp.org @end example @exampleindent 4 diff --git a/ntpdc/ntpdc-opts.c b/ntpdc/ntpdc-opts.c index d2bad0848..c2bb29d3b 100644 --- a/ntpdc/ntpdc-opts.c +++ b/ntpdc/ntpdc-opts.c @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpdc-opts.c) * - * It has been AutoGen-ed January 2, 2017 at 12:05:04 PM by AutoGen 5.18.5 + * It has been AutoGen-ed March 21, 2017 at 09:32:34 AM by AutoGen 5.18.5 * From the definitions ntpdc-opts.def * and the template file options * @@ -50,7 +50,7 @@ extern "C" { #endif extern FILE * option_usage_fp; #define zCopyright (ntpdc_opt_strs+0) -#define zLicenseDescrip (ntpdc_opt_strs+341) +#define zLicenseDescrip (ntpdc_opt_strs+352) /* * global included definitions @@ -68,15 +68,15 @@ extern FILE * option_usage_fp; /** * static const strings for ntpdc options */ -static char const ntpdc_opt_strs[1911] = -/* 0 */ "ntpdc 4.2.8p9\n" +static char const ntpdc_opt_strs[1944] = +/* 0 */ "ntpdc 4.2.8p10-win-beta1\n" "Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n" "This is free software. It is licensed for use, modification and\n" "redistribution under the terms of the NTP License, copies of which\n" "can be seen at:\n" " \n" " \n\0" -/* 341 */ "Permission to use, copy, modify, and distribute this software and its\n" +/* 352 */ "Permission to use, copy, modify, and distribute this software and its\n" "documentation for any purpose with or without fee is hereby granted,\n" "provided that the above copyright notice appears in all copies and that\n" "both the copyright notice and this permission notice appear in supporting\n" @@ -86,67 +86,67 @@ static char const ntpdc_opt_strs[1911] = "Time Foundation makes no representations about the suitability this\n" "software for any purpose. It is provided \"as is\" without express or\n" "implied warranty.\n\0" -/* 1009 */ "Force IPv4 DNS name resolution\0" -/* 1040 */ "IPV4\0" -/* 1045 */ "ipv4\0" -/* 1050 */ "Force IPv6 DNS name resolution\0" -/* 1081 */ "IPV6\0" -/* 1086 */ "ipv6\0" -/* 1091 */ "run a command and exit\0" -/* 1114 */ "COMMAND\0" -/* 1122 */ "command\0" -/* 1130 */ "Increase debug verbosity level\0" -/* 1161 */ "DEBUG_LEVEL\0" -/* 1173 */ "debug-level\0" -/* 1185 */ "Set the debug verbosity level\0" -/* 1215 */ "SET_DEBUG_LEVEL\0" -/* 1231 */ "set-debug-level\0" -/* 1247 */ "Force ntpq to operate in interactive mode\0" -/* 1289 */ "INTERACTIVE\0" -/* 1301 */ "interactive\0" -/* 1313 */ "Print a list of the peers\0" -/* 1339 */ "LISTPEERS\0" -/* 1349 */ "listpeers\0" -/* 1359 */ "numeric host addresses\0" -/* 1382 */ "NUMERIC\0" -/* 1390 */ "numeric\0" -/* 1398 */ "PEERS\0" -/* 1404 */ "peers\0" -/* 1410 */ "Show a list of the peers\0" -/* 1435 */ "SHOWPEERS\0" -/* 1445 */ "showpeers\0" -/* 1455 */ "display extended usage information and exit\0" -/* 1499 */ "help\0" -/* 1504 */ "extended usage information passed thru pager\0" -/* 1549 */ "more-help\0" -/* 1559 */ "output version information and exit\0" -/* 1595 */ "version\0" -/* 1603 */ "save the option state to a config file\0" -/* 1642 */ "save-opts\0" -/* 1652 */ "load options from a config file\0" -/* 1684 */ "LOAD_OPTS\0" -/* 1694 */ "no-load-opts\0" -/* 1707 */ "no\0" -/* 1710 */ "NTPDC\0" -/* 1716 */ "ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p9\n" +/* 1020 */ "Force IPv4 DNS name resolution\0" +/* 1051 */ "IPV4\0" +/* 1056 */ "ipv4\0" +/* 1061 */ "Force IPv6 DNS name resolution\0" +/* 1092 */ "IPV6\0" +/* 1097 */ "ipv6\0" +/* 1102 */ "run a command and exit\0" +/* 1125 */ "COMMAND\0" +/* 1133 */ "command\0" +/* 1141 */ "Increase debug verbosity level\0" +/* 1172 */ "DEBUG_LEVEL\0" +/* 1184 */ "debug-level\0" +/* 1196 */ "Set the debug verbosity level\0" +/* 1226 */ "SET_DEBUG_LEVEL\0" +/* 1242 */ "set-debug-level\0" +/* 1258 */ "Force ntpq to operate in interactive mode\0" +/* 1300 */ "INTERACTIVE\0" +/* 1312 */ "interactive\0" +/* 1324 */ "Print a list of the peers\0" +/* 1350 */ "LISTPEERS\0" +/* 1360 */ "listpeers\0" +/* 1370 */ "numeric host addresses\0" +/* 1393 */ "NUMERIC\0" +/* 1401 */ "numeric\0" +/* 1409 */ "PEERS\0" +/* 1415 */ "peers\0" +/* 1421 */ "Show a list of the peers\0" +/* 1446 */ "SHOWPEERS\0" +/* 1456 */ "showpeers\0" +/* 1466 */ "display extended usage information and exit\0" +/* 1510 */ "help\0" +/* 1515 */ "extended usage information passed thru pager\0" +/* 1560 */ "more-help\0" +/* 1570 */ "output version information and exit\0" +/* 1606 */ "version\0" +/* 1614 */ "save the option state to a config file\0" +/* 1653 */ "save-opts\0" +/* 1663 */ "load options from a config file\0" +/* 1695 */ "LOAD_OPTS\0" +/* 1705 */ "no-load-opts\0" +/* 1718 */ "no\0" +/* 1721 */ "NTPDC\0" +/* 1727 */ "ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p10-win-beta1\n" "Usage: %s [ - [] | --[{=| }] ]... [ host ...]\n\0" -/* 1846 */ "$HOME\0" -/* 1852 */ ".\0" -/* 1854 */ ".ntprc\0" -/* 1861 */ "http://bugs.ntp.org, bugs@ntp.org\0" -/* 1895 */ "\n\0" -/* 1897 */ "ntpdc 4.2.8p9"; +/* 1868 */ "$HOME\0" +/* 1874 */ ".\0" +/* 1876 */ ".ntprc\0" +/* 1883 */ "http://bugs.ntp.org, bugs@ntp.org\0" +/* 1917 */ "\n\0" +/* 1919 */ "ntpdc 4.2.8p10-win-beta1"; /** * ipv4 option description with * "Must also have options" and "Incompatible options": */ /** Descriptive text for the ipv4 option */ -#define IPV4_DESC (ntpdc_opt_strs+1009) +#define IPV4_DESC (ntpdc_opt_strs+1020) /** Upper-cased name for the ipv4 option */ -#define IPV4_NAME (ntpdc_opt_strs+1040) +#define IPV4_NAME (ntpdc_opt_strs+1051) /** Name string for the ipv4 option */ -#define IPV4_name (ntpdc_opt_strs+1045) +#define IPV4_name (ntpdc_opt_strs+1056) /** Other options that appear in conjunction with the ipv4 option */ static int const aIpv4CantList[] = { INDEX_OPT_IPV6, NO_EQUIVALENT }; @@ -158,11 +158,11 @@ static int const aIpv4CantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the ipv6 option */ -#define IPV6_DESC (ntpdc_opt_strs+1050) +#define IPV6_DESC (ntpdc_opt_strs+1061) /** Upper-cased name for the ipv6 option */ -#define IPV6_NAME (ntpdc_opt_strs+1081) +#define IPV6_NAME (ntpdc_opt_strs+1092) /** Name string for the ipv6 option */ -#define IPV6_name (ntpdc_opt_strs+1086) +#define IPV6_name (ntpdc_opt_strs+1097) /** Other options that appear in conjunction with the ipv6 option */ static int const aIpv6CantList[] = { INDEX_OPT_IPV4, NO_EQUIVALENT }; @@ -173,11 +173,11 @@ static int const aIpv6CantList[] = { * command option description: */ /** Descriptive text for the command option */ -#define COMMAND_DESC (ntpdc_opt_strs+1091) +#define COMMAND_DESC (ntpdc_opt_strs+1102) /** Upper-cased name for the command option */ -#define COMMAND_NAME (ntpdc_opt_strs+1114) +#define COMMAND_NAME (ntpdc_opt_strs+1125) /** Name string for the command option */ -#define COMMAND_name (ntpdc_opt_strs+1122) +#define COMMAND_name (ntpdc_opt_strs+1133) /** Compiled in flag settings for the command option */ #define COMMAND_FLAGS (OPTST_DISABLED | OPTST_STACKED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -186,11 +186,11 @@ static int const aIpv6CantList[] = { * debug-level option description: */ /** Descriptive text for the debug-level option */ -#define DEBUG_LEVEL_DESC (ntpdc_opt_strs+1130) +#define DEBUG_LEVEL_DESC (ntpdc_opt_strs+1141) /** Upper-cased name for the debug-level option */ -#define DEBUG_LEVEL_NAME (ntpdc_opt_strs+1161) +#define DEBUG_LEVEL_NAME (ntpdc_opt_strs+1172) /** Name string for the debug-level option */ -#define DEBUG_LEVEL_name (ntpdc_opt_strs+1173) +#define DEBUG_LEVEL_name (ntpdc_opt_strs+1184) /** Compiled in flag settings for the debug-level option */ #define DEBUG_LEVEL_FLAGS (OPTST_DISABLED) @@ -198,11 +198,11 @@ static int const aIpv6CantList[] = { * set-debug-level option description: */ /** Descriptive text for the set-debug-level option */ -#define SET_DEBUG_LEVEL_DESC (ntpdc_opt_strs+1185) +#define SET_DEBUG_LEVEL_DESC (ntpdc_opt_strs+1196) /** Upper-cased name for the set-debug-level option */ -#define SET_DEBUG_LEVEL_NAME (ntpdc_opt_strs+1215) +#define SET_DEBUG_LEVEL_NAME (ntpdc_opt_strs+1226) /** Name string for the set-debug-level option */ -#define SET_DEBUG_LEVEL_name (ntpdc_opt_strs+1231) +#define SET_DEBUG_LEVEL_name (ntpdc_opt_strs+1242) /** Compiled in flag settings for the set-debug-level option */ #define SET_DEBUG_LEVEL_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -212,11 +212,11 @@ static int const aIpv6CantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the interactive option */ -#define INTERACTIVE_DESC (ntpdc_opt_strs+1247) +#define INTERACTIVE_DESC (ntpdc_opt_strs+1258) /** Upper-cased name for the interactive option */ -#define INTERACTIVE_NAME (ntpdc_opt_strs+1289) +#define INTERACTIVE_NAME (ntpdc_opt_strs+1300) /** Name string for the interactive option */ -#define INTERACTIVE_name (ntpdc_opt_strs+1301) +#define INTERACTIVE_name (ntpdc_opt_strs+1312) /** Other options that appear in conjunction with the interactive option */ static int const aInteractiveCantList[] = { INDEX_OPT_COMMAND, @@ -231,11 +231,11 @@ static int const aInteractiveCantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the listpeers option */ -#define LISTPEERS_DESC (ntpdc_opt_strs+1313) +#define LISTPEERS_DESC (ntpdc_opt_strs+1324) /** Upper-cased name for the listpeers option */ -#define LISTPEERS_NAME (ntpdc_opt_strs+1339) +#define LISTPEERS_NAME (ntpdc_opt_strs+1350) /** Name string for the listpeers option */ -#define LISTPEERS_name (ntpdc_opt_strs+1349) +#define LISTPEERS_name (ntpdc_opt_strs+1360) /** Other options that appear in conjunction with the listpeers option */ static int const aListpeersCantList[] = { INDEX_OPT_COMMAND, NO_EQUIVALENT }; @@ -246,11 +246,11 @@ static int const aListpeersCantList[] = { * numeric option description: */ /** Descriptive text for the numeric option */ -#define NUMERIC_DESC (ntpdc_opt_strs+1359) +#define NUMERIC_DESC (ntpdc_opt_strs+1370) /** Upper-cased name for the numeric option */ -#define NUMERIC_NAME (ntpdc_opt_strs+1382) +#define NUMERIC_NAME (ntpdc_opt_strs+1393) /** Name string for the numeric option */ -#define NUMERIC_name (ntpdc_opt_strs+1390) +#define NUMERIC_name (ntpdc_opt_strs+1401) /** Compiled in flag settings for the numeric option */ #define NUMERIC_FLAGS (OPTST_DISABLED) @@ -259,11 +259,11 @@ static int const aListpeersCantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the peers option */ -#define PEERS_DESC (ntpdc_opt_strs+1313) +#define PEERS_DESC (ntpdc_opt_strs+1324) /** Upper-cased name for the peers option */ -#define PEERS_NAME (ntpdc_opt_strs+1398) +#define PEERS_NAME (ntpdc_opt_strs+1409) /** Name string for the peers option */ -#define PEERS_name (ntpdc_opt_strs+1404) +#define PEERS_name (ntpdc_opt_strs+1415) /** Other options that appear in conjunction with the peers option */ static int const aPeersCantList[] = { INDEX_OPT_COMMAND, NO_EQUIVALENT }; @@ -275,11 +275,11 @@ static int const aPeersCantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the showpeers option */ -#define SHOWPEERS_DESC (ntpdc_opt_strs+1410) +#define SHOWPEERS_DESC (ntpdc_opt_strs+1421) /** Upper-cased name for the showpeers option */ -#define SHOWPEERS_NAME (ntpdc_opt_strs+1435) +#define SHOWPEERS_NAME (ntpdc_opt_strs+1446) /** Name string for the showpeers option */ -#define SHOWPEERS_name (ntpdc_opt_strs+1445) +#define SHOWPEERS_name (ntpdc_opt_strs+1456) /** Other options that appear in conjunction with the showpeers option */ static int const aShowpeersCantList[] = { INDEX_OPT_COMMAND, NO_EQUIVALENT }; @@ -289,11 +289,11 @@ static int const aShowpeersCantList[] = { /* * Help/More_Help/Version option descriptions: */ -#define HELP_DESC (ntpdc_opt_strs+1455) -#define HELP_name (ntpdc_opt_strs+1499) +#define HELP_DESC (ntpdc_opt_strs+1466) +#define HELP_name (ntpdc_opt_strs+1510) #ifdef HAVE_WORKING_FORK -#define MORE_HELP_DESC (ntpdc_opt_strs+1504) -#define MORE_HELP_name (ntpdc_opt_strs+1549) +#define MORE_HELP_DESC (ntpdc_opt_strs+1515) +#define MORE_HELP_name (ntpdc_opt_strs+1560) #define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT) #else #define MORE_HELP_DESC HELP_DESC @@ -306,14 +306,14 @@ static int const aShowpeersCantList[] = { # define VER_FLAGS (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \ OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT) #endif -#define VER_DESC (ntpdc_opt_strs+1559) -#define VER_name (ntpdc_opt_strs+1595) -#define SAVE_OPTS_DESC (ntpdc_opt_strs+1603) -#define SAVE_OPTS_name (ntpdc_opt_strs+1642) -#define LOAD_OPTS_DESC (ntpdc_opt_strs+1652) -#define LOAD_OPTS_NAME (ntpdc_opt_strs+1684) -#define NO_LOAD_OPTS_name (ntpdc_opt_strs+1694) -#define LOAD_OPTS_pfx (ntpdc_opt_strs+1707) +#define VER_DESC (ntpdc_opt_strs+1570) +#define VER_name (ntpdc_opt_strs+1606) +#define SAVE_OPTS_DESC (ntpdc_opt_strs+1614) +#define SAVE_OPTS_name (ntpdc_opt_strs+1653) +#define LOAD_OPTS_DESC (ntpdc_opt_strs+1663) +#define LOAD_OPTS_NAME (ntpdc_opt_strs+1695) +#define NO_LOAD_OPTS_name (ntpdc_opt_strs+1705) +#define LOAD_OPTS_pfx (ntpdc_opt_strs+1718) #define LOAD_OPTS_name (NO_LOAD_OPTS_name + 3) /** * Declare option callback procedures @@ -522,24 +522,24 @@ static tOptDesc optDesc[OPTION_CT] = { /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** Reference to the upper cased version of ntpdc. */ -#define zPROGNAME (ntpdc_opt_strs+1710) +#define zPROGNAME (ntpdc_opt_strs+1721) /** Reference to the title line for ntpdc usage. */ -#define zUsageTitle (ntpdc_opt_strs+1716) +#define zUsageTitle (ntpdc_opt_strs+1727) /** ntpdc configuration file name. */ -#define zRcName (ntpdc_opt_strs+1854) +#define zRcName (ntpdc_opt_strs+1876) /** Directories to search for ntpdc config files. */ static char const * const apzHomeList[3] = { - ntpdc_opt_strs+1846, - ntpdc_opt_strs+1852, + ntpdc_opt_strs+1868, + ntpdc_opt_strs+1874, NULL }; /** The ntpdc program bug email address. */ -#define zBugsAddr (ntpdc_opt_strs+1861) +#define zBugsAddr (ntpdc_opt_strs+1883) /** Clarification/explanation of what ntpdc does. */ -#define zExplain (ntpdc_opt_strs+1895) +#define zExplain (ntpdc_opt_strs+1917) /** Extra detail explaining what ntpdc does. */ #define zDetail (NULL) /** The full version string for ntpdc. */ -#define zFullVersion (ntpdc_opt_strs+1897) +#define zFullVersion (ntpdc_opt_strs+1919) /* extracted from optcode.tlib near line 364 */ #if defined(ENABLE_NLS) @@ -796,7 +796,7 @@ static void bogus_function(void) { translate option names. */ /* referenced via ntpdcOptions.pzCopyright */ - puts(_("ntpdc 4.2.8p9\n\ + puts(_("ntpdc 4.2.8p10-win-beta1\n\ Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n\ This is free software. It is licensed for use, modification and\n\ redistribution under the terms of the NTP License, copies of which\n\ @@ -862,14 +862,14 @@ implied warranty.\n")); puts(_("load options from a config file")); /* referenced via ntpdcOptions.pzUsageTitle */ - puts(_("ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p9\n\ + puts(_("ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p10-win-beta1\n\ Usage: %s [ - [] | --[{=| }] ]... [ host ...]\n")); /* referenced via ntpdcOptions.pzExplain */ puts(_("\n")); /* referenced via ntpdcOptions.pzFullVersion */ - puts(_("ntpdc 4.2.8p9")); + puts(_("ntpdc 4.2.8p10-win-beta1")); /* referenced via ntpdcOptions.pzFullUsage */ puts(_("<<>>")); diff --git a/ntpdc/ntpdc-opts.h b/ntpdc/ntpdc-opts.h index 0994b9ca5..635116435 100644 --- a/ntpdc/ntpdc-opts.h +++ b/ntpdc/ntpdc-opts.h @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpdc-opts.h) * - * It has been AutoGen-ed January 2, 2017 at 12:05:04 PM by AutoGen 5.18.5 + * It has been AutoGen-ed March 21, 2017 at 09:32:33 AM by AutoGen 5.18.5 * From the definitions ntpdc-opts.def * and the template file options * @@ -83,9 +83,9 @@ typedef enum { /** count of all options for ntpdc */ #define OPTION_CT 15 /** ntpdc version */ -#define NTPDC_VERSION "4.2.8p9" +#define NTPDC_VERSION "4.2.8p10-win-beta1" /** Full ntpdc version text */ -#define NTPDC_FULL_VERSION "ntpdc 4.2.8p9" +#define NTPDC_FULL_VERSION "ntpdc 4.2.8p10-win-beta1" /** * Interface defines for all options. Replace "n" with the UPPER_CASED diff --git a/ntpdc/ntpdc.1ntpdcman b/ntpdc/ntpdc.1ntpdcman index 05d2c5dc9..d19574af7 100644 --- a/ntpdc/ntpdc.1ntpdcman +++ b/ntpdc/ntpdc.1ntpdcman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntpdc 1ntpdcman "02 Jan 2017" "4.2.8p9" "User Commands" +.TH ntpdc 1ntpdcman "21 Mar 2017" "4.2.8p10-win-beta1" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-TiaGbQ/ag-pjaO_P) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:11 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:32:41 AM by AutoGen 5.18.5 .\" From the definitions ntpdc-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/ntpdc/ntpdc.1ntpdcmdoc b/ntpdc/ntpdc.1ntpdcmdoc index 69b07f6cf..da61a9995 100644 --- a/ntpdc/ntpdc.1ntpdcmdoc +++ b/ntpdc/ntpdc.1ntpdcmdoc @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTPDC 1ntpdcmdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntpdc-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:08 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:32:49 AM by AutoGen 5.18.5 .\" From the definitions ntpdc-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/ntpdc/ntpdc.html b/ntpdc/ntpdc.html index 25d874bc9..3ab899ac5 100644 --- a/ntpdc/ntpdc.html +++ b/ntpdc/ntpdc.html @@ -1,225 +1,171 @@ - - - + -ntpdc: NTPD Control User’s Manual - - - - - - - - - - - - +ntpdc: NTPD Control User's Manual + + + + + + + - - -

      ntpdc: NTPD Control User’s Manual

      - - - - - - -
      -

      -Next: , Previous: , Up: (dir)  

      + +

      ntpdc: NTPD Control User's Manual

      +
      +


      +Next: , +Previous: (dir), +Up: (dir) +
      - -

      ntpdc: NTPD Control User Manual

      -

      This document describes the use of the NTP Project’s ntpdc program, +

      ntpdc: NTPD Control User Manual

      + +

      This document describes the use of the NTP Project's ntpdc program, that can be used to query a Network Time Protocol (NTP) server and display the time offset of the system clock relative to the server clock. Run as root, it can correct the system clock to this offset as well. It can be run as an interactive command or from a cron job. -

      -

      This document applies to version 4.2.8p9-win of ntpdc. -

      -

      The program implements the SNTP protocol as defined by RFC 5905, the NTPv4 + +

      This document applies to version 4.2.8p10-win-beta1 of ntpdc. + +

      The program implements the SNTP protocol as defined by RFC 5905, the NTPv4 IETF specification. -

      - -

      Short Table of Contents

      -
      -
        -
      • 1 Description
      • +
        +

        Short Contents

        +
        + - - - - - - -
        +
        +


        -
        -

        -Next: , Up: Top  

        +
        - -

        1 Description

        + + +

        Description

        By default, ntpdc writes the local data and time (i.e., not UTC) to the standard output in the format: -

        -
        -
        1996-10-15 20:17:25.123 (+0800) +4.567 +/- 0.089 secs
        -
        -

        where +

             1996-10-15 20:17:25.123 (+0800) +4.567 +/- 0.089 secs
        +
        +

        where YYYY-MM-DD HH:MM:SS.SUBSEC is the local date and time, (+0800) is the local timezone adjustment (so we would add 8 hours and 0 minutes to convert the reported local time to UTC), and the +4.567 +/- 0.089 secs indicates the time offset and error bound of the system clock relative to the server clock. -

        -
        + +
        +


        -
        -

        -Next: , Previous: , Up: ntpdc Description  

        +
        - -

        1.1 Invoking ntpdc

        - - +

        Invoking ntpdc

        +

        -

        ntpdc -is deprecated. +

        ntpdc +is deprecated. Please use ntpq(1ntpqmdoc) instead - it can do everything ntpdc used to do, and it does so using a much more sane interface. -

        -

        ntpdc + +

        ntpdc is a utility program used to query ntpd(1ntpdmdoc) about its -current state and to request changes in that state. -It uses NTP mode 7 control message formats described in the source code. +current state and to request changes in that state. +It uses NTP mode 7 control message formats described in the source code. The program may be run either in interactive mode or controlled using command line -arguments. +arguments. Extensive state and statistics information is available through the ntpdc -interface. +interface. In addition, nearly all the configuration options which can be specified at startup using -ntpd’s configuration file may also be specified at run time using +ntpd's configuration file may also be specified at run time using ntpdc -

        -

        This section was generated by AutoGen, -using the agtexi-cmd template and the option descriptions for the ntpdc program. + +

        This section was generated by AutoGen, +using the agtexi-cmd template and the option descriptions for the ntpdc program. This software is released under the NTP license, <http://ntp.org/license>. -

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

        -Next: , Up: ntpdc Invocation  

        + + + +
        +


        +Next: , +Up: ntpdc Invocation +
        - -

        1.1.1 ntpdc help/usage (--help)

        - - -

        This is the automatically generated usage text for ntpdc. -

        -

        The text printed is the same whether selected with the help option -(--help) or the more-help option (--more-help). more-help will print -the usage text by passing it through a pager program. + +

        ntpdc help/usage (--help)

        + +

        +This is the automatically generated usage text for ntpdc. + +

        The text printed is the same whether selected with the help option +(--help) or the more-help option (--more-help). more-help will print +the usage text by passing it through a pager program. more-help is disabled on platforms without a working fork(2) function. The PAGER environment variable is -used to select the program, defaulting to more. Both will exit +used to select the program, defaulting to more. Both will exit with a status code of 0. -

        -
        -
        ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p9
        -Usage:  ntpdc [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]
        +
        +
        ntpdc - vendor-specific NTPD control program - Ver. 4.2.7p245
        +USAGE:  ntpdc [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]
           Flg Arg Option-Name    Description
            -4 no  ipv4           Force IPv4 DNS name resolution
        -                                - prohibits the option 'ipv6'
        +                                - prohibits these options:
        +                                ipv6
            -6 no  ipv6           Force IPv6 DNS name resolution
        -                                - prohibits the option 'ipv4'
        +                                - prohibits these options:
        +                                ipv4
            -c Str command        run a command and exit
                                         - may appear multiple times
            -d no  debug-level    Increase debug verbosity level
                                         - may appear multiple times
        -   -D Num set-debug-level Set the debug verbosity level
        +   -D Str set-debug-level Set the debug verbosity level
                                         - may appear multiple times
            -i no  interactive    Force ntpq to operate in interactive mode
                                         - prohibits these options:
        @@ -228,357 +174,348 @@ Usage:  ntpdc [ -<flag> [<val>] | --<name>[{=| }<val>] ]
                                         peers
                                         showpeers
            -l no  listpeers      Print a list of the peers
        -                                - prohibits the option 'command'
        +                                - prohibits these options:
        +                                command
            -n no  numeric        numeric host addresses
            -p no  peers          Print a list of the peers
        -                                - prohibits the option 'command'
        +                                - prohibits these options:
        +                                command
            -s no  showpeers      Show a list of the peers
        -                                - prohibits the option 'command'
        -      opt version        output version information and exit
        -   -? no  help           display extended usage information and exit
        -   -! no  more-help      extended usage information passed thru pager
        -   -> opt save-opts      save the option state to a config file
        -   -< Str load-opts      load options from a config file
        -                                - disabled as '--no-load-opts'
        +                                - prohibits these options:
        +                                command
        +      opt version        Output version information and exit
        +   -? no  help           Display extended usage information and exit
        +   -! no  more-help      Extended usage information passed thru pager
        +   -> opt save-opts      Save the option state to a config file
        +   -< Str load-opts      Load options from a config file
        +                                - disabled as --no-load-opts
                                         - may appear multiple times
         
         Options are specified by doubled hyphens and their name or by a single
         hyphen and the flag character.
         
         
        +
         The following option preset mechanisms are supported:
          - reading file $HOME/.ntprc
          - reading file ./.ntprc
          - examining environment variables named NTPDC_*
         
        -Please send bug reports to:  <http://bugs.ntp.org, bugs@ntp.org>
        -
        - -
        - -
        -

        -Next: , Previous: , Up: ntpdc Invocation  

        +please send bug reports to: http://bugs.ntp.org, bugs@ntp.org + +
        +


        +Next: , +Previous: ntpdc usage, +Up: ntpdc Invocation +
        - -

        1.1.2 ipv4 option (-4)

        - - -

        This is the “force ipv4 dns name resolution” option. -

        -

        This option has some usage constraints. It: -

          -
        • must not appear in combination with any of the following options: -ipv6. -
        - -

        Force DNS resolution of following host names on the command line -to the IPv4 namespace. -


        - -
        -

        -Next: , Previous: , Up: ntpdc Invocation  

        + +

        ipv4 option (-4)

        + +

        +This is the “force ipv4 dns name resolution” option. + +

        This option has some usage constraints. It: +

          +
        • must not appear in combination with any of the following options: +ipv6. +
        + +

        Force DNS resolution of following host names on the command line +to the IPv4 namespace. +

        +


        +Next: , +Previous: ntpdc ipv4, +Up: ntpdc Invocation +
        - -

        1.1.3 ipv6 option (-6)

        - - -

        This is the “force ipv6 dns name resolution” option. -

        -

        This option has some usage constraints. It: -

          -
        • must not appear in combination with any of the following options: -ipv4. -
        - -

        Force DNS resolution of following host names on the command line -to the IPv6 namespace. -


        - -
        -

        -Next: , Previous: , Up: ntpdc Invocation  

        + +

        ipv6 option (-6)

        + +

        +This is the “force ipv6 dns name resolution” option. + +

        This option has some usage constraints. It: +

          +
        • must not appear in combination with any of the following options: +ipv4. +
        + +

        Force DNS resolution of following host names on the command line +to the IPv6 namespace. +

        +


        +Next: , +Previous: ntpdc ipv6, +Up: ntpdc Invocation +
        - -

        1.1.4 command option (-c)

        - - -

        This is the “run a command and exit” option. -This option takes a string argument cmd. -

        -

        This option has some usage constraints. It: -

          -
        • may appear an unlimited number of times. -
        - -

        The following argument is interpreted as an interactive format command + +

        command option (-c)

        + +

        +This is the “run a command and exit” option. +This option takes a string argument cmd. + +

        This option has some usage constraints. It: +

          +
        • may appear an unlimited number of times. +
        + +

        The following argument is interpreted as an interactive format command and is added to the list of commands to be executed on the specified -host(s). -


        - -
        -

        -Next: , Previous: , Up: ntpdc Invocation  

        +host(s). +
        +


        +Next: , +Previous: ntpdc command, +Up: ntpdc Invocation +
        - -

        1.1.5 interactive option (-i)

        - - -

        This is the “force ntpq to operate in interactive mode” option. -

        -

        This option has some usage constraints. It: -

          -
        • must not appear in combination with any of the following options: -command, listpeers, peers, showpeers. -
        - -

        Force ntpq to operate in interactive mode. Prompts will be written -to the standard output and commands read from the standard input. -


        - -
        -

        -Next: , Previous: , Up: ntpdc Invocation  

        + +

        interactive option (-i)

        + +

        +This is the “force ntpq to operate in interactive mode” option. + +

        This option has some usage constraints. It: +

          +
        • must not appear in combination with any of the following options: +command, listpeers, peers, showpeers. +
        + +

        Force ntpq to operate in interactive mode. Prompts will be written +to the standard output and commands read from the standard input. +

        +


        +Next: , +Previous: ntpdc interactive, +Up: ntpdc Invocation +
        - -

        1.1.6 listpeers option (-l)

        - - -

        This is the “print a list of the peers” option. -

        -

        This option has some usage constraints. It: -

          -
        • must not appear in combination with any of the following options: -command. -
        - -

        Print a list of the peers known to the server as well as a summary of -their state. This is equivalent to the ’listpeers’ interactive command. -


        - -
        -

        -Next: , Previous: , Up: ntpdc Invocation  

        + +

        listpeers option (-l)

        + +

        +This is the “print a list of the peers” option. + +

        This option has some usage constraints. It: +

          +
        • must not appear in combination with any of the following options: +command. +
        + +

        Print a list of the peers known to the server as well as a summary of +their state. This is equivalent to the 'listpeers' interactive command. +

        +


        +Next: , +Previous: ntpdc listpeers, +Up: ntpdc Invocation +
        - -

        1.1.7 numeric option (-n)

        - -

        This is the “numeric host addresses” option. +

        numeric option (-n)

        + +

        +This is the “numeric host addresses” option. Output all host addresses in dotted-quad numeric format rather than converting to the canonical host names. -


        - -
        -

        -Next: , Previous: , Up: ntpdc Invocation  

        +
        +


        +Next: , +Previous: ntpdc numeric, +Up: ntpdc Invocation +
        - -

        1.1.8 peers option (-p)

        - - -

        This is the “print a list of the peers” option. -

        -

        This option has some usage constraints. It: -

          -
        • must not appear in combination with any of the following options: -command. -
        - -

        Print a list of the peers known to the server as well as a summary -of their state. This is equivalent to the ’peers’ interactive command. -


        - -
        -

        -Next: , Previous: , Up: ntpdc Invocation  

        + +

        peers option (-p)

        + +

        +This is the “print a list of the peers” option. + +

        This option has some usage constraints. It: +

          +
        • must not appear in combination with any of the following options: +command. +
        + +

        Print a list of the peers known to the server as well as a summary +of their state. This is equivalent to the 'peers' interactive command. +

        +


        +Next: , +Previous: ntpdc peers, +Up: ntpdc Invocation +
        - -

        1.1.9 showpeers option (-s)

        - - -

        This is the “show a list of the peers” option. -

        -

        This option has some usage constraints. It: -

          -
        • must not appear in combination with any of the following options: -command. -
        - -

        Print a list of the peers known to the server as well as a summary -of their state. This is equivalent to the ’dmpeers’ interactive command. -

        - -
        - -
        -

        -Next: , Previous: , Up: ntpdc Invocation  

        + +

        showpeers option (-s)

        + +

        +This is the “show a list of the peers” option. + +

        This option has some usage constraints. It: +

          +
        • must not appear in combination with any of the following options: +command. +
        + +

        Print a list of the peers known to the server as well as a summary +of their state. This is equivalent to the 'dmpeers' interactive command. + +

        +


        +Next: , +Previous: ntpdc showpeers, +Up: ntpdc Invocation +
        - -

        1.1.10 presetting/configuring ntpdc

        + +

        presetting/configuring ntpdc

        Any option that is not marked as not presettable may be preset by -loading values from configuration ("rc" or "ini") files, and values from environment variables named NTPDC and NTPDC_<OPTION_NAME>. <OPTION_NAME> must be one of -the options listed above in upper case and segmented with underscores. +loading values from configuration ("rc" or "ini") files, and values from environment variables named NTPDC and NTPDC_<OPTION_NAME>. <OPTION_NAME> must be one of +the options listed above in upper case and segmented with underscores. The NTPDC variable will be tokenized and parsed like the command line. The remaining variables are tested for existence and their values are treated like option arguments. -

        - -

        libopts will search in 2 places for configuration files: -

          -
        • $HOME -
        • $PWD -
        -

        The environment variables HOME, and PWD -are expanded and replaced when ntpdc runs. -For any of these that are plain files, they are simply processed. -For any that are directories, then a file named .ntprc is searched for + +

        libopts will search in 2 places for configuration files: +

          +
        • $HOME +
        • $PWD +
        + The environment variables HOME, and PWD +are expanded and replaced when ntpdc runs. +For any of these that are plain files, they are simply processed. +For any that are directories, then a file named .ntprc is searched for within that directory and processed. -

        -

        Configuration files may be in a wide variety of formats. + +

        Configuration files may be in a wide variety of formats. The basic format is an option name followed by a value (argument) on the same line. Values may be separated from the option name with a colon, equal sign or simply white space. Values may be continued across multiple lines by escaping the newline with a backslash. -

        -

        Multiple programs may also share the same initialization file. + +

        Multiple programs may also share the same initialization file. Common options are collected at the top, followed by program specific segments. The segments are separated by lines like: -

        -
        [NTPDC]
        -
        -

        or by -

        -
        <?program ntpdc>
        -
        -

        Do not mix these styles within one configuration file. -

        -

        Compound values and carefully constructed string values may also be +

            [NTPDC]
        +
        +

        or by +

            <?program ntpdc>
        +
        +

        Do not mix these styles within one configuration file. + +

        Compound values and carefully constructed string values may also be specified using XML syntax: -

        -
        <option-name>
        -   <sub-opt>...&lt;...&gt;...</sub-opt>
        -</option-name>
        -
        -

        yielding an option-name.sub-opt string value of -

        -
        "...<...>..."
        -
        -

        AutoOpts does not track suboptions. You simply note that it is a +

            <option-name>
        +       <sub-opt>...&lt;...&gt;...</sub-opt>
        +    </option-name>
        +
        +

        yielding an option-name.sub-opt string value of +

            "...<...>..."
        +
        +

        AutoOpts does not track suboptions. You simply note that it is a hierarchicly valued option. AutoOpts does provide a means for searching the associated name/value pair list (see: optionFindValue). -

        -

        The command line options relating to configuration and/or usage help are: -

        - -

        version (-)

        + +

        The command line options relating to configuration and/or usage help are: + +

        version (-)

        Print the program version to standard out, optionally with licensing information, then exit 0. The optional argument specifies how much licensing -detail to provide. The default is to print just the version. The licensing infomation may be selected with an option argument. +detail to provide. The default is to print just the version. The licensing infomation may be selected with an option argument. Only the first letter of the argument is examined: -

        -
        -
        version
        -

        Only print the version. This is the default. -

        -
        copyright
        -

        Name the copyright usage licensing terms. -

        -
        verbose
        -

        Print the full copyright usage licensing terms. -

        + +
        +
        version
        Only print the version. This is the default. +
        copyright
        Name the copyright usage licensing terms. +
        verbose
        Print the full copyright usage licensing terms.
        -
        - -
        -

        -Next: , Previous: , Up: ntpdc Invocation  

        +
        +


        +Next: , +Previous: ntpdc config, +Up: ntpdc Invocation +
        - -

        1.1.11 ntpdc exit status

        + +

        ntpdc exit status

        One of the following exit values will be returned: -

        -
        0 (EXIT_SUCCESS)
        -

        Successful program execution. -

        -
        1 (EXIT_FAILURE)
        -

        The operation failed or the command syntax was not valid. -

        -
        66 (EX_NOINPUT)
        -

        A specified configuration file could not be loaded. -

        -
        70 (EX_SOFTWARE)
        -

        libopts had an internal operational error. Please report -it to autogen-users@lists.sourceforge.net. Thank you. -

        +
        +
        0 (EXIT_SUCCESS)
        Successful program execution. +
        1 (EXIT_FAILURE)
        The operation failed or the command syntax was not valid. +
        66 (EX_NOINPUT)
        A specified configuration file could not be loaded. +
        70 (EX_SOFTWARE)
        libopts had an internal operational error. Please report +it to autogen-users@lists.sourceforge.net. Thank you.
        -
        - -
        -

        -Next: , Previous: , Up: ntpdc Invocation  

        +
        +


        +Next: , +Previous: ntpdc exit status, +Up: ntpdc Invocation +
        - -

        1.1.12 ntpdc Usage

        -
        - -
        -

        -Next: , Previous: , Up: ntpdc Invocation  

        + +

        ntpdc Usage

        + +
        +


        +Next: , +Previous: ntpdc Usage, +Up: ntpdc Invocation +
        - -

        1.1.13 ntpdc See Also

        -
        - -
        -

        -Next: , Previous: , Up: ntpdc Invocation  

        + +

        ntpdc See Also

        + +
        +


        +Next: , +Previous: ntpdc See Also, +Up: ntpdc Invocation +
        - -

        1.1.14 ntpdc Authors

        -
        - -
        -

        -Previous: , Up: ntpdc Invocation  

        + +

        ntpdc Authors

        + +
        +


        +Previous: ntpdc Authors, +Up: ntpdc Invocation +
        - -

        1.1.15 ntpdc Bugs

        -
        +

        ntpdc Bugs

        + +
        +


        -
        -

        -Previous: , Up: ntpdc Description  

        +
        - -

        1.2 Usage

        + + +

        Usage

        The simplest use of this program is as an unprivileged command to -check the current time, offset, and error in the local clock. +check the current time, offset, and error in the local clock. For example: -

        -
        -
        ntpdc ntpserver.somewhere
        -
        -

        With suitable privilege, it can be run as a command or in a +

            ntpdc ntpserver.somewhere
        +
        +

        With suitable privilege, it can be run as a command or in a cron job to reset the local clock from a reliable server, like -the ntpdate and rdate commands. +the ntpdate and rdate commands. For example: -

        -
        -
        ntpdc -a ntpserver.somewhere
        -
        -
        - +
            ntpdc -a ntpserver.somewhere
        +
        + - - diff --git a/ntpdc/ntpdc.man.in b/ntpdc/ntpdc.man.in index f0c6ac1c7..e84dd00e8 100644 --- a/ntpdc/ntpdc.man.in +++ b/ntpdc/ntpdc.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntpdc @NTPDC_MS@ "02 Jan 2017" "4.2.8p9" "User Commands" +.TH ntpdc @NTPDC_MS@ "21 Mar 2017" "4.2.8p10-win-beta1" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-TiaGbQ/ag-pjaO_P) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:11 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:32:41 AM by AutoGen 5.18.5 .\" From the definitions ntpdc-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/ntpdc/ntpdc.mdoc.in b/ntpdc/ntpdc.mdoc.in index eaf03877e..42fa2d033 100644 --- a/ntpdc/ntpdc.mdoc.in +++ b/ntpdc/ntpdc.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTPDC @NTPDC_MS@ User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntpdc-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:08 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:32:49 AM by AutoGen 5.18.5 .\" From the definitions ntpdc-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/ntpq/invoke-ntpq.texi b/ntpq/invoke-ntpq.texi index 2719be268..03eb13e82 100644 --- a/ntpq/invoke-ntpq.texi +++ b/ntpq/invoke-ntpq.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-ntpq.texi) # -# It has been AutoGen-ed January 2, 2017 at 12:05:22 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:33:19 AM by AutoGen 5.18.5 # From the definitions ntpq-opts.def # and the template file agtexi-cmd.tpl @end ignore @@ -848,35 +848,36 @@ with a status code of 0. @exampleindent 0 @example -ntpq - standard NTP query program - Ver. 4.2.8p9 -Usage: ntpq [ - [] | --[@{=| @}] ]... [ host ...] +ntpq - standard NTP query program - Ver. 4.2.7p245 +USAGE: ntpq [ - [] | --[@{=| @}] ]... [ host ...] Flg Arg Option-Name Description -4 no ipv4 Force IPv4 DNS name resolution - - prohibits the option 'ipv6' + - prohibits these options: + ipv6 -6 no ipv6 Force IPv6 DNS name resolution - - prohibits the option 'ipv4' + - prohibits these options: + ipv4 -c Str command run a command and exit - may appear multiple times -d no debug-level Increase debug verbosity level - may appear multiple times - -D Num set-debug-level Set the debug verbosity level + -D Str set-debug-level Set the debug verbosity level - may appear multiple times + -p no peers Print a list of the peers + - prohibits these options: + interactive -i no interactive Force ntpq to operate in interactive mode - prohibits these options: command peers -n no numeric numeric host addresses no old-rv Always output status line with readvar - -p no peers Print a list of the peers - - prohibits the option 'interactive' - -r KWd refid Set default display type for S2+ refids - -w no wide Display the full 'remote' value - opt version output version information and exit - -? no help display extended usage information and exit - -! no more-help extended usage information passed thru pager - -> opt save-opts save the option state to a config file - -< Str load-opts load options from a config file - - disabled as '--no-load-opts' + opt version Output version information and exit + -? no help Display extended usage information and exit + -! no more-help Extended usage information passed thru pager + -> opt save-opts Save the option state to a config file + -< Str load-opts Load options from a config file + - disabled as --no-load-opts - may appear multiple times Options are specified by doubled hyphens and their name or by a single @@ -887,11 +888,7 @@ The following option preset mechanisms are supported: - reading file ./.ntprc - examining environment variables named NTPQ_* -The valid "refid" option keywords are: - hash ipv4 - or an integer from 0 through 1 - -Please send bug reports to: +please send bug reports to: http://bugs.ntp.org, bugs@@ntp.org @end example @exampleindent 4 diff --git a/ntpq/ntpq-opts.c b/ntpq/ntpq-opts.c index f59bcdce6..1d9670a6d 100644 --- a/ntpq/ntpq-opts.c +++ b/ntpq/ntpq-opts.c @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpq-opts.c) * - * It has been AutoGen-ed January 2, 2017 at 12:05:13 PM by AutoGen 5.18.5 + * It has been AutoGen-ed March 21, 2017 at 09:32:56 AM by AutoGen 5.18.5 * From the definitions ntpq-opts.def * and the template file options * @@ -50,7 +50,7 @@ extern "C" { #endif extern FILE * option_usage_fp; #define zCopyright (ntpq_opt_strs+0) -#define zLicenseDescrip (ntpq_opt_strs+340) +#define zLicenseDescrip (ntpq_opt_strs+351) /* * global included definitions @@ -68,15 +68,15 @@ extern FILE * option_usage_fp; /** * static const strings for ntpq options */ -static char const ntpq_opt_strs[1982] = -/* 0 */ "ntpq 4.2.8p9\n" +static char const ntpq_opt_strs[2015] = +/* 0 */ "ntpq 4.2.8p10-win-beta1\n" "Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n" "This is free software. It is licensed for use, modification and\n" "redistribution under the terms of the NTP License, copies of which\n" "can be seen at:\n" " \n" " \n\0" -/* 340 */ "Permission to use, copy, modify, and distribute this software and its\n" +/* 351 */ "Permission to use, copy, modify, and distribute this software and its\n" "documentation for any purpose with or without fee is hereby granted,\n" "provided that the above copyright notice appears in all copies and that\n" "both the copyright notice and this permission notice appear in supporting\n" @@ -86,71 +86,71 @@ static char const ntpq_opt_strs[1982] = "Time Foundation makes no representations about the suitability this\n" "software for any purpose. It is provided \"as is\" without express or\n" "implied warranty.\n\0" -/* 1008 */ "Force IPv4 DNS name resolution\0" -/* 1039 */ "IPV4\0" -/* 1044 */ "ipv4\0" -/* 1049 */ "Force IPv6 DNS name resolution\0" -/* 1080 */ "IPV6\0" -/* 1085 */ "ipv6\0" -/* 1090 */ "run a command and exit\0" -/* 1113 */ "COMMAND\0" -/* 1121 */ "command\0" -/* 1129 */ "Increase debug verbosity level\0" -/* 1160 */ "DEBUG_LEVEL\0" -/* 1172 */ "debug-level\0" -/* 1184 */ "Set the debug verbosity level\0" -/* 1214 */ "SET_DEBUG_LEVEL\0" -/* 1230 */ "set-debug-level\0" -/* 1246 */ "Force ntpq to operate in interactive mode\0" -/* 1288 */ "INTERACTIVE\0" -/* 1300 */ "interactive\0" -/* 1312 */ "numeric host addresses\0" -/* 1335 */ "NUMERIC\0" -/* 1343 */ "numeric\0" -/* 1351 */ "Always output status line with readvar\0" -/* 1390 */ "OLD_RV\0" -/* 1397 */ "old-rv\0" -/* 1404 */ "Print a list of the peers\0" -/* 1430 */ "PEERS\0" -/* 1436 */ "peers\0" -/* 1442 */ "Set default display type for S2+ refids\0" -/* 1482 */ "REFID\0" -/* 1488 */ "refid\0" -/* 1494 */ "Display the full 'remote' value\0" -/* 1526 */ "WIDE\0" -/* 1531 */ "wide\0" -/* 1536 */ "display extended usage information and exit\0" -/* 1580 */ "help\0" -/* 1585 */ "extended usage information passed thru pager\0" -/* 1630 */ "more-help\0" -/* 1640 */ "output version information and exit\0" -/* 1676 */ "version\0" -/* 1684 */ "save the option state to a config file\0" -/* 1723 */ "save-opts\0" -/* 1733 */ "load options from a config file\0" -/* 1765 */ "LOAD_OPTS\0" -/* 1775 */ "no-load-opts\0" -/* 1788 */ "no\0" -/* 1791 */ "NTPQ\0" -/* 1796 */ "ntpq - standard NTP query program - Ver. 4.2.8p9\n" +/* 1019 */ "Force IPv4 DNS name resolution\0" +/* 1050 */ "IPV4\0" +/* 1055 */ "ipv4\0" +/* 1060 */ "Force IPv6 DNS name resolution\0" +/* 1091 */ "IPV6\0" +/* 1096 */ "ipv6\0" +/* 1101 */ "run a command and exit\0" +/* 1124 */ "COMMAND\0" +/* 1132 */ "command\0" +/* 1140 */ "Increase debug verbosity level\0" +/* 1171 */ "DEBUG_LEVEL\0" +/* 1183 */ "debug-level\0" +/* 1195 */ "Set the debug verbosity level\0" +/* 1225 */ "SET_DEBUG_LEVEL\0" +/* 1241 */ "set-debug-level\0" +/* 1257 */ "Force ntpq to operate in interactive mode\0" +/* 1299 */ "INTERACTIVE\0" +/* 1311 */ "interactive\0" +/* 1323 */ "numeric host addresses\0" +/* 1346 */ "NUMERIC\0" +/* 1354 */ "numeric\0" +/* 1362 */ "Always output status line with readvar\0" +/* 1401 */ "OLD_RV\0" +/* 1408 */ "old-rv\0" +/* 1415 */ "Print a list of the peers\0" +/* 1441 */ "PEERS\0" +/* 1447 */ "peers\0" +/* 1453 */ "Set default display type for S2+ refids\0" +/* 1493 */ "REFID\0" +/* 1499 */ "refid\0" +/* 1505 */ "Display the full 'remote' value\0" +/* 1537 */ "WIDE\0" +/* 1542 */ "wide\0" +/* 1547 */ "display extended usage information and exit\0" +/* 1591 */ "help\0" +/* 1596 */ "extended usage information passed thru pager\0" +/* 1641 */ "more-help\0" +/* 1651 */ "output version information and exit\0" +/* 1687 */ "version\0" +/* 1695 */ "save the option state to a config file\0" +/* 1734 */ "save-opts\0" +/* 1744 */ "load options from a config file\0" +/* 1776 */ "LOAD_OPTS\0" +/* 1786 */ "no-load-opts\0" +/* 1799 */ "no\0" +/* 1802 */ "NTPQ\0" +/* 1807 */ "ntpq - standard NTP query program - Ver. 4.2.8p10-win-beta1\n" "Usage: %s [ - [] | --[{=| }] ]... [ host ...]\n\0" -/* 1915 */ "$HOME\0" -/* 1921 */ ".\0" -/* 1923 */ ".ntprc\0" -/* 1930 */ "http://bugs.ntp.org, bugs@ntp.org\0" -/* 1964 */ "ntpq 4.2.8p9\0" -/* 1977 */ "hash"; +/* 1937 */ "$HOME\0" +/* 1943 */ ".\0" +/* 1945 */ ".ntprc\0" +/* 1952 */ "http://bugs.ntp.org, bugs@ntp.org\0" +/* 1986 */ "ntpq 4.2.8p10-win-beta1\0" +/* 2010 */ "hash"; /** * ipv4 option description with * "Must also have options" and "Incompatible options": */ /** Descriptive text for the ipv4 option */ -#define IPV4_DESC (ntpq_opt_strs+1008) +#define IPV4_DESC (ntpq_opt_strs+1019) /** Upper-cased name for the ipv4 option */ -#define IPV4_NAME (ntpq_opt_strs+1039) +#define IPV4_NAME (ntpq_opt_strs+1050) /** Name string for the ipv4 option */ -#define IPV4_name (ntpq_opt_strs+1044) +#define IPV4_name (ntpq_opt_strs+1055) /** Other options that appear in conjunction with the ipv4 option */ static int const aIpv4CantList[] = { INDEX_OPT_IPV6, NO_EQUIVALENT }; @@ -162,11 +162,11 @@ static int const aIpv4CantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the ipv6 option */ -#define IPV6_DESC (ntpq_opt_strs+1049) +#define IPV6_DESC (ntpq_opt_strs+1060) /** Upper-cased name for the ipv6 option */ -#define IPV6_NAME (ntpq_opt_strs+1080) +#define IPV6_NAME (ntpq_opt_strs+1091) /** Name string for the ipv6 option */ -#define IPV6_name (ntpq_opt_strs+1085) +#define IPV6_name (ntpq_opt_strs+1096) /** Other options that appear in conjunction with the ipv6 option */ static int const aIpv6CantList[] = { INDEX_OPT_IPV4, NO_EQUIVALENT }; @@ -177,11 +177,11 @@ static int const aIpv6CantList[] = { * command option description: */ /** Descriptive text for the command option */ -#define COMMAND_DESC (ntpq_opt_strs+1090) +#define COMMAND_DESC (ntpq_opt_strs+1101) /** Upper-cased name for the command option */ -#define COMMAND_NAME (ntpq_opt_strs+1113) +#define COMMAND_NAME (ntpq_opt_strs+1124) /** Name string for the command option */ -#define COMMAND_name (ntpq_opt_strs+1121) +#define COMMAND_name (ntpq_opt_strs+1132) /** Compiled in flag settings for the command option */ #define COMMAND_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -190,11 +190,11 @@ static int const aIpv6CantList[] = { * debug-level option description: */ /** Descriptive text for the debug-level option */ -#define DEBUG_LEVEL_DESC (ntpq_opt_strs+1129) +#define DEBUG_LEVEL_DESC (ntpq_opt_strs+1140) /** Upper-cased name for the debug-level option */ -#define DEBUG_LEVEL_NAME (ntpq_opt_strs+1160) +#define DEBUG_LEVEL_NAME (ntpq_opt_strs+1171) /** Name string for the debug-level option */ -#define DEBUG_LEVEL_name (ntpq_opt_strs+1172) +#define DEBUG_LEVEL_name (ntpq_opt_strs+1183) /** Compiled in flag settings for the debug-level option */ #define DEBUG_LEVEL_FLAGS (OPTST_DISABLED) @@ -202,11 +202,11 @@ static int const aIpv6CantList[] = { * set-debug-level option description: */ /** Descriptive text for the set-debug-level option */ -#define SET_DEBUG_LEVEL_DESC (ntpq_opt_strs+1184) +#define SET_DEBUG_LEVEL_DESC (ntpq_opt_strs+1195) /** Upper-cased name for the set-debug-level option */ -#define SET_DEBUG_LEVEL_NAME (ntpq_opt_strs+1214) +#define SET_DEBUG_LEVEL_NAME (ntpq_opt_strs+1225) /** Name string for the set-debug-level option */ -#define SET_DEBUG_LEVEL_name (ntpq_opt_strs+1230) +#define SET_DEBUG_LEVEL_name (ntpq_opt_strs+1241) /** Compiled in flag settings for the set-debug-level option */ #define SET_DEBUG_LEVEL_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -216,11 +216,11 @@ static int const aIpv6CantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the interactive option */ -#define INTERACTIVE_DESC (ntpq_opt_strs+1246) +#define INTERACTIVE_DESC (ntpq_opt_strs+1257) /** Upper-cased name for the interactive option */ -#define INTERACTIVE_NAME (ntpq_opt_strs+1288) +#define INTERACTIVE_NAME (ntpq_opt_strs+1299) /** Name string for the interactive option */ -#define INTERACTIVE_name (ntpq_opt_strs+1300) +#define INTERACTIVE_name (ntpq_opt_strs+1311) /** Other options that appear in conjunction with the interactive option */ static int const aInteractiveCantList[] = { INDEX_OPT_COMMAND, @@ -232,11 +232,11 @@ static int const aInteractiveCantList[] = { * numeric option description: */ /** Descriptive text for the numeric option */ -#define NUMERIC_DESC (ntpq_opt_strs+1312) +#define NUMERIC_DESC (ntpq_opt_strs+1323) /** Upper-cased name for the numeric option */ -#define NUMERIC_NAME (ntpq_opt_strs+1335) +#define NUMERIC_NAME (ntpq_opt_strs+1346) /** Name string for the numeric option */ -#define NUMERIC_name (ntpq_opt_strs+1343) +#define NUMERIC_name (ntpq_opt_strs+1354) /** Compiled in flag settings for the numeric option */ #define NUMERIC_FLAGS (OPTST_DISABLED) @@ -244,11 +244,11 @@ static int const aInteractiveCantList[] = { * old-rv option description: */ /** Descriptive text for the old-rv option */ -#define OLD_RV_DESC (ntpq_opt_strs+1351) +#define OLD_RV_DESC (ntpq_opt_strs+1362) /** Upper-cased name for the old-rv option */ -#define OLD_RV_NAME (ntpq_opt_strs+1390) +#define OLD_RV_NAME (ntpq_opt_strs+1401) /** Name string for the old-rv option */ -#define OLD_RV_name (ntpq_opt_strs+1397) +#define OLD_RV_name (ntpq_opt_strs+1408) /** Compiled in flag settings for the old-rv option */ #define OLD_RV_FLAGS (OPTST_DISABLED) @@ -257,11 +257,11 @@ static int const aInteractiveCantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the peers option */ -#define PEERS_DESC (ntpq_opt_strs+1404) +#define PEERS_DESC (ntpq_opt_strs+1415) /** Upper-cased name for the peers option */ -#define PEERS_NAME (ntpq_opt_strs+1430) +#define PEERS_NAME (ntpq_opt_strs+1441) /** Name string for the peers option */ -#define PEERS_name (ntpq_opt_strs+1436) +#define PEERS_name (ntpq_opt_strs+1447) /** Other options that appear in conjunction with the peers option */ static int const aPeersCantList[] = { INDEX_OPT_INTERACTIVE, NO_EQUIVALENT }; @@ -272,11 +272,11 @@ static int const aPeersCantList[] = { * refid option description: */ /** Descriptive text for the refid option */ -#define REFID_DESC (ntpq_opt_strs+1442) +#define REFID_DESC (ntpq_opt_strs+1453) /** Upper-cased name for the refid option */ -#define REFID_NAME (ntpq_opt_strs+1482) +#define REFID_NAME (ntpq_opt_strs+1493) /** Name string for the refid option */ -#define REFID_name (ntpq_opt_strs+1488) +#define REFID_name (ntpq_opt_strs+1499) /** The compiled in default value for the refid option argument */ #define REFID_DFT_ARG ((char const*)REFID_IPV4) /** Compiled in flag settings for the refid option */ @@ -287,22 +287,22 @@ static int const aPeersCantList[] = { * wide option description: */ /** Descriptive text for the wide option */ -#define WIDE_DESC (ntpq_opt_strs+1494) +#define WIDE_DESC (ntpq_opt_strs+1505) /** Upper-cased name for the wide option */ -#define WIDE_NAME (ntpq_opt_strs+1526) +#define WIDE_NAME (ntpq_opt_strs+1537) /** Name string for the wide option */ -#define WIDE_name (ntpq_opt_strs+1531) +#define WIDE_name (ntpq_opt_strs+1542) /** Compiled in flag settings for the wide option */ #define WIDE_FLAGS (OPTST_DISABLED) /* * Help/More_Help/Version option descriptions: */ -#define HELP_DESC (ntpq_opt_strs+1536) -#define HELP_name (ntpq_opt_strs+1580) +#define HELP_DESC (ntpq_opt_strs+1547) +#define HELP_name (ntpq_opt_strs+1591) #ifdef HAVE_WORKING_FORK -#define MORE_HELP_DESC (ntpq_opt_strs+1585) -#define MORE_HELP_name (ntpq_opt_strs+1630) +#define MORE_HELP_DESC (ntpq_opt_strs+1596) +#define MORE_HELP_name (ntpq_opt_strs+1641) #define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT) #else #define MORE_HELP_DESC HELP_DESC @@ -315,14 +315,14 @@ static int const aPeersCantList[] = { # define VER_FLAGS (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \ OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT) #endif -#define VER_DESC (ntpq_opt_strs+1640) -#define VER_name (ntpq_opt_strs+1676) -#define SAVE_OPTS_DESC (ntpq_opt_strs+1684) -#define SAVE_OPTS_name (ntpq_opt_strs+1723) -#define LOAD_OPTS_DESC (ntpq_opt_strs+1733) -#define LOAD_OPTS_NAME (ntpq_opt_strs+1765) -#define NO_LOAD_OPTS_name (ntpq_opt_strs+1775) -#define LOAD_OPTS_pfx (ntpq_opt_strs+1788) +#define VER_DESC (ntpq_opt_strs+1651) +#define VER_name (ntpq_opt_strs+1687) +#define SAVE_OPTS_DESC (ntpq_opt_strs+1695) +#define SAVE_OPTS_name (ntpq_opt_strs+1734) +#define LOAD_OPTS_DESC (ntpq_opt_strs+1744) +#define LOAD_OPTS_NAME (ntpq_opt_strs+1776) +#define NO_LOAD_OPTS_name (ntpq_opt_strs+1786) +#define LOAD_OPTS_pfx (ntpq_opt_strs+1799) #define LOAD_OPTS_name (NO_LOAD_OPTS_name + 3) /** * Declare option callback procedures @@ -543,24 +543,24 @@ static tOptDesc optDesc[OPTION_CT] = { /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** Reference to the upper cased version of ntpq. */ -#define zPROGNAME (ntpq_opt_strs+1791) +#define zPROGNAME (ntpq_opt_strs+1802) /** Reference to the title line for ntpq usage. */ -#define zUsageTitle (ntpq_opt_strs+1796) +#define zUsageTitle (ntpq_opt_strs+1807) /** ntpq configuration file name. */ -#define zRcName (ntpq_opt_strs+1923) +#define zRcName (ntpq_opt_strs+1945) /** Directories to search for ntpq config files. */ static char const * const apzHomeList[3] = { - ntpq_opt_strs+1915, - ntpq_opt_strs+1921, + ntpq_opt_strs+1937, + ntpq_opt_strs+1943, NULL }; /** The ntpq program bug email address. */ -#define zBugsAddr (ntpq_opt_strs+1930) +#define zBugsAddr (ntpq_opt_strs+1952) /** Clarification/explanation of what ntpq does. */ #define zExplain (NULL) /** Extra detail explaining what ntpq does. */ #define zDetail (NULL) /** The full version string for ntpq. */ -#define zFullVersion (ntpq_opt_strs+1964) +#define zFullVersion (ntpq_opt_strs+1986) /* extracted from optcode.tlib near line 364 */ #if defined(ENABLE_NLS) @@ -633,7 +633,7 @@ doOptRefid(tOptions* pOptions, tOptDesc* pOptDesc) /* extracted from optmain.tlib near line 945 */ static char const * const names[2] = { - ntpq_opt_strs+1977, ntpq_opt_strs+1044 }; + ntpq_opt_strs+2010, ntpq_opt_strs+1055 }; if (pOptions <= OPTPROC_EMIT_LIMIT) { (void) optionEnumerationVal(pOptions, pOptDesc, names, 2); @@ -841,7 +841,7 @@ static void bogus_function(void) { translate option names. */ /* referenced via ntpqOptions.pzCopyright */ - puts(_("ntpq 4.2.8p9\n\ + puts(_("ntpq 4.2.8p10-win-beta1\n\ Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n\ This is free software. It is licensed for use, modification and\n\ redistribution under the terms of the NTP License, copies of which\n\ @@ -910,11 +910,11 @@ implied warranty.\n")); puts(_("load options from a config file")); /* referenced via ntpqOptions.pzUsageTitle */ - puts(_("ntpq - standard NTP query program - Ver. 4.2.8p9\n\ + puts(_("ntpq - standard NTP query program - Ver. 4.2.8p10-win-beta1\n\ Usage: %s [ - [] | --[{=| }] ]... [ host ...]\n")); /* referenced via ntpqOptions.pzFullVersion */ - puts(_("ntpq 4.2.8p9")); + puts(_("ntpq 4.2.8p10-win-beta1")); /* referenced via ntpqOptions.pzFullUsage */ puts(_("<<>>")); diff --git a/ntpq/ntpq-opts.h b/ntpq/ntpq-opts.h index 45adbca5c..e7e5a18ac 100644 --- a/ntpq/ntpq-opts.h +++ b/ntpq/ntpq-opts.h @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpq-opts.h) * - * It has been AutoGen-ed January 2, 2017 at 12:05:13 PM by AutoGen 5.18.5 + * It has been AutoGen-ed March 21, 2017 at 09:32:56 AM by AutoGen 5.18.5 * From the definitions ntpq-opts.def * and the template file options * @@ -84,9 +84,9 @@ typedef enum { /** count of all options for ntpq */ #define OPTION_CT 16 /** ntpq version */ -#define NTPQ_VERSION "4.2.8p9" +#define NTPQ_VERSION "4.2.8p10-win-beta1" /** Full ntpq version text */ -#define NTPQ_FULL_VERSION "ntpq 4.2.8p9" +#define NTPQ_FULL_VERSION "ntpq 4.2.8p10-win-beta1" /** * Interface defines for all options. Replace "n" with the UPPER_CASED diff --git a/ntpq/ntpq.1ntpqman b/ntpq/ntpq.1ntpqman index cb397076d..fdf4ee36d 100644 --- a/ntpq/ntpq.1ntpqman +++ b/ntpq/ntpq.1ntpqman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntpq 1ntpqman "02 Jan 2017" "4.2.8p9" "User Commands" +.TH ntpq 1ntpqman "21 Mar 2017" "4.2.8p10-win-beta1" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-JlaWgR/ag-tmaWeR) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:23 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:33:18 AM by AutoGen 5.18.5 .\" From the definitions ntpq-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/ntpq/ntpq.1ntpqmdoc b/ntpq/ntpq.1ntpqmdoc index 190a1d006..edeccb4f9 100644 --- a/ntpq/ntpq.1ntpqmdoc +++ b/ntpq/ntpq.1ntpqmdoc @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTPQ 1ntpqmdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntpq-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:20 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:33:24 AM by AutoGen 5.18.5 .\" From the definitions ntpq-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/ntpq/ntpq.html b/ntpq/ntpq.html index b6370d499..b64ff56d3 100644 --- a/ntpq/ntpq.html +++ b/ntpq/ntpq.html @@ -1,246 +1,201 @@ - - - + -ntpq: Network Time Protocol Query User’s Manual - - - - - - - - - - - - +ntpq: Network Time Protocol Query User's Manual + + + + + + + - - -

        ntpq: Network Time Protocol Query User’s Manual

        - - - - - - -

        Short Table of Contents

        - -
        -
          -
        • 1 Description
        • + +

          ntpq: Network Time Protocol Query User's Manual

          + - -
          -

          -Next: , Previous: , Up: (dir)  

          + +
          +


          +Next: , +Previous: (dir), +Up: (dir) +
          - -

          ntpq: Network Time Protocol Query User Manual

          + +

          ntpq: Network Time Protocol Query User Manual

          The ntpq utility program is used to monitor the operational status and determine the performance of ntpd, the NTP daemon. -

          -

          This document applies to version 4.2.8p9-win of ntpq. -

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

          -Next: , Previous: , Up: Top  

          + +

          This document applies to version 4.2.8p10-win-beta1 of ntpq. + +

          + +
          +


          +Next: , +Previous: Top, +Up: Top +
          - -

          1 Description

          -

          The ntpq utility program is used to monitor NTP daemon ntpd operations and determine performance. + +

          Description

          + +

          The ntpq utility program is used to monitor NTP daemon ntpd operations and determine performance. It uses the standard NTP mode 6 control message formats defined in -Appendix B of the NTPv3 specification RFC1305. -The same formats are used in NTPv4, although some of the variable names have changed and new ones added. +Appendix B of the NTPv3 specification RFC1305. +The same formats are used in NTPv4, although some of the variable names have changed and new ones added. The description on this page is for the NTPv4 variables. -

          -

          The program can be run either in interactive mode or controlled using command line arguments. Requests to read and write arbitrary variables can be assembled, with raw and pretty-printed output options being available. The ntpq can also obtain and print a list of peers in a common format by sending multiple queries to the server. -

          -

          If one or more request options is included on the command line when ntpq is executed, each of the requests will be sent to the NTP servers running on each of the hosts given as command line arguments, or on localhost by default. If no request options are given, ntpq will attempt to read commands from the standard input and execute these on the NTP server running on the first host given on the command line, again defaulting to localhost when no other host is specified. ntpq will prompt for commands if the standard input is a terminal device. -

          -

          ntpq uses NTP mode 6 packets to communicate with the NTP server, and hence can be used to query any compatible server on the network which permits it. Note that since NTP is a UDP protocol this communication will be somewhat unreliable, especially over large distances in terms of network topology. ntpq makes one attempt to retransmit requests, and will time requests out if the remote host is not heard from within a suitable timeout time. -

          -

          Note that in contexts where a host name is expected, a -4 qualifier preceding the host name forces DNS resolution to the IPv4 namespace, while a -6 qualifier forces DNS resolution to the IPv6 namespace. -

          -

          For examples and usage, see the NTP Debugging Techniques page. -

          -
          + +

          The program can be run either in interactive mode or controlled using command line arguments. Requests to read and write arbitrary variables can be assembled, with raw and pretty-printed output options being available. The ntpq can also obtain and print a list of peers in a common format by sending multiple queries to the server. + +

          If one or more request options is included on the command line when ntpq is executed, each of the requests will be sent to the NTP servers running on each of the hosts given as command line arguments, or on localhost by default. If no request options are given, ntpq will attempt to read commands from the standard input and execute these on the NTP server running on the first host given on the command line, again defaulting to localhost when no other host is specified. ntpq will prompt for commands if the standard input is a terminal device. + +

          ntpq uses NTP mode 6 packets to communicate with the NTP server, and hence can be used to query any compatible server on the network which permits it. Note that since NTP is a UDP protocol this communication will be somewhat unreliable, especially over large distances in terms of network topology. ntpq makes one attempt to retransmit requests, and will time requests out if the remote host is not heard from within a suitable timeout time. + +

          Note that in contexts where a host name is expected, a -4 qualifier preceding the host name forces DNS resolution to the IPv4 namespace, while a -6 qualifier forces DNS resolution to the IPv6 namespace. + +

          For examples and usage, see the NTP Debugging Techniques page. + +

          +


          -
          -

          -Next: , Previous: , Up: ntpq Description  

          +
          - -

          1.1 Invoking ntpq

          - - +

          Invoking ntpq

          -

          The +

          + +

          The ntpq utility program is used to query NTP servers which implement the standard NTP mode 6 control message formats defined in Appendix B of the NTPv3 specification RFC1305, requesting -information about current state and/or changes in that state. +information about current state and/or changes in that state. The same formats are used in NTPv4, although some of the variables have changed and new ones added. The description on this -page is for the NTPv4 variables. +page is for the NTPv4 variables. The program may be run either in interactive mode or controlled using -command line arguments. +command line arguments. Requests to read and write arbitrary variables can be assembled, with raw and pretty-printed output -options being available. +options being available. The ntpq utility can also obtain and print a list of peers in a common format by sending multiple queries to the server. -

          -

          If one or more request options is included on the command line + +

          If one or more request options is included on the command line when ntpq is executed, each of the requests will be sent to the NTP servers running on each of the hosts given as command -line arguments, or on localhost by default. +line arguments, or on localhost by default. If no request options are given, ntpq will attempt to read commands from the standard input and execute these on the NTP server running on the first host given on the command line, again defaulting to localhost -when no other host is specified. +when no other host is specified. The ntpq utility will prompt for commands if the standard input is a terminal device. -

          -

          ntpq + +

          ntpq uses NTP mode 6 packets to communicate with the NTP server, and hence can be used to query any compatible server on -the network which permits it. +the network which permits it. Note that since NTP is a UDP protocol this communication will be somewhat unreliable, especially over -large distances in terms of network topology. +large distances in terms of network topology. The ntpq utility makes one attempt to retransmit requests, and will time requests out if the remote host is not heard from within a suitable timeout time. -

          -

          Specifying a + +

          Specifying a command line option other than -i or -n will cause the specified query (queries) to be sent to the indicated -host(s) immediately. +host(s) immediately. Otherwise, ntpq will attempt to read interactive format commands from the standard input. -

          -

          1.1.1 Internal Commands

          + +
          Internal Commands
          +

          Interactive format commands consist of a keyword followed by zero -to four arguments. +to four arguments. Only enough characters of the full keyword to uniquely identify the command need be typed. -

          -

          A + +

          A number of interactive format commands are executed entirely within the ntpq utility itself and do not result in NTP mode 6 -requests being sent to a server. +requests being sent to a server. These are described following. -

          -
          ? [command_keyword]
          -
          help [command_keyword]
          -

          A -‘?’ +

          +
          ? [command_keyword]
          help [command_keyword]
          A +? by itself will print a list of all the command keywords known to this incarnation of ntpq A -‘?’ +? followed by a command keyword will print function and usage -information about the command. +information about the command. This command is probably a better source of information about ntpq than this manual -page. -

          -
          addvars variable_name[=value] ...
          -
          rmvars variable_name ...
          -
          clearvars
          -
          showvars
          -

          The data carried by NTP mode 6 messages consists of a list of +page. +

          addvars variable_name[=value] ...
          rmvars variable_name ...
          clearvars
          showvars
          The data carried by NTP mode 6 messages consists of a list of items of the form -‘variable_name=value’, +variable_name=value, where the -‘=value’ +=value is ignored, and can be omitted, -in requests to the server to read variables. +in requests to the server to read variables. The ntpq utility maintains an internal list in which data to be included in control @@ -248,175 +203,144 @@ messages can be assembled, and sent using the readlist and writelist -commands described below. +commands described below. The addvars command allows variables and their optional values to be added to -the list. +the list. If more than one variable is to be added, the list should -be comma-separated and not contain white space. +be comma-separated and not contain white space. The rmvars command can be used to remove individual variables from the list, while the clearlist command removes all variables from the -list. +list. The showvars -command displays the current list of optional variables. -

          -
          authenticate [yes | no]
          -

          Normally +command displays the current list of optional variables. +

          authenticate [yes | no]
          Normally ntpq does not authenticate requests unless -they are write requests. +they are write requests. The command -‘authenticate yes’ +authenticate yes causes ntpq to send authentication with all requests it -makes. +makes. Authenticated requests causes some servers to handle requests slightly differently, and can occasionally melt the CPU in fuzzballs if you turn authentication on before doing a peer -display. +display. The command -‘authenticate’ +authenticate causes ntpq to display whether or not ntpq -is currently autheinticating requests. -

          -
          cooked
          -

          Causes output from query commands to be "cooked", so that +is currently autheinticating requests. +

          cooked
          Causes output from query commands to be "cooked", so that variables which are recognized by ntpq will have their -values reformatted for human consumption. +values reformatted for human consumption. Variables which ntpq -thinks should have a decodable value but didn’t are +thinks should have a decodable value but didn't are marked with a trailing -‘?’. -

          -
          debug [more | less | off]
          -

          With no argument, displays the current debug level. -Otherwise, the debug level is changed to the indicated level. -

          -
          delay milliseconds
          -

          Specify a time interval to be added to timestamps included in -requests which require authentication. +?. +

          debug [more | less | off]
          With no argument, displays the current debug level. +Otherwise, the debug level is changed to the indicated level. +
          delay milliseconds
          Specify a time interval to be added to timestamps included in +requests which require authentication. This is used to enable (unreliable) server reconfiguration over long delay network paths -or between machines whose clocks are unsynchronized. +or between machines whose clocks are unsynchronized. Actually the server does not now require timestamps in authenticated requests, -so this command may be obsolete. -

          -
          exit
          -

          Exit +so this command may be obsolete. +

          exit
          Exit ntpq -

          -
          host hostname
          -

          Set the host to which future queries will be sent. +

          host hostname
          Set the host to which future queries will be sent. hostname -may be either a host name or a numeric address. -

          -
          hostnames [yes | no]
          -

          If +may be either a host name or a numeric address. +

          hostnames [yes | no]
          If yes is specified, host names are printed in -information displays. +information displays. If no is specified, numeric -addresses are printed instead. +addresses are printed instead. The default is yes, unless modified using the command line -n -switch. -

          -
          keyid keyid
          -

          This command allows the specification of a key number to be -used to authenticate configuration requests. +switch. +

          keyid keyid
          This command allows the specification of a key number to be +used to authenticate configuration requests. This must correspond to the controlkey key number the server has been configured to use for this -purpose. -

          -
          keytype [md5 | OpenSSLDigestType]
          -

          Specify the type of key to use for authenticating requests. +purpose. +

          keytype [md5 | OpenSSLDigestType]
          Specify the type of key to use for authenticating requests. md5 -is alway supported. +is alway supported. If ntpq was built with OpenSSL support, -any digest type supported by OpenSSL can also be provided. +any digest type supported by OpenSSL can also be provided. If no argument is given, the current keytype -is displayed. -

          -
          ntpversion [1 | 2 | 3 | 4]
          -

          Sets the NTP version number which +is displayed. +

          ntpversion [1 | 2 | 3 | 4]
          Sets the NTP version number which ntpq claims in -packets. +packets. Defaults to 3, and note that mode 6 control messages (and -modes, for that matter) didn’t exist in NTP version 1. +modes, for that matter) didn't exist in NTP version 1. There appear -to be no servers left which demand version 1. +to be no servers left which demand version 1. With no argument, displays the current NTP version that will be used -when communicating with servers. -

          -
          passwd
          -

          This command prompts you to type in a password (which will not +when communicating with servers. +

          passwd
          This command prompts you to type in a password (which will not be echoed) which will be used to authenticate configuration -requests. +requests. The password must correspond to the key configured for use by the NTP server for this purpose if such requests are to be -successful. +successful. poll n verbose -

          -
          quit
          -

          Exit +

          quit
          Exit ntpq -

          -
          raw
          -

          Causes all output from query commands is printed as received -from the remote server. +

          raw
          Causes all output from query commands is printed as received +from the remote server. The only formating/interpretation done on the data is to transform nonascii data into a printable (but barely -understandable) form. -

          -
          timeout milliseconds
          -

          Specify a timeout period for responses to server queries. +understandable) form. +

          timeout milliseconds
          Specify a timeout period for responses to server queries. The -default is about 5000 milliseconds. +default is about 5000 milliseconds. Note that since ntpq retries each query once after a timeout, the total waiting time for -a timeout will be twice the timeout value set. -

          -
          version
          -

          Print the version of the +a timeout will be twice the timeout value set. +

          version
          Print the version of the ntpq -program. -

          +program.
          - -

          1.1.1.1 Control Message Commands

          -

          Association IDs are used to identify system, peer and clock variables. -System variables are assigned an association ID of zero and system name space, while each association is assigned a nonzero association ID and peer namespace. -Most control commands send a single mode-6 message to the server and expect a single response message. +

          Control Message Commands
          + +

          Association IDs are used to identify system, peer and clock variables. +System variables are assigned an association ID of zero and system name space, while each association is assigned a nonzero association ID and peer namespace. +Most control commands send a single mode-6 message to the server and expect a single response message. The exceptions are the peers command, which sends a series of messages, @@ -425,67 +349,30 @@ and the and mreadvar commands, which iterate over a range of associations. -

          -
          associations
          -

          Display a list of mobilized associations in the form: -

          -
          ind assid status conf reach auth condition last_event cnt
          -
          -
          -
          Sy String Ta Sy Description
          -
          ind Ta index on this list
          -
          assid Ta association ID
          -
          status Ta peer status word
          -
          conf Ta yes: persistent, no: ephemeral
          -
          reach Ta yes: reachable, no: unreachable
          -
          auth Ta ok, yes, bad and none
          -
          condition Ta selection status (see the select field of the peer status word)
          -
          last_event Ta event report (see the event field of the peer status word)
          -
          cnt Ta event count (see the count field of the peer status word)
          -
          -
          -
          authinfo
          -

          Display the authentication statistics. -

          -
          clockvar assocID [name[=value]] [...]
          -
          cv assocID [name[=value]] [...]
          -

          Display a list of clock variables for those associations supporting a reference clock. -

          -
          :config [...]
          -

          Send the remainder of the command line, including whitespace, to the server as a run-time configuration command in the same format as a line in the configuration file. This command is experimental until further notice and clarification. Authentication is of course required. -

          -
          config-from-file filename
          -

          Send the each line of +

          +
          associations
          Display a list of mobilized associations in the form: +
                    ind assid status conf reach auth condition last_event cnt
          +     
          +
          +
          Sy String Ta Sy Description
          ind Ta index on this list
          assid Ta association ID
          status Ta peer status word
          conf Ta yes: persistent, no: ephemeral
          reach Ta yes: reachable, no: unreachable
          auth Ta ok, yes, bad and none
          condition Ta selection status (see the select field of the peer status word)
          last_event Ta event report (see the event field of the peer status word)
          cnt Ta event count (see the count field of the peer status word)
          +
          authinfo
          Display the authentication statistics. +
          clockvar assocID [name[=value]] [...]
          cv assocID [name[=value]] [...]
          Display a list of clock variables for those associations supporting a reference clock. +
          :config [...]
          Send the remainder of the command line, including whitespace, to the server as a run-time configuration command in the same format as a line in the configuration file. This command is experimental until further notice and clarification. Authentication is of course required. +
          config-from-file filename
          Send the each line of filename -to the server as run-time configuration commands in the same format as a line in the configuration file. This command is experimental until further notice and clarification. Authentication is required. -

          -
          ifstats
          -

          Display statistics for each local network address. Authentication is required. -

          -
          iostats
          -

          Display network and reference clock I/O statistics. -

          -
          kerninfo
          -

          Display kernel loop and PPS statistics. As with other ntpq output, times are in milliseconds. The precision value displayed is in milliseconds as well, unlike the precision system variable. -

          -
          lassociations
          -

          Perform the same function as the associations command, except display mobilized and unmobilized associations. -

          -
          lopeers [-4 | -6]
          -

          Obtain and print a list of all peers and clients showing +to the server as run-time configuration commands in the same format as a line in the configuration file. This command is experimental until further notice and clarification. Authentication is required. +

          ifstats
          Display statistics for each local network address. Authentication is required. +
          iostats
          Display network and reference clock I/O statistics. +
          kerninfo
          Display kernel loop and PPS statistics. As with other ntpq output, times are in milliseconds. The precision value displayed is in milliseconds as well, unlike the precision system variable. +
          lassociations
          Perform the same function as the associations command, except display mobilized and unmobilized associations. +
          lopeers [-4 | -6]
          Obtain and print a list of all peers and clients showing dstadr -(associated with any given IP version). -

          -
          lpeers [-4 | -6]
          -

          Print a peer spreadsheet for the appropriate IP version(s). +(associated with any given IP version). +

          lpeers [-4 | -6]
          Print a peer spreadsheet for the appropriate IP version(s). dstadr -(associated with any given IP version). -

          -
          monstats
          -

          Display monitor facility statistics. -

          -
          mrulist [limited | kod | mincount=count | laddr=localaddr | sort=sortorder | resany=hexmask | resall=hexmask]
          -

          Obtain and print traffic counts collected and maintained by the monitor facility. +(associated with any given IP version). +

          monstats
          Display monitor facility statistics. +
          mrulist [limited | kod | mincount=count | laddr=localaddr | sort=sortorder | resany=hexmask | resall=hexmask]
          Obtain and print traffic counts collected and maintained by the monitor facility. With the exception of sort=sortorder, the options filter the list returned by @@ -494,23 +381,23 @@ The limited and kod -options return only entries representing client addresses from which the last packet received triggered either discarding or a KoD response. +options return only entries representing client addresses from which the last packet received triggered either discarding or a KoD response. The mincount=count option filters entries representing less than count -packets. +packets. The laddr=localaddr option filters entries for packets received on any local address other than -localaddr. +localaddr. resany=hexmask and resall=hexmask filter entries containing none or less than all, respectively, of the bits in hexmask, which must begin with -0x. +0x. The sortorder defaults to @@ -520,106 +407,65 @@ and may be any of count, avgint, lstint, -or any of those preceded by a minus sign (hyphen) to reverse the sort order. +or any of those preceded by a minus sign (hyphen) to reverse the sort order. The output columns are: -

          -
          Column
          -

          Description -

          -
          lstint
          -

          Interval in s between the receipt of the most recent packet from this address and the completion of the retrieval of the MRU list by +

          +
          Column
          Description +
          lstint
          Interval in s between the receipt of the most recent packet from this address and the completion of the retrieval of the MRU list by ntpq -

          -
          avgint
          -

          Average interval in s between packets from this address. -

          -
          rstr
          -

          Restriction flags associated with this address. +

          avgint
          Average interval in s between packets from this address. +
          rstr
          Restriction flags associated with this address. Most are copied unchanged from the matching restrict -command, however 0x400 (kod) and 0x20 (limited) flags are cleared unless the last packet from this address triggered a rate control response. -

          -
          r
          -

          Rate control indicator, either +command, however 0x400 (kod) and 0x20 (limited) flags are cleared unless the last packet from this address triggered a rate control response. +

          r
          Rate control indicator, either a period, L or K for no rate control response, -rate limiting by discarding, or rate limiting with a KoD response, respectively. -

          -
          m
          -

          Packet mode. -

          -
          v
          -

          Packet version number. -

          -
          count
          -

          Packets received from this address. -

          -
          rport
          -

          Source port of last packet from this address. -

          -
          remote address
          -

          DNS name, numeric address, or address followed by -claimed DNS name which could not be verified in parentheses. -

          +rate limiting by discarding, or rate limiting with a KoD response, respectively. +
          m
          Packet mode. +
          v
          Packet version number. +
          count
          Packets received from this address. +
          rport
          Source port of last packet from this address. +
          remote address
          DNS name, numeric address, or address followed by +claimed DNS name which could not be verified in parentheses.
          -
          -
          mreadvar assocID assocID [variable_name[=value] ...]
          -
          mrv assocID assocID [variable_name[=value] ...]
          -

          Perform the same function as the +

          mreadvar assocID assocID [variable_name[=value] ...]
          mrv assocID assocID [variable_name[=value] ...]
          Perform the same function as the readvar -command, except for a range of association IDs. +command, except for a range of association IDs. This range is determined from the association list cached by the most recent associations -command. -

          -
          opeers [-4 | -6]
          -

          Obtain and print the old-style list of all peers and clients showing +command. +

          opeers [-4 | -6]
          Obtain and print the old-style list of all peers and clients showing dstadr (associated with any given IP version), rather than the -refid. -

          -
          passociations
          -

          Perform the same function as the +refid. +

          passociations
          Perform the same function as the associations command, -except that it uses previously stored data rather than making a new query. -

          -
          peers
          -

          Display a list of peers in the form: -

          -
          [tally]remote refid st t when pool reach delay offset jitter
          -
          -
          -
          Variable
          -

          Description -

          -
          [tally]
          -

          single-character code indicating current value of the +except that it uses previously stored data rather than making a new query. +

          peers
          Display a list of peers in the form: +
                    [tally]remote refid st t when pool reach delay offset jitter
          +     
          +
          +
          Variable
          Description +
          [tally]
          single-character code indicating current value of the select field of the -.Lk decode.html#peer "peer status word" -

          -
          remote
          -

          host name (or IP number) of peer. +.Lk decode.html#peer "peer status word" +

          remote
          host name (or IP number) of peer. The value displayed will be truncated to 15 characters unless the -w flag is given, in which case the full value will be displayed on the first line, -and the remaining data is displayed on the next line. -

          -
          refid
          -

          association ID or -.Lk decode.html#kiss "’kiss code" -

          -
          st
          -

          stratum -

          -
          t
          -

          u: +and the remaining data is displayed on the next line. +

          refid
          association ID or +.Lk decode.html#kiss "'kiss code" +
          st
          stratum +
          t
          u: unicast or manycast client, b: broadcast or multicast client, @@ -633,517 +479,297 @@ manycast server, broadcast server, M: multicast server -

          -
          when
          -

          sec/min/hr since last received packet -

          -
          poll
          -

          poll interval (log2 s) -

          -
          reach
          -

          reach shift register (octal) -

          -
          delay
          -

          roundtrip delay -

          -
          offset
          -

          offset of server relative to this host -

          -
          jitter
          -

          jitter -

          +
          when
          sec/min/hr since last received packet +
          poll
          poll interval (log2 s) +
          reach
          reach shift register (octal) +
          delay
          roundtrip delay +
          offset
          offset of server relative to this host +
          jitter
          jitter
          -
          -
          apeers
          -

          Display a list of peers in the form: -

          -
          [tally]remote refid assid st t when pool reach delay offset jitter
          -
          -

          where the output is just like the +

          apeers
          Display a list of peers in the form: +
                    [tally]remote refid assid st t when pool reach delay offset jitter
          +     
          +

          where the output is just like the peers command except that the refid -is displayed in hex format and the association number is also displayed. -

          -
          pstats assocID
          -

          Show the statistics for the peer with the given -assocID. -

          -
          readlist assocID
          -
          rl assocID
          -

          Read the system or peer variables included in the variable list. -

          -
          readvar assocID name[=value] [, ...]
          -
          rv assocID name[=value] [, ...]
          -

          Display the specified variables. +is displayed in hex format and the association number is also displayed. +

          pstats assocID
          Show the statistics for the peer with the given +assocID. +
          readlist assocID
          rl assocID
          Read the system or peer variables included in the variable list. +
          readvar assocID name[=value] [, ...]
          rv assocID name[=value] [, ...]
          Display the specified variables. If assocID is zero, the variables are from the System Variables name space, otherwise they are from the Peer Variables -name space. +name space. The assocID -is required, as the same name can occur in both spaces. +is required, as the same name can occur in both spaces. If no name is included, all operative variables in the name space are displayed. -

          -

          In this case only, if the + +

          In this case only, if the assocID -is omitted, it is assumed zero. -Multiple names are specified with comma separators and without whitespace. +is omitted, it is assumed zero. +Multiple names are specified with comma separators and without whitespace. Note that time values are represented in milliseconds -and frequency values in parts-per-million (PPM). +and frequency values in parts-per-million (PPM). Some NTP timestamps are represented in the format YYYYMMDDTTTT , where YYYY is the year, MM the month of year, DD the day of month and -TTTT the time of day. -

          -
          reslist
          -

          Show the access control (restrict) list for +TTTT the time of day. +

          reslist
          Show the access control (restrict) list for ntpq -

          -
          -
          saveconfig filename
          -

          Write the current configuration, + +

          saveconfig filename
          Write the current configuration, including any runtime modifications given with :config or config-from-file, -to the ntpd host’s file -filename. +to the ntpd host's file +filename. This command will be rejected by the server unless -.Lk miscopt.html#saveconfigdir "saveconfigdir" +.Lk miscopt.html#saveconfigdir "saveconfigdir" appears in the ntpd -configuration file. +configuration file. filename can use strftime() format specifies to substitute the current date and time, for example, -q]saveconfig ntp-%Y%m%d-%H%M%S.confq]. +q]saveconfig ntp-%Y%m%d-%H%M%S.confq]. The filename used is stored in system variable -savedconfig. -Authentication is required. -

          -
          timerstats
          -

          Display interval timer counters. -

          -
          writelist assocID
          -

          Write the system or peer variables included in the variable list. -

          -
          writevar assocID name=value [, ...]
          -

          Write the specified variables. +savedconfig. +Authentication is required. +

          timerstats
          Display interval timer counters. +
          writelist assocID
          Write the system or peer variables included in the variable list. +
          writevar assocID name=value [, ...]
          Write the specified variables. If the assocID is zero, the variables are from the System Variables name space, otherwise they are from the Peer Variables -name space. +name space. The assocID -is required, as the same name can occur in both spaces. -

          -
          sysinfo
          -

          Display operational summary. -

          -
          sysstats
          -

          Print statistics counters maintained in the protocol module. -

          +is required, as the same name can occur in both spaces. +
          sysinfo
          Display operational summary. +
          sysstats
          Print statistics counters maintained in the protocol module.
          - -

          1.1.1.2 Status Words and Kiss Codes

          +
          Status Words and Kiss Codes

          The current state of the operating program is shown in a set of status words -maintained by the system. -Status information is also available on a per-association basis. +maintained by the system. +Status information is also available on a per-association basis. These words are displayed in the rv and as -commands both in hexadecimal and in decoded short tip strings. +commands both in hexadecimal and in decoded short tip strings. The codes, tips and short explanations are documented on the -.Lk decode.html "Event Messages and Status Words" -page. +.Lk decode.html "Event Messages and Status Words" +page. The page also includes a list of system and peer messages, the code for the latest of which is included in the status word. -

          -

          Information resulting from protocol machine state transitions + +

          Information resulting from protocol machine state transitions is displayed using an informal set of ASCII strings called -.Lk decode.html#kiss "kiss codes" . -The original purpose was for kiss-o’-death (KoD) packets -sent by the server to advise the client of an unusual condition. +.Lk decode.html#kiss "kiss codes" . +The original purpose was for kiss-o'-death (KoD) packets +sent by the server to advise the client of an unusual condition. They are now displayed, when appropriate, in the reference identifier field in various billboards. -

          - -

          1.1.1.3 System Variables

          + +
          System Variables
          +

          The following system variables appear in the rv -billboard. +billboard. Not all variables are displayed in some configurations. -

          -
          Variable
          -

          Description -

          -
          status
          -

          .Lk decode.html#sys "system status word" -

          -
          version
          -

          NTP software version and build time -

          -
          processor
          -

          hardware platform and version -

          -
          system
          -

          operating system and version -

          -
          leap
          -

          leap warning indicator (0-3) -

          -
          stratum
          -

          stratum (1-15) -

          -
          precision
          -

          precision (log2 s) -

          -
          rootdelay
          -

          total roundtrip delay to the primary reference clock -

          -
          rootdisp
          -

          total dispersion to the primary reference clock -

          -
          peer
          -

          system peer association ID -

          -
          tc
          -

          time constant and poll exponent (log2 s) (3-17) -

          -
          mintc
          -

          minimum time constant (log2 s) (3-10) -

          -
          clock
          -

          date and time of day -

          -
          refid
          -

          reference ID or -.Lk decode.html#kiss "kiss code" -

          -
          reftime
          -

          reference time -

          -
          offset
          -

          combined offset of server relative to this host -

          -
          sys_jitter
          -

          combined system jitter -

          -
          frequency
          -

          frequency offset (PPM) relative to hardware clock -

          -
          clk_wander
          -

          clock frequency wander (PPM) -

          -
          clk_jitter
          -

          clock jitter -

          -
          tai
          -

          TAI-UTC offset (s) -

          -
          leapsec
          -

          NTP seconds when the next leap second is/was inserted -

          -
          expire
          -

          NTP seconds when the NIST leapseconds file expires -

          +
          +
          Variable
          Description +
          status
          .Lk decode.html#sys "system status word" +
          version
          NTP software version and build time +
          processor
          hardware platform and version +
          system
          operating system and version +
          leap
          leap warning indicator (0-3) +
          stratum
          stratum (1-15) +
          precision
          precision (log2 s) +
          rootdelay
          total roundtrip delay to the primary reference clock +
          rootdisp
          total dispersion to the primary reference clock +
          peer
          system peer association ID +
          tc
          time constant and poll exponent (log2 s) (3-17) +
          mintc
          minimum time constant (log2 s) (3-10) +
          clock
          date and time of day +
          refid
          reference ID or +.Lk decode.html#kiss "kiss code" +
          reftime
          reference time +
          offset
          combined offset of server relative to this host +
          sys_jitter
          combined system jitter +
          frequency
          frequency offset (PPM) relative to hardware clock +
          clk_wander
          clock frequency wander (PPM) +
          clk_jitter
          clock jitter +
          tai
          TAI-UTC offset (s) +
          leapsec
          NTP seconds when the next leap second is/was inserted +
          expire
          NTP seconds when the NIST leapseconds file expires
          -

          The jitter and wander statistics are exponentially-weighted RMS averages. + The jitter and wander statistics are exponentially-weighted RMS averages. The system jitter is defined in the NTPv4 specification; the clock jitter statistic is computed by the clock discipline module. -

          -

          When the NTPv4 daemon is compiled with the OpenSSL software library, + +

          When the NTPv4 daemon is compiled with the OpenSSL software library, additional system variables are displayed, including some or all of the following, depending on the particular Autokey dance: -

          -
          -
          Variable
          -

          Description -

          -
          host
          -

          Autokey host name for this host -

          -
          ident
          -

          Autokey group name for this host -

          -
          flags
          -

          host flags (see Autokey specification) -

          -
          digest
          -

          OpenSSL message digest algorithm -

          -
          signature
          -

          OpenSSL digest/signature scheme -

          -
          update
          -

          NTP seconds at last signature update -

          -
          cert
          -

          certificate subject, issuer and certificate flags -

          -
          until
          -

          NTP seconds when the certificate expires -

          + +
          +
          Variable
          Description +
          host
          Autokey host name for this host +
          ident
          Autokey group name for this host +
          flags
          host flags (see Autokey specification) +
          digest
          OpenSSL message digest algorithm +
          signature
          OpenSSL digest/signature scheme +
          update
          NTP seconds at last signature update +
          cert
          certificate subject, issuer and certificate flags +
          until
          NTP seconds when the certificate expires
          - -

          1.1.1.4 Peer Variables

          + +
          Peer Variables
          +

          The following peer variables appear in the rv -billboard for each association. +billboard for each association. Not all variables are displayed in some configurations. -

          -
          -
          Variable
          -

          Description -

          -
          associd
          -

          association ID -

          -
          status
          -

          .Lk decode.html#peer "peer status word" -

          -
          srcadr
          -

          source (remote) IP address -

          -
          srcport
          -

          source (remote) port -

          -
          dstadr
          -

          destination (local) IP address -

          -
          dstport
          -

          destination (local) port -

          -
          leap
          -

          leap indicator (0-3) -

          -
          stratum
          -

          stratum (0-15) -

          -
          precision
          -

          precision (log2 s) -

          -
          rootdelay
          -

          total roundtrip delay to the primary reference clock -

          -
          rootdisp
          -

          total root dispersion to the primary reference clock -

          -
          refid
          -

          reference ID or -.Lk decode.html#kiss "kiss code" -

          -
          reftime
          -

          reference time -

          -
          reach
          -

          reach register (octal) -

          -
          unreach
          -

          unreach counter -

          -
          hmode
          -

          host mode (1-6) -

          -
          pmode
          -

          peer mode (1-5) -

          -
          hpoll
          -

          host poll exponent (log2 s) (3-17) -

          -
          ppoll
          -

          peer poll exponent (log2 s) (3-17) -

          -
          headway
          -

          headway (see -.Lk rate.html "Rate Management and the Kiss-o’-Death Packet" ) -

          -
          flash
          -

          .Lk decode.html#flash "flash status word" -

          -
          offset
          -

          filter offset -

          -
          delay
          -

          filter delay -

          -
          dispersion
          -

          filter dispersion -

          -
          jitter
          -

          filter jitter -

          -
          ident
          -

          Autokey group name for this association -

          -
          bias
          -

          unicast/broadcast bias -

          -
          xleave
          -

          interleave delay (see -.Lk xleave.html "NTP Interleaved Modes" ) -

          + +
          +
          Variable
          Description +
          associd
          association ID +
          status
          .Lk decode.html#peer "peer status word" +
          srcadr
          source (remote) IP address +
          srcport
          source (remote) port +
          dstadr
          destination (local) IP address +
          dstport
          destination (local) port +
          leap
          leap indicator (0-3) +
          stratum
          stratum (0-15) +
          precision
          precision (log2 s) +
          rootdelay
          total roundtrip delay to the primary reference clock +
          rootdisp
          total root dispersion to the primary reference clock +
          refid
          reference ID or +.Lk decode.html#kiss "kiss code" +
          reftime
          reference time +
          reach
          reach register (octal) +
          unreach
          unreach counter +
          hmode
          host mode (1-6) +
          pmode
          peer mode (1-5) +
          hpoll
          host poll exponent (log2 s) (3-17) +
          ppoll
          peer poll exponent (log2 s) (3-17) +
          headway
          headway (see +.Lk rate.html "Rate Management and the Kiss-o'-Death Packet" ) +
          flash
          .Lk decode.html#flash "flash status word" +
          offset
          filter offset +
          delay
          filter delay +
          dispersion
          filter dispersion +
          jitter
          filter jitter +
          ident
          Autokey group name for this association +
          bias
          unicast/broadcast bias +
          xleave
          interleave delay (see +.Lk xleave.html "NTP Interleaved Modes" )
          -

          The + The bias variable is calculated when the first broadcast packet is received -after the calibration volley. -It represents the offset of the broadcast subgraph relative to the unicast subgraph. +after the calibration volley. +It represents the offset of the broadcast subgraph relative to the unicast subgraph. The xleave -variable appears only for the interleaved symmetric and interleaved modes. +variable appears only for the interleaved symmetric and interleaved modes. It represents the internal queuing, buffering and transmission delays for the preceding packet. -

          -

          When the NTPv4 daemon is compiled with the OpenSSL software library, + +

          When the NTPv4 daemon is compiled with the OpenSSL software library, additional peer variables are displayed, including the following: -

          -
          Variable
          -

          Description -

          -
          flags
          -

          peer flags (see Autokey specification) -

          -
          host
          -

          Autokey server name -

          -
          flags
          -

          peer flags (see Autokey specification) -

          -
          signature
          -

          OpenSSL digest/signature scheme -

          -
          initsequence
          -

          initial key ID -

          -
          initkey
          -

          initial key index -

          -
          timestamp
          -

          Autokey signature timestamp -

          +
          +
          Variable
          Description +
          flags
          peer flags (see Autokey specification) +
          host
          Autokey server name +
          flags
          peer flags (see Autokey specification) +
          signature
          OpenSSL digest/signature scheme +
          initsequence
          initial key ID +
          initkey
          initial key index +
          timestamp
          Autokey signature timestamp
          - -

          1.1.1.5 Clock Variables

          +
          Clock Variables
          +

          The following clock variables appear in the cv -billboard for each association with a reference clock. +billboard for each association with a reference clock. Not all variables are displayed in some configurations. -

          -
          Variable
          -

          Description -

          -
          associd
          -

          association ID -

          -
          status
          -

          .Lk decode.html#clock "clock status word" -

          -
          device
          -

          device description -

          -
          timecode
          -

          ASCII time code string (specific to device) -

          -
          poll
          -

          poll messages sent -

          -
          noreply
          -

          no reply -

          -
          badformat
          -

          bad format -

          -
          baddata
          -

          bad date or time -

          -
          fudgetime1
          -

          fudge time 1 -

          -
          fudgetime2
          -

          fudge time 2 -

          -
          stratum
          -

          driver stratum -

          -
          refid
          -

          driver reference ID -

          -
          flags
          -

          driver flags -

          +
          +
          Variable
          Description +
          associd
          association ID +
          status
          .Lk decode.html#clock "clock status word" +
          device
          device description +
          timecode
          ASCII time code string (specific to device) +
          poll
          poll messages sent +
          noreply
          no reply +
          badformat
          bad format +
          baddata
          bad date or time +
          fudgetime1
          fudge time 1 +
          fudgetime2
          fudge time 2 +
          stratum
          driver stratum +
          refid
          driver reference ID +
          flags
          driver flags
          -

          This section was generated by AutoGen, -using the agtexi-cmd template and the option descriptions for the ntpq program. +

          This section was generated by AutoGen, +using the agtexi-cmd template and the option descriptions for the ntpq program. This software is released under the NTP license, <http://ntp.org/license>. -

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

          -Next: , Up: ntpq Invocation  

          + + + +
          +


          +Next: , +Up: ntpq Invocation +
          - -

          1.1.2 ntpq help/usage (--help)

          - - -

          This is the automatically generated usage text for ntpq. -

          -

          The text printed is the same whether selected with the help option -(--help) or the more-help option (--more-help). more-help will print -the usage text by passing it through a pager program. + +

          ntpq help/usage (--help)

          + +

          +This is the automatically generated usage text for ntpq. + +

          The text printed is the same whether selected with the help option +(--help) or the more-help option (--more-help). more-help will print +the usage text by passing it through a pager program. more-help is disabled on platforms without a working fork(2) function. The PAGER environment variable is -used to select the program, defaulting to more. Both will exit +used to select the program, defaulting to more. Both will exit with a status code of 0. -

          -
          +
          ntpq - standard NTP query program - Ver. 4.2.8p9
           Usage:  ntpq [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]
             Flg Arg Option-Name    Description
          @@ -1183,827 +809,1046 @@ The following option preset mechanisms are supported:
            - reading file ./.ntprc
            - examining environment variables named NTPQ_*
           
          -The valid "refid" option keywords are:
          +The valid "refid" option keywords are:
             hash ipv4
             or an integer from 0 through 1
           
           Please send bug reports to:  <http://bugs.ntp.org, bugs@ntp.org>
          -
          - -
          - -
          -

          -Next: , Previous: , Up: ntpq Invocation  

          + +
          +


          +Next: , +Previous: ntpq usage, +Up: ntpq Invocation +
          - -

          1.1.3 ipv4 option (-4)

          - - -

          This is the “force ipv4 dns name resolution” option. -

          -

          This option has some usage constraints. It: -

            -
          • must not appear in combination with any of the following options: -ipv6. -
          - -

          Force DNS resolution of following host names on the command line -to the IPv4 namespace. -


          - -
          -

          -Next: , Previous: , Up: ntpq Invocation  

          + +

          ipv4 option (-4)

          + +

          +This is the “force ipv4 dns name resolution” option. + +

          This option has some usage constraints. It: +

            +
          • must not appear in combination with any of the following options: +ipv6. +
          + +

          Force DNS resolution of following host names on the command line +to the IPv4 namespace. +

          +


          +Next: , +Previous: ntpq ipv4, +Up: ntpq Invocation +
          - -

          1.1.4 ipv6 option (-6)

          - - -

          This is the “force ipv6 dns name resolution” option. -

          -

          This option has some usage constraints. It: -

            -
          • must not appear in combination with any of the following options: -ipv4. -
          - -

          Force DNS resolution of following host names on the command line -to the IPv6 namespace. -


          - -
          -

          -Next: , Previous: , Up: ntpq Invocation  

          + +

          ipv6 option (-6)

          + +

          +This is the “force ipv6 dns name resolution” option. + +

          This option has some usage constraints. It: +

            +
          • must not appear in combination with any of the following options: +ipv4. +
          + +

          Force DNS resolution of following host names on the command line +to the IPv6 namespace. +

          +


          +Next: , +Previous: ntpq ipv6, +Up: ntpq Invocation +
          - -

          1.1.5 command option (-c)

          - - -

          This is the “run a command and exit” option. -This option takes a string argument cmd. -

          -

          This option has some usage constraints. It: -

            -
          • may appear an unlimited number of times. -
          - -

          The following argument is interpreted as an interactive format command + +

          command option (-c)

          + +

          +This is the “run a command and exit” option. +This option takes a string argument cmd. + +

          This option has some usage constraints. It: +

            +
          • may appear an unlimited number of times. +
          + +

          The following argument is interpreted as an interactive format command and is added to the list of commands to be executed on the specified -host(s). -


          - -
          -

          -Next: , Previous: , Up: ntpq Invocation  

          +host(s). +
          +


          +Next: , +Previous: ntpq command, +Up: ntpq Invocation +
          - -

          1.1.6 interactive option (-i)

          - - -

          This is the “force ntpq to operate in interactive mode” option. -

          -

          This option has some usage constraints. It: -

            -
          • must not appear in combination with any of the following options: -command, peers. -
          - -

          Force ntpq to operate in interactive mode. + +

          interactive option (-i)

          + +

          +This is the “force ntpq to operate in interactive mode” option. + +

          This option has some usage constraints. It: +

            +
          • must not appear in combination with any of the following options: +command, peers. +
          + +

          Force ntpq to operate in interactive mode. Prompts will be written to the standard output and -commands read from the standard input. -


          - -
          -

          -Next: , Previous: , Up: ntpq Invocation  

          +commands read from the standard input. +
          +


          +Next: , +Previous: ntpq interactive, +Up: ntpq Invocation +
          - -

          1.1.7 numeric option (-n)

          - -

          This is the “numeric host addresses” option. +

          numeric option (-n)

          + +

          +This is the “numeric host addresses” option. Output all host addresses in dotted-quad numeric format rather than converting to the canonical host names. -


          - -
          -

          -Next: , Previous: , Up: ntpq Invocation  

          +
          +


          +Next: , +Previous: ntpq numeric, +Up: ntpq Invocation +
          - -

          1.1.8 old-rv option

          - -

          This is the “always output status line with readvar” option. +

          old-rv option

          + +

          +This is the “always output status line with readvar” option. By default, ntpq now suppresses the associd=... line that precedes the output of readvar (alias rv) when a single variable is requested, such as -ntpq -c "rv 0 offset". +ntpq -c "rv 0 offset". This option causes ntpq to include both lines of output -for a single-variable readvar. +for a single-variable readvar. Using an environment variable to preset this option in a script will enable both older and -newer ntpq to behave identically in this regard. -


          - -
          -

          -Next: , Previous: , Up: ntpq Invocation  

          +newer ntpq to behave identically in this regard. +
          +


          +Next: , +Previous: ntpq old-rv, +Up: ntpq Invocation +
          - -

          1.1.9 peers option (-p)

          - - -

          This is the “print a list of the peers” option. -

          -

          This option has some usage constraints. It: -

            -
          • must not appear in combination with any of the following options: -interactive. -
          - -

          Print a list of the peers known to the server as well as a summary -of their state. This is equivalent to the ’peers’ interactive command. -


          - -
          -

          -Next: , Previous: , Up: ntpq Invocation  

          + +

          peers option (-p)

          + +

          +This is the “print a list of the peers” option. + +

          This option has some usage constraints. It: +

            +
          • must not appear in combination with any of the following options: +interactive. +
          + +

          Print a list of the peers known to the server as well as a summary +of their state. This is equivalent to the 'peers' interactive command. +

          +


          +Next: , +Previous: ntpq peers, +Up: ntpq Invocation +
          - -

          1.1.10 refid option (-r)

          - -

          This is the “set default display type for s2+ refids” option. +

          refid option (-r)

          + +

          +This is the “set default display type for s2+ refids” option. This option takes a keyword argument. -

          -

          This option has some usage constraints. It: -

            -
          • This option takes a keyword as its argument. -The argument sets an enumeration value that can be tested by comparing the option value macro (OPT_VALUE_REFID). + +

            This option has some usage constraints. It: +

              +
            • This option takes a keyword as its argument. +The argument sets an enumeration value that can be tested by comparing the option value macro (OPT_VALUE_REFID). The available keywords are: -
              -
                  hash ipv4
              -
              - -

              or their numeric equivalent.

            - -

            Set the default display format for S2+ refids. -


            - -
            -

            -Next: , Previous: , Up: ntpq Invocation  

            +
                         hash ipv4
            +    
            +

            or their numeric equivalent.

          + +

          Set the default display format for S2+ refids. +

          +


          +Next: , +Previous: ntpq refid, +Up: ntpq Invocation +
          - -

          1.1.11 wide option (-w)

          - -

          This is the “display the full ’remote’ value” option. -Display the full value of the ’remote’ value. If this requires +

          wide option (-w)

          + +

          +This is the “display the full 'remote' value” option. +Display the full value of the 'remote' value. If this requires more than 15 characters, display the full value, emit a newline, and continue the data display properly indented on the next line. -

          -
          - -
          -

          -Next: , Previous: , Up: ntpq Invocation  

          +
          +


          +Next: , +Previous: ntpq wide, +Up: ntpq Invocation +
          - -

          1.1.12 presetting/configuring ntpq

          + +

          presetting/configuring ntpq

          Any option that is not marked as not presettable may be preset by -loading values from configuration ("rc" or "ini") files, and values from environment variables named NTPQ and NTPQ_<OPTION_NAME>. <OPTION_NAME> must be one of -the options listed above in upper case and segmented with underscores. +loading values from configuration ("rc" or "ini") files, and values from environment variables named NTPQ and NTPQ_<OPTION_NAME>. <OPTION_NAME> must be one of +the options listed above in upper case and segmented with underscores. The NTPQ variable will be tokenized and parsed like the command line. The remaining variables are tested for existence and their values are treated like option arguments. -

          - -

          libopts will search in 2 places for configuration files: -

            -
          • $HOME -
          • $PWD -
          -

          The environment variables HOME, and PWD -are expanded and replaced when ntpq runs. -For any of these that are plain files, they are simply processed. -For any that are directories, then a file named .ntprc is searched for + +

          libopts will search in 2 places for configuration files: +

            +
          • $HOME +
          • $PWD +
          + The environment variables HOME, and PWD +are expanded and replaced when ntpq runs. +For any of these that are plain files, they are simply processed. +For any that are directories, then a file named .ntprc is searched for within that directory and processed. -

          -

          Configuration files may be in a wide variety of formats. + +

          Configuration files may be in a wide variety of formats. The basic format is an option name followed by a value (argument) on the same line. Values may be separated from the option name with a colon, equal sign or simply white space. Values may be continued across multiple lines by escaping the newline with a backslash. -

          -

          Multiple programs may also share the same initialization file. + +

          Multiple programs may also share the same initialization file. Common options are collected at the top, followed by program specific segments. The segments are separated by lines like: -

          -
          [NTPQ]
          -
          -

          or by -

          -
          <?program ntpq>
          -
          -

          Do not mix these styles within one configuration file. -

          -

          Compound values and carefully constructed string values may also be +

              [NTPQ]
          +
          +

          or by +

              <?program ntpq>
          +
          +

          Do not mix these styles within one configuration file. + +

          Compound values and carefully constructed string values may also be specified using XML syntax: -

          -
          <option-name>
          -   <sub-opt>...&lt;...&gt;...</sub-opt>
          -</option-name>
          -
          -

          yielding an option-name.sub-opt string value of -

          -
          "...<...>..."
          -
          -

          AutoOpts does not track suboptions. You simply note that it is a +

              <option-name>
          +       <sub-opt>...&lt;...&gt;...</sub-opt>
          +    </option-name>
          +
          +

          yielding an option-name.sub-opt string value of +

              "...<...>..."
          +
          +

          AutoOpts does not track suboptions. You simply note that it is a hierarchicly valued option. AutoOpts does provide a means for searching the associated name/value pair list (see: optionFindValue). -

          -

          The command line options relating to configuration and/or usage help are: -

          - -

          version (-)

          + +

          The command line options relating to configuration and/or usage help are: + +

          version (-)

          Print the program version to standard out, optionally with licensing information, then exit 0. The optional argument specifies how much licensing -detail to provide. The default is to print just the version. The licensing infomation may be selected with an option argument. +detail to provide. The default is to print just the version. The licensing infomation may be selected with an option argument. Only the first letter of the argument is examined: -

          -
          -
          version
          -

          Only print the version. This is the default. -

          -
          copyright
          -

          Name the copyright usage licensing terms. -

          -
          verbose
          -

          Print the full copyright usage licensing terms. -

          + +
          +
          version
          Only print the version. This is the default. +
          copyright
          Name the copyright usage licensing terms. +
          verbose
          Print the full copyright usage licensing terms.
          -
          - -
          -

          -Previous: , Up: ntpq Invocation  

          +
          +


          +Previous: ntpq config, +Up: ntpq Invocation +
          - -

          1.1.13 ntpq exit status

          + +

          ntpq exit status

          One of the following exit values will be returned: -

          -
          0 (EXIT_SUCCESS)
          -

          Successful program execution. -

          -
          1 (EXIT_FAILURE)
          -

          The operation failed or the command syntax was not valid. -

          -
          66 (EX_NOINPUT)
          -

          A specified configuration file could not be loaded. -

          -
          70 (EX_SOFTWARE)
          -

          libopts had an internal operational error. Please report -it to autogen-users@lists.sourceforge.net. Thank you. -

          +
          +
          0 (EXIT_SUCCESS)
          Successful program execution. +
          1 (EXIT_FAILURE)
          The operation failed or the command syntax was not valid. +
          66 (EX_NOINPUT)
          A specified configuration file could not be loaded. +
          70 (EX_SOFTWARE)
          libopts had an internal operational error. Please report +it to autogen-users@lists.sourceforge.net. Thank you.
          -
          - -
          -

          -Next: , Previous: , Up: Top  

          +
          +


          +Next: , +Previous: ntpq Description, +Up: Top +
          - -

          1.2 Usage

          - - - - - - - - - - - -
          WhatDefaultFlagOption
          configuration file/etc/ntp.conf-cconffile
          frequency filenone-fdriftfile
          leapseconds filenoneleapfile
          process ID filenone-ppidfile
          log filesystem log-llogfile
          include filenonenoneincludefile
          statistics path/var/NTP-sstatsdir
          keys path/usr/local/etc-kkeysdir
          - -
          - -
          -

          -Next: , Previous: , Up: Top  

          + + +

          Usage

          + +

          What Default Flag Option +
          configuration file +/etc/ntp.conf +-c +conffile +
          frequency file +none +-f +driftfile +
          leapseconds file +none + +leapfile +
          process ID file +none +-p +pidfile +
          log file +system log +-l +logfile +
          include file +none +none +includefile +
          statistics path +/var/NTP +-s +statsdir +
          keys path +/usr/local/etc +-k +keysdir +
          + +

          +


          +Next: , +Previous: Usage, +Up: Top +
          - -

          1.3 Internal Commands

          + + +

          Internal Commands

          Interactive format commands consist of a keyword followed by zero to four arguments. Only enough characters of the full keyword to uniquely identify the command need be typed. The output of a command is normally sent to the standard output, but optionally the output of individual commands may be sent to a file by appending a >, followed by a file name, to the command line. A number of interactive format commands are executed entirely within the ntpq program itself and do not result in NTP mode-6 requests being sent to a server. These are described following. -

          -
          -
          ? [command_keyword]
          -
          help [command_keyword]
          -

          A ? by itself will print a list of all the command keywords known to ntpq. A ? followed by a command keyword will print function and usage information about the command. -

          -
          -
          >addvars name [ = value] [...]
          -
          rmvars name [...]
          -
          clearvars</dt>
          -

          The arguments to these commands consist of a list of items of the form -name = value, where the = value is ignored, -and can be omitted in read requests. + +

          +
          ? [command_keyword]
          help [command_keyword]
          A ? by itself will print a list of all the command keywords known to ntpq. A ? followed by a command keyword will print function and usage information about the command. + +
          >addvars name [ = value] [...]
          rmvars name [...]
          clearvars</dt>
          The arguments to these commands consist of a list of items of the form +name = value, where the = value is ignored, +and can be omitted in read requests. ntpq maintains an internal list in which data to be included in control messages can be assembled, and sent using the readlist -and writelist commands described below. +and writelist commands described below. The addvars command allows variables and optional values -to be added to the list. +to be added to the list. If more than one variable is to be added -the list should be comma-separated and not contain white space. +the list should be comma-separated and not contain white space. The rmvars command can be used to remove individual variables from the list, while the clearlist command removes all variables from the list. -

          -
          -
          cooked
          -

          Display server messages in prettyprint format. -

          -
          -
          debug more | less | off
          -

          Turns internal query program debugging on and off. -

          -
          -
          delay milliseconds
          -

          Specify a time interval to be added to timestamps included in requests which require authentication. This is used to enable (unreliable) server reconfiguration over long delay network paths or between machines whose clocks are unsynchronized. Actually the server does not now require timestamps in authenticated requests, so this command may be obsolete. -

          -
          -
          host name
          -

          Set the host to which future queries will be sent. + +

          cooked
          Display server messages in prettyprint format. + +
          debug more | less | off
          Turns internal query program debugging on and off. + +
          delay milliseconds
          Specify a time interval to be added to timestamps included in requests which require authentication. This is used to enable (unreliable) server reconfiguration over long delay network paths or between machines whose clocks are unsynchronized. Actually the server does not now require timestamps in authenticated requests, so this command may be obsolete. + +
          host name
          Set the host to which future queries will be sent. The name may be either a DNS name or a numeric address. -

          -
          -
          hostnames [yes | no]
          -

          If yes is specified, host names are printed in information displays. -If no is specified, numeric addresses are printed instead. + +

          hostnames [yes | no]
          If yes is specified, host names are printed in information displays. +If no is specified, numeric addresses are printed instead. The default is yes, unless modified using the command line -n switch. -

          -
          -
          keyid keyid
          -

          This command specifies the key number to be used -to authenticate configuration requests. + +

          keyid keyid
          This command specifies the key number to be used +to authenticate configuration requests. This must correspond to a key ID configured in ntp.conf for this purpose. -

          -
          -
          keytype
          -

          Specify the digest algorithm to use for authenticated requests, -with default MD5. + +

          keytype
          Specify the digest algorithm to use for authenticated requests, +with default MD5. If the OpenSSL library is installed, -digest can be be any message digest algorithm supported by the library. +digest can be be any message digest algorithm supported by the library. The current selections are: MD2, MD4, MD5, MDC2, RIPEMD160, SHA and SHA1. -

          -
          -
          ntpversion 1 | 2 | 3 | 4
          -

          Sets the NTP version number which ntpq claims in packets. -Defaults to 2. + +

          ntpversion 1 | 2 | 3 | 4
          Sets the NTP version number which ntpq claims in packets. +Defaults to 2. Note that mode-6 control messages (and modes, for that matter) -didn’t exist in NTP version 1. -

          -
          -
          passwd
          -

          This command prompts for a password to authenticate requests. +didn't exist in NTP version 1. + +

          passwd
          This command prompts for a password to authenticate requests. The password must correspond to the key ID configured in ntp.conf for this purpose. -

          -
          -
          quit
          -

          Exit ntpq. -

          -
          -
          raw
          -

          Display server messages as received and without reformatting. -

          -
          -
          timeout millseconds
          -

          Specify a timeout period for responses to server queries. -The default is about 5000 milliseconds. + +

          quit
          Exit ntpq. + +
          raw
          Display server messages as received and without reformatting. + +
          timeout millseconds
          Specify a timeout period for responses to server queries. +The default is about 5000 milliseconds. Note that since ntpq retries each query once after a timeout the total waiting time for a timeout will be twice the timeout value set. -

          -
          -
          -
          - -
          -

          -Next: , Previous: , Up: Top  

          +
          + +
          +


          +Next: , +Previous: Internal Commands, +Up: Top +
          - -

          1.4 Control Message Commands

          -

          Association IDs are used to identify system, peer and clock variables. + +

          Control Message Commands

          + +

          Association IDs are used to identify system, peer and clock variables. System variables are assigned an association ID of zero and system name space, -while each association is assigned a nonzero association ID and peer namespace. +while each association is assigned a nonzero association ID and peer namespace. Most control commands send a single mode-6 message to the server -and expect a single response message. +and expect a single response message. The exceptions are the peers command, which sends a series of messages, and the mreadlist and mreadvar commands, which iterate over a range of associations. -

          -
          -
          associations
          -

          Display a list of mobilized associations in the form: + +

          +

          +
          associations
          Display a list of mobilized associations in the form:
          ind assid status conf reach auth condition last_event cnt -

          - - - - - - - - - - - -
          VariableDescription
          indindex on this list
          assidassociation ID
          statuspeer status word
          confyes: persistent, no: ephemeral
          reachyes: reachable, no: unreachable
          authok, yes, bad and none
          conditionselection status (see the select field of the peer status word)
          last_eventevent report (see the event field of the peer status word)
          cnt -event count (see the count field of the peer status word)
          - -
          -
          clockvar assocID [name [ = value [...]] [...]]
          -
          cv assocID [name [ = value [...] ][...]]
          -

          Display a list of ‘clock variables’ for those associations supporting a reference clock. -

          -
          -
          :config [...]
          -

          Send the remainder of the command line, including whitespace, to the server + +

          Variable Description + +


          ind +index on this list + +


          assid +association ID + +


          status +peer status word + +


          conf +yes: persistent, no: ephemeral + +


          reach +yes: reachable, no: unreachable + +


          auth +ok, yes, bad and none + +


          condition +selection status (see the select field of the peer status word) + +


          last_event +event report (see the event field of the peer status word) + +


          cnt +event count (see the count field of the peer status word) + +
          + +

          clockvar assocID [name [ = value [...]] [...]]
          cv assocID [name [ = value [...] ][...]]
          Display a list of clock variables for those associations supporting a reference clock. + +
          :config [...]
          Send the remainder of the command line, including whitespace, to the server as a run-time configuration command in the same format -as the configuration file. -This command is experimental until further notice and clarification. +as the configuration file. +This command is experimental until further notice and clarification. Authentication is of course required. -

          -
          -
          config-from-file filename
          -

          Send the each line of filename to the server as -run-time configuration commands in the same format as the configuration file. -This command is experimental until further notice and clarification. + +

          config-from-file filename
          Send the each line of filename to the server as +run-time configuration commands in the same format as the configuration file. +This command is experimental until further notice and clarification. Authentication is required. -

          -
          -
          ifstats
          -

          Display statistics for each local network address. + +

          ifstats
          Display statistics for each local network address. Authentication is required. -

          -
          -
          iostats
          -

          Display network and reference clock I/O statistics. -

          -
          -
          kerninfo
          -

          Display kernel loop and PPS statistics. -As with other ntpq output, times are in milliseconds. + +

          iostats
          Display network and reference clock I/O statistics. + +
          kerninfo
          Display kernel loop and PPS statistics. +As with other ntpq output, times are in milliseconds. The precision value displayed is in milliseconds as well, unlike the precision system variable. -

          -
          -
          lassociations
          -

          Perform the same function as the associations command, + +

          lassociations
          Perform the same function as the associations command, except display mobilized and unmobilized associations. -

          -
          -
          monstats
          -

          Display monitor facility statistics. -

          -
          -
          mrulist [limited | kod | mincount=count | laddr=localaddr | sort=sortorder | resany=hexmask | resall=hexmask]
          -

          Obtain and print traffic counts collected and maintained by -the monitor facility. -With the exception of sort=sortorder, -the options filter the list returned by ntpd. + +

          monstats
          Display monitor facility statistics. + +
          mrulist [limited | kod | mincount=count | laddr=localaddr | sort=sortorder | resany=hexmask | resall=hexmask]
          Obtain and print traffic counts collected and maintained by +the monitor facility. +With the exception of sort=sortorder, +the options filter the list returned by ntpd. The limited and kod options return only entries representing client addresses from which the last packet received -triggered either discarding or a KoD response. -The mincount=count option filters entries representing -less than count packets. -The laddr=localaddr option filters entries for packets -received on any local address other than localaddr. -resany=hexmask and resall=hexmask +triggered either discarding or a KoD response. +The mincount=count option filters entries representing +less than count packets. +The laddr=localaddr option filters entries for packets +received on any local address other than localaddr. +resany=hexmask and resall=hexmask filter entries containing none or less than all, respectively, -of the bits in hexmask, which must begin with 0x. +of the bits in hexmask, which must begin with 0x.
          -The sortorder defaults to lstint and may be any of +The sortorder defaults to lstint and may be any of addr, count, avgint, lstint, or -any of those preceded by a minus sign (hyphen) to reverse the sort order. +any of those preceded by a minus sign (hyphen) to reverse the sort order. The output columns are: -

          - - - - -
          ColumnDescription
          lstintInterval in s between the receipt of the most recent packet from this -address and the completion of the retrieval of the MRU list by ntpq
          avgintAverage interval in s between packets from this address.
          rstrRestriction flags associated with this address. + +

          - - - - - - -
          Column Description + +


          lstint + +Interval in s between the receipt of the most recent packet from this +address and the completion of the retrieval of the MRU list by ntpq + +


          avgint + +Average interval in s between packets from this address. + +


          rstr + +Restriction flags associated with this address. Most are copied unchanged from the matching restrict command, however 0x400 (kod) and 0x20 (limited) flags are cleared unless -the last packet from this address triggered a rate control response.
          rRate control indicator, either a period, L or K for +the last packet from this address triggered a rate control response. + +


          r + +Rate control indicator, either a period, L or K for no rate control response, rate limiting by discarding, or -rate limiting with a KoD response, respectively.
          mPacket mode.
          vPacket version number.
          countPackets received from this address.
          rportSource port of last packet from this address.
          remote addressDNS name, numeric address, or address followed by claimed DNS name which -could not be verified in parentheses.
          - - -

          mreadvar assocID assocID [ variable_name [ = value[ ... ]
          -
          mrv assocID assocID [ variable_name [ = value[ ... ]
          -

          Perform the same function as the readvar command, -except for a range of association IDs. +rate limiting with a KoD response, respectively. + +


          m + +Packet mode. +
          v + +Packet version number. + +


          count + +Packets received from this address. + +


          rport + +Source port of last packet from this address. + +


          remote address + +DNS name, numeric address, or address followed by claimed DNS name which +could not be verified in parentheses. + +
          + +
          mreadvar assocID assocID [ variable_name [ = value[ ... ]
          mrv assocID assocID [ variable_name [ = value[ ... ]
          Perform the same function as the readvar command, +except for a range of association IDs. This range is determined from the association list cached by the most recent associations command. -

          -
          -
          passociations
          -

          Perform the same function as the associations command, except that + +

          passociations
          Perform the same function as the associations command, except that it uses previously stored data rather than making a new query. -

          -
          -
          peers
          -

          Display a list of peers in the form: + +

          peers
          Display a list of peers in the form:
          [tally]remote refid st t when pool reach delay offset jitter -

          - - - - - - -
          VariableDescription
          [tally]single-character code indicating current value of the select field -of the peer status word.
          remotehost name (or IP number) of peer
          refidassociation ID or kiss code.
          ststratum
          tu: unicast or manycast client, + +

          - - - - - - -
          Variable Description +
          [tally] + +single-character code indicating current value of the select field +of the peer status word. + +


          remote + +host name (or IP number) of peer + +


          refid + +association ID or kiss code. + +


          st + +stratum + +


          t + +u: unicast or manycast client, b: broadcast or multicast client, l: local (reference clock), s: symmetric (peer), A: manycast server, B: broadcast server, -M: multicast server.
          whensec/min/hr since last received packet
          pollpoll interval (log(2) s)
          reachreach shift register (octal)
          delayroundtrip delay
          offsetoffset of server relative to this host
          jitterjitter
          - - -

          readvar assocID name [ = value ] [,...]
          -
          rv assocID [ name ] [,...]
          -

          Display the specified variables. -If assocID is zero, -the variables are from the ‘system variables’ name space, -otherwise they are from the ‘peer variables’ name space. -The assocID is required, as the same name can occur in both spaces. +M: multicast server. + +


          when + +sec/min/hr since last received packet + +


          poll + +poll interval (log(2) s) + +


          reach + +reach shift register (octal) + +


          delay + +roundtrip delay + +


          offset + +offset of server relative to this host + +


          jitter + +jitter + +
          + +
          readvar assocID name [ = value ] [,...]
          rv assocID [ name ] [,...]
          Display the specified variables. +If assocID is zero, +the variables are from the system variables name space, +otherwise they are from the peer variables name space. +The assocID is required, as the same name can occur in both spaces. If no name is included, -all operative variables in the name space are displayed. -In this case only, if the assocID is omitted, it is assumed zero. -Multiple names are specified with comma separators and without whitespace. +all operative variables in the name space are displayed. +In this case only, if the assocID is omitted, it is assumed zero. +Multiple names are specified with comma separators and without whitespace. Note that time values are represented in milliseconds and -frequency values in parts-per-million (PPM). +frequency values in parts-per-million (PPM). Some NTP timestamps are represented in the format YYYYMMDDTTTT, where YYYY is the year, MM the month of year, DD the day of month and TTTT the time of day. -

          -
          -
          saveconfig filename
          -

          Write the current configuration, including any runtime modifications + +

          saveconfig filename
          Write the current configuration, including any runtime modifications given with :config or config-from-file, -to the ntpd host’s file filename. +to the ntpd host's file filename. This command will be rejected by the server unless saveconfigdir -appears in the ntpd configuration file. +appears in the ntpd configuration file. filename can use strftime() format specifiers to substitute the current date and time, for example, -saveconfig ntp-%Y%m%d-%H%M%S.conf. -The filename used is stored in system variable savedconfig. +saveconfig ntp-%Y%m%d-%H%M%S.conf. +The filename used is stored in system variable savedconfig. Authentication is required. -

          -
          -
          writevar assocID name = value [,...]
          -

          Write the specified variables. -If the assocID is zero, the variables are from the -‘system variables’ name space, otherwise they are from the -‘peer variables’ name space. -The assocID is required, + +

          writevar assocID name = value [,...]
          Write the specified variables. +If the assocID is zero, the variables are from the +system variables name space, otherwise they are from the +peer variables name space. +The assocID is required, as the same name can occur in both spaces. -

          -
          -
          sysinfo
          -

          Display operational summary. -

          -
          -
          sysstats
          -

          Print statistics counters maintained in the protocol module. -

          -
          -
          -
          - -
          -

          -Next: , Previous: , Up: Top  

          +
          sysinfo
          Display operational summary. + +
          sysstats
          Print statistics counters maintained in the protocol module. + +
          + +
          +


          +Next: , +Previous: Control Message Commands, +Up: Top +
          - -

          1.5 Status Words and Kiss Codes

          + + +

          Status Words and Kiss Codes

          The current state of the operating program is shown in a set of status words maintained by the system -and each association separately. +and each association separately. These words are displayed in the rv and as commands -both in hexadecimal and decoded short tip strings. +both in hexadecimal and decoded short tip strings. The codes, tips and short explanations are on the -Event Messages and Status Words page. +Event Messages and Status Words page. The page also includes a list of system and peer messages, the code for the latest of which is included in the status word. -

          -

          Information resulting from protocol machine state transitions + +

          Information resulting from protocol machine state transitions is displayed using an informal set of ASCII strings called -kiss codes. -The original purpose was for kiss-o’-death (KoD) packets sent -by the server to advise the client of an unusual condition. +kiss codes. +The original purpose was for kiss-o'-death (KoD) packets sent +by the server to advise the client of an unusual condition. They are now displayed, when appropriate, in the reference identifier field in various billboards. -

          -
          - -
          -

          -Next: , Previous: , Up: Top  

          + +
          +


          +Next: , +Previous: Status Words and Kiss Codes, +Up: Top +
          - -

          1.6 System Variables

          -

          The following system variables appear in the rv billboard. + +

          System Variables

          + +

          The following system variables appear in the rv billboard. Not all variables are displayed in some configurations. -

          - - - - - - - - - - - - - - - - - - - - - - - - - -
          VariableDescription
          statussystem status word
          versionNTP software version and build time
          processorhardware platform and version
          systemoperating system and version
          leapleap warning indicator (0-3)
          stratumstratum (1-15)
          precisionprecision (log(2) s)
          rootdelaytotal roundtrip delay to the primary reference clock
          rootdisptotal dispersion to the primary reference clock
          peersystem peer association ID
          tc -time constant and poll exponent (log(2) s) (3-17)
          mintc -minimum time constant (log(2) s) (3-10)
          clockdate and time of day
          refid -reference ID or kiss code
          reftimereference time
          offsetcombined offset of server relative to this host
          sys_jittercombined system jitter
          frequencyfrequency offset (PPM) relative to hardware clock
          clk_wanderclock frequency wander (PPM)
          clk_jitterclock jitter
          taiTAI-UTC offset (s)
          leapsecNTP seconds when the next leap second is/was inserted
          expireNTP seconds when the NIST leapseconds file expires
          - -

          The jitter and wander statistics are exponentially-weighted RMS averages. + +

          Variable Description + +


          status + +system status word + +


          version + +NTP software version and build time + +


          processor + +hardware platform and version + +


          system + +operating system and version + +


          leap + +leap warning indicator (0-3) + +


          stratum + +stratum (1-15) + +


          precision + +precision (log(2) s) + +


          rootdelay + +total roundtrip delay to the primary reference clock + +


          rootdisp + +total dispersion to the primary reference clock + +


          peer + +system peer association ID + +


          tc +time constant and poll exponent (log(2) s) (3-17) + +


          mintc +minimum time constant (log(2) s) (3-10) + +


          clock + +date and time of day + +


          refid +reference ID or kiss code + +


          reftime + +reference time + +


          offset + +combined offset of server relative to this host + +


          sys_jitter + +combined system jitter + +


          frequency + +frequency offset (PPM) relative to hardware clock + +


          clk_wander + +clock frequency wander (PPM) + +


          clk_jitter + +clock jitter + +


          tai + +TAI-UTC offset (s) + +


          leapsec + +NTP seconds when the next leap second is/was inserted + +


          expire + +NTP seconds when the NIST leapseconds file expires + +
          + +

          The jitter and wander statistics are exponentially-weighted RMS averages. The system jitter is defined in the NTPv4 specification; the clock jitter statistic is computed by the clock discipline module. -

          -

          When the NTPv4 daemon is compiled with the OpenSSL software library, + +

          When the NTPv4 daemon is compiled with the OpenSSL software library, additional system variables are displayed, including some or all of the following, depending on the particular Autokey dance: -

          - - - - - - - - - - -
          VariableDescription
          hostAutokey host name for this host
          identAutokey group name for this host
          flagshost flags (see Autokey specification)
          digestOpenSSL message digest algorithm
          signatureOpenSSL digest/signature scheme
          updateNTP seconds at last signature update
          certcertificate subject, issuer and certificate flags
          untilNTP seconds when the certificate expires
          - -
          - -
          -

          -Next: , Previous: , Up: Top  

          + +

          Variable Description + +


          host + +Autokey host name for this host + +


          ident + +Autokey group name for this host + +


          flags + +host flags (see Autokey specification) + +


          digest + +OpenSSL message digest algorithm + +


          signature + +OpenSSL digest/signature scheme + +


          update + +NTP seconds at last signature update + +


          cert + +certificate subject, issuer and certificate flags + +


          until + +NTP seconds when the certificate expires + +
          + +

          +


          +Next: , +Previous: System Variables, +Up: Top +
          - -

          1.7 Peer Variables

          + + +

          Peer Variables

          The following peer variables appear in the rv billboard -for each association. +for each association. Not all variables are displayed in some configurations. -

          - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          VariableDescription
          associdassociation ID
          statuspeer status word
          srcadr -

          srcport -

          source (remote) IP address and port
          dstadr -

          dstport -

          destination (local) IP address and port
          leapleap indicator (0-3)
          stratumstratum (0-15)
          precisionprecision (log(2) s)
          rootdelaytotal roundtrip delay to the primary reference clock
          rootdisptotal root dispersion to the primary reference clock
          refidreference ID or kiss code
          reftimereference time
          reachreach register (octal)
          unreachunreach counter
          hmodehost mode (1-6)
          pmodepeer mode (1-5)
          hpollhost poll exponent (log(2) s) (3-17)
          ppollpeer poll exponent (log(2) s) (3-17)
          headwayheadway (see Rate Management and the Kiss-o’-Death Packet)
          flashflash status word
          offsetfilter offset
          delayfilter delay
          dispersionfilter dispersion
          jitterfilter jitter
          identAutokey group name for this association
          biasunicast/broadcast bias
          xleaveinterleave delay (see NTP Interleaved Modes)
          - -

          The bias variable is calculated when the first broadcast packet is received + +

          Variable Description + +


          associd + +association ID + +


          status + +peer status word + +


          srcadr +
          srcport + +source (remote) IP address and port + +


          dstadr +
          dstport + +destination (local) IP address and port + +


          leap + +leap indicator (0-3) + +


          stratum + +stratum (0-15) + +


          precision + +precision (log(2) s) + +


          rootdelay + +total roundtrip delay to the primary reference clock + +


          rootdisp +total root dispersion to the primary reference clock + +


          refid + +reference ID or kiss code + +


          reftime + +reference time + +


          reach + +reach register (octal) + +


          unreach + +unreach counter + +


          hmode + +host mode (1-6) + +


          pmode + +peer mode (1-5) + +


          hpoll + +host poll exponent (log(2) s) (3-17) +
          ppoll + +peer poll exponent (log(2) s) (3-17) + +


          headway + +headway (see Rate Management and the Kiss-o'-Death Packet) + +


          flash + +flash status word + +


          offset + +filter offset + +


          delay + +filter delay + +


          dispersion + +filter dispersion + +


          jitter + +filter jitter + +


          ident + +Autokey group name for this association + +


          bias + +unicast/broadcast bias + +


          xleave + +interleave delay (see NTP Interleaved Modes) + +
          + +

          The bias variable is calculated when the first broadcast packet is received after the calibration volley. It represents the offset of the broadcast subgraph relative to the unicast subgraph. The xleave variable appears only the interleaved symmetric and interleaved modes. It represents the internal queuing, buffering and transmission delays for the preceding packet. -

          -

          When the NTPv4 daemon is compiled with the OpenSSL software library, + +

          When the NTPv4 daemon is compiled with the OpenSSL software library, additional peer variables are displayed, including the following: -

          - - - - - - - - - -
          VariableDescription
          flagspeer flags (see Autokey specification)
          hostAutokey server name
          flagspeer flags (see Autokey specification)
          signatureOpenSSL digest/signature scheme
          initsequenceinitial key ID
          initkeyinitial key index
          timestampAutokey signature timestamp
          - -
          - -
          -

          -Previous: , Up: Top  

          + +

          Variable Description + +


          flags + +peer flags (see Autokey specification) + +


          host + +Autokey server name + +


          flags + +peer flags (see Autokey specification) + +


          signature + +OpenSSL digest/signature scheme + +


          initsequence + +initial key ID + +


          initkey + +initial key index + +


          timestamp + +Autokey signature timestamp + +
          + +

          +


          +Previous: Peer Variables, +Up: Top +
          - -

          1.8 Clock Variables

          + + +

          Clock Variables

          The following clock variables appear in the cv billboard for each association with a reference clock. Not all variables are displayed in some configurations. -

          - - - - - - - - - - - - - - - -
          VariableDescription
          associdassociation ID
          statusclock status word
          devicedevice description
          timecodeASCII time code string (specific to device)
          pollpoll messages sent
          noreplyno reply
          badformatbad format
          baddatabad date or time
          fudgetime1fudge time 1
          fudgetime2fudge time 2
          stratumdriver stratum
          refiddriver reference ID
          flagsdriver flags
          -
          - - - - - + +

          Variable Description +
          associd +association ID +
          status +clock status word +
          device +device description +
          timecode +ASCII time code string (specific to device) +
          poll +poll messages sent +
          noreply +no reply +
          badformat +bad format +
          baddata +bad date or time +
          fudgetime1 +fudge time 1 +
          fudgetime2 +fudge time 2 +
          stratum +driver stratum +
          refid +driver reference ID +
          flags +driver flags +
          + + + diff --git a/ntpq/ntpq.man.in b/ntpq/ntpq.man.in index f5260e4a9..3efc69543 100644 --- a/ntpq/ntpq.man.in +++ b/ntpq/ntpq.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntpq @NTPQ_MS@ "02 Jan 2017" "4.2.8p9" "User Commands" +.TH ntpq @NTPQ_MS@ "21 Mar 2017" "4.2.8p10-win-beta1" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-JlaWgR/ag-tmaWeR) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:23 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:33:18 AM by AutoGen 5.18.5 .\" From the definitions ntpq-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/ntpq/ntpq.mdoc.in b/ntpq/ntpq.mdoc.in index 1a99ca824..6103752b7 100644 --- a/ntpq/ntpq.mdoc.in +++ b/ntpq/ntpq.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTPQ @NTPQ_MS@ User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntpq-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:20 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:33:24 AM by AutoGen 5.18.5 .\" From the definitions ntpq-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/ntpsnmpd/invoke-ntpsnmpd.texi b/ntpsnmpd/invoke-ntpsnmpd.texi index 47daf5c1a..e31ae2030 100644 --- a/ntpsnmpd/invoke-ntpsnmpd.texi +++ b/ntpsnmpd/invoke-ntpsnmpd.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-ntpsnmpd.texi) # -# It has been AutoGen-ed January 2, 2017 at 12:05:28 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:33:32 AM by AutoGen 5.18.5 # From the definitions ntpsnmpd-opts.def # and the template file agtexi-cmd.tpl @end ignore @@ -47,30 +47,31 @@ with a status code of 0. @exampleindent 0 @example -ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.8p9 -Usage: ntpsnmpd [ - [] | --[@{=| @}] ]... +ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.7p245 +USAGE: ntpsnmpd [ - [] | --[@{=| @}] ]... Flg Arg Option-Name Description -n no nofork Do not fork -p no syslog Log to syslog() Str agentxsocket The socket address ntpsnmpd uses to connect to net-snmpd - opt version output version information and exit - -? no help display extended usage information and exit - -! no more-help extended usage information passed thru pager - -> opt save-opts save the option state to a config file - -< Str load-opts load options from a config file - - disabled as '--no-load-opts' + opt version Output version information and exit + -? no help Display extended usage information and exit + -! no more-help Extended usage information passed thru pager + -> opt save-opts Save the option state to a config file + -< Str load-opts Load options from a config file + - disabled as --no-load-opts - may appear multiple times Options are specified by doubled hyphens and their name or by a single hyphen and the flag character. + The following option preset mechanisms are supported: - reading file $HOME/.ntprc - reading file ./.ntprc - examining environment variables named NTPSNMPD_* -Please send bug reports to: +please send bug reports to: http://bugs.ntp.org, bugs@@ntp.org @end example @exampleindent 4 diff --git a/ntpsnmpd/ntpsnmpd-opts.c b/ntpsnmpd/ntpsnmpd-opts.c index 5c09ca6b2..2be39c789 100644 --- a/ntpsnmpd/ntpsnmpd-opts.c +++ b/ntpsnmpd/ntpsnmpd-opts.c @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpsnmpd-opts.c) * - * It has been AutoGen-ed January 2, 2017 at 12:05:24 PM by AutoGen 5.18.5 + * It has been AutoGen-ed March 21, 2017 at 09:33:29 AM by AutoGen 5.18.5 * From the definitions ntpsnmpd-opts.def * and the template file options * @@ -50,7 +50,7 @@ extern "C" { #endif extern FILE * option_usage_fp; #define zCopyright (ntpsnmpd_opt_strs+0) -#define zLicenseDescrip (ntpsnmpd_opt_strs+344) +#define zLicenseDescrip (ntpsnmpd_opt_strs+355) #ifndef NULL @@ -60,15 +60,15 @@ extern FILE * option_usage_fp; /** * static const strings for ntpsnmpd options */ -static char const ntpsnmpd_opt_strs[1610] = -/* 0 */ "ntpsnmpd 4.2.8p9\n" +static char const ntpsnmpd_opt_strs[1643] = +/* 0 */ "ntpsnmpd 4.2.8p10-win-beta1\n" "Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n" "This is free software. It is licensed for use, modification and\n" "redistribution under the terms of the NTP License, copies of which\n" "can be seen at:\n" " \n" " \n\0" -/* 344 */ "Permission to use, copy, modify, and distribute this software and its\n" +/* 355 */ "Permission to use, copy, modify, and distribute this software and its\n" "documentation for any purpose with or without fee is hereby granted,\n" "provided that the above copyright notice appears in all copies and that\n" "both the copyright notice and this permission notice appear in supporting\n" @@ -78,47 +78,47 @@ static char const ntpsnmpd_opt_strs[1610] = "Time Foundation makes no representations about the suitability this\n" "software for any purpose. It is provided \"as is\" without express or\n" "implied warranty.\n\0" -/* 1012 */ "Do not fork\0" -/* 1024 */ "NOFORK\0" -/* 1031 */ "nofork\0" -/* 1038 */ "Log to syslog()\0" -/* 1054 */ "SYSLOG\0" -/* 1061 */ "syslog\0" -/* 1068 */ "The socket address ntpsnmpd uses to connect to net-snmpd\0" -/* 1125 */ "AGENTXSOCKET\0" -/* 1138 */ "agentxsocket\0" -/* 1151 */ "unix:/var/agentx/master\0" -/* 1175 */ "display extended usage information and exit\0" -/* 1219 */ "help\0" -/* 1224 */ "extended usage information passed thru pager\0" -/* 1269 */ "more-help\0" -/* 1279 */ "output version information and exit\0" -/* 1315 */ "version\0" -/* 1323 */ "save the option state to a config file\0" -/* 1362 */ "save-opts\0" -/* 1372 */ "load options from a config file\0" -/* 1404 */ "LOAD_OPTS\0" -/* 1414 */ "no-load-opts\0" -/* 1427 */ "no\0" -/* 1430 */ "NTPSNMPD\0" -/* 1439 */ "ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.8p9\n" +/* 1023 */ "Do not fork\0" +/* 1035 */ "NOFORK\0" +/* 1042 */ "nofork\0" +/* 1049 */ "Log to syslog()\0" +/* 1065 */ "SYSLOG\0" +/* 1072 */ "syslog\0" +/* 1079 */ "The socket address ntpsnmpd uses to connect to net-snmpd\0" +/* 1136 */ "AGENTXSOCKET\0" +/* 1149 */ "agentxsocket\0" +/* 1162 */ "unix:/var/agentx/master\0" +/* 1186 */ "display extended usage information and exit\0" +/* 1230 */ "help\0" +/* 1235 */ "extended usage information passed thru pager\0" +/* 1280 */ "more-help\0" +/* 1290 */ "output version information and exit\0" +/* 1326 */ "version\0" +/* 1334 */ "save the option state to a config file\0" +/* 1373 */ "save-opts\0" +/* 1383 */ "load options from a config file\0" +/* 1415 */ "LOAD_OPTS\0" +/* 1425 */ "no-load-opts\0" +/* 1438 */ "no\0" +/* 1441 */ "NTPSNMPD\0" +/* 1450 */ "ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.8p10-win-beta1\n" "Usage: %s [ - [] | --[{=| }] ]...\n\0" -/* 1542 */ "$HOME\0" -/* 1548 */ ".\0" -/* 1550 */ ".ntprc\0" -/* 1557 */ "http://bugs.ntp.org, bugs@ntp.org\0" -/* 1591 */ "\n\0" -/* 1593 */ "ntpsnmpd 4.2.8p9"; +/* 1564 */ "$HOME\0" +/* 1570 */ ".\0" +/* 1572 */ ".ntprc\0" +/* 1579 */ "http://bugs.ntp.org, bugs@ntp.org\0" +/* 1613 */ "\n\0" +/* 1615 */ "ntpsnmpd 4.2.8p10-win-beta1"; /** * nofork option description: */ /** Descriptive text for the nofork option */ -#define NOFORK_DESC (ntpsnmpd_opt_strs+1012) +#define NOFORK_DESC (ntpsnmpd_opt_strs+1023) /** Upper-cased name for the nofork option */ -#define NOFORK_NAME (ntpsnmpd_opt_strs+1024) +#define NOFORK_NAME (ntpsnmpd_opt_strs+1035) /** Name string for the nofork option */ -#define NOFORK_name (ntpsnmpd_opt_strs+1031) +#define NOFORK_name (ntpsnmpd_opt_strs+1042) /** Compiled in flag settings for the nofork option */ #define NOFORK_FLAGS (OPTST_DISABLED) @@ -126,11 +126,11 @@ static char const ntpsnmpd_opt_strs[1610] = * syslog option description: */ /** Descriptive text for the syslog option */ -#define SYSLOG_DESC (ntpsnmpd_opt_strs+1038) +#define SYSLOG_DESC (ntpsnmpd_opt_strs+1049) /** Upper-cased name for the syslog option */ -#define SYSLOG_NAME (ntpsnmpd_opt_strs+1054) +#define SYSLOG_NAME (ntpsnmpd_opt_strs+1065) /** Name string for the syslog option */ -#define SYSLOG_name (ntpsnmpd_opt_strs+1061) +#define SYSLOG_name (ntpsnmpd_opt_strs+1072) /** Compiled in flag settings for the syslog option */ #define SYSLOG_FLAGS (OPTST_DISABLED) @@ -138,13 +138,13 @@ static char const ntpsnmpd_opt_strs[1610] = * agentXSocket option description: */ /** Descriptive text for the agentXSocket option */ -#define AGENTXSOCKET_DESC (ntpsnmpd_opt_strs+1068) +#define AGENTXSOCKET_DESC (ntpsnmpd_opt_strs+1079) /** Upper-cased name for the agentXSocket option */ -#define AGENTXSOCKET_NAME (ntpsnmpd_opt_strs+1125) +#define AGENTXSOCKET_NAME (ntpsnmpd_opt_strs+1136) /** Name string for the agentXSocket option */ -#define AGENTXSOCKET_name (ntpsnmpd_opt_strs+1138) +#define AGENTXSOCKET_name (ntpsnmpd_opt_strs+1149) /** The compiled in default value for the agentXSocket option argument */ -#define AGENTXSOCKET_DFT_ARG (ntpsnmpd_opt_strs+1151) +#define AGENTXSOCKET_DFT_ARG (ntpsnmpd_opt_strs+1162) /** Compiled in flag settings for the agentXSocket option */ #define AGENTXSOCKET_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -152,11 +152,11 @@ static char const ntpsnmpd_opt_strs[1610] = /* * Help/More_Help/Version option descriptions: */ -#define HELP_DESC (ntpsnmpd_opt_strs+1175) -#define HELP_name (ntpsnmpd_opt_strs+1219) +#define HELP_DESC (ntpsnmpd_opt_strs+1186) +#define HELP_name (ntpsnmpd_opt_strs+1230) #ifdef HAVE_WORKING_FORK -#define MORE_HELP_DESC (ntpsnmpd_opt_strs+1224) -#define MORE_HELP_name (ntpsnmpd_opt_strs+1269) +#define MORE_HELP_DESC (ntpsnmpd_opt_strs+1235) +#define MORE_HELP_name (ntpsnmpd_opt_strs+1280) #define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT) #else #define MORE_HELP_DESC HELP_DESC @@ -169,14 +169,14 @@ static char const ntpsnmpd_opt_strs[1610] = # define VER_FLAGS (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \ OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT) #endif -#define VER_DESC (ntpsnmpd_opt_strs+1279) -#define VER_name (ntpsnmpd_opt_strs+1315) -#define SAVE_OPTS_DESC (ntpsnmpd_opt_strs+1323) -#define SAVE_OPTS_name (ntpsnmpd_opt_strs+1362) -#define LOAD_OPTS_DESC (ntpsnmpd_opt_strs+1372) -#define LOAD_OPTS_NAME (ntpsnmpd_opt_strs+1404) -#define NO_LOAD_OPTS_name (ntpsnmpd_opt_strs+1414) -#define LOAD_OPTS_pfx (ntpsnmpd_opt_strs+1427) +#define VER_DESC (ntpsnmpd_opt_strs+1290) +#define VER_name (ntpsnmpd_opt_strs+1326) +#define SAVE_OPTS_DESC (ntpsnmpd_opt_strs+1334) +#define SAVE_OPTS_name (ntpsnmpd_opt_strs+1373) +#define LOAD_OPTS_DESC (ntpsnmpd_opt_strs+1383) +#define LOAD_OPTS_NAME (ntpsnmpd_opt_strs+1415) +#define NO_LOAD_OPTS_name (ntpsnmpd_opt_strs+1425) +#define LOAD_OPTS_pfx (ntpsnmpd_opt_strs+1438) #define LOAD_OPTS_name (NO_LOAD_OPTS_name + 3) /** * Declare option callback procedures @@ -301,24 +301,24 @@ static tOptDesc optDesc[OPTION_CT] = { /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** Reference to the upper cased version of ntpsnmpd. */ -#define zPROGNAME (ntpsnmpd_opt_strs+1430) +#define zPROGNAME (ntpsnmpd_opt_strs+1441) /** Reference to the title line for ntpsnmpd usage. */ -#define zUsageTitle (ntpsnmpd_opt_strs+1439) +#define zUsageTitle (ntpsnmpd_opt_strs+1450) /** ntpsnmpd configuration file name. */ -#define zRcName (ntpsnmpd_opt_strs+1550) +#define zRcName (ntpsnmpd_opt_strs+1572) /** Directories to search for ntpsnmpd config files. */ static char const * const apzHomeList[3] = { - ntpsnmpd_opt_strs+1542, - ntpsnmpd_opt_strs+1548, + ntpsnmpd_opt_strs+1564, + ntpsnmpd_opt_strs+1570, NULL }; /** The ntpsnmpd program bug email address. */ -#define zBugsAddr (ntpsnmpd_opt_strs+1557) +#define zBugsAddr (ntpsnmpd_opt_strs+1579) /** Clarification/explanation of what ntpsnmpd does. */ -#define zExplain (ntpsnmpd_opt_strs+1591) +#define zExplain (ntpsnmpd_opt_strs+1613) /** Extra detail explaining what ntpsnmpd does. */ #define zDetail (NULL) /** The full version string for ntpsnmpd. */ -#define zFullVersion (ntpsnmpd_opt_strs+1593) +#define zFullVersion (ntpsnmpd_opt_strs+1615) /* extracted from optcode.tlib near line 364 */ #if defined(ENABLE_NLS) @@ -554,7 +554,7 @@ static void bogus_function(void) { translate option names. */ /* referenced via ntpsnmpdOptions.pzCopyright */ - puts(_("ntpsnmpd 4.2.8p9\n\ + puts(_("ntpsnmpd 4.2.8p10-win-beta1\n\ Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n\ This is free software. It is licensed for use, modification and\n\ redistribution under the terms of the NTP License, copies of which\n\ @@ -599,14 +599,14 @@ implied warranty.\n")); puts(_("load options from a config file")); /* referenced via ntpsnmpdOptions.pzUsageTitle */ - puts(_("ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.8p9\n\ + puts(_("ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.8p10-win-beta1\n\ Usage: %s [ - [] | --[{=| }] ]...\n")); /* referenced via ntpsnmpdOptions.pzExplain */ puts(_("\n")); /* referenced via ntpsnmpdOptions.pzFullVersion */ - puts(_("ntpsnmpd 4.2.8p9")); + puts(_("ntpsnmpd 4.2.8p10-win-beta1")); /* referenced via ntpsnmpdOptions.pzFullUsage */ puts(_("<<>>")); diff --git a/ntpsnmpd/ntpsnmpd-opts.h b/ntpsnmpd/ntpsnmpd-opts.h index fa5d46c01..45db03807 100644 --- a/ntpsnmpd/ntpsnmpd-opts.h +++ b/ntpsnmpd/ntpsnmpd-opts.h @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpsnmpd-opts.h) * - * It has been AutoGen-ed January 2, 2017 at 12:05:24 PM by AutoGen 5.18.5 + * It has been AutoGen-ed March 21, 2017 at 09:33:29 AM by AutoGen 5.18.5 * From the definitions ntpsnmpd-opts.def * and the template file options * @@ -76,9 +76,9 @@ typedef enum { /** count of all options for ntpsnmpd */ #define OPTION_CT 8 /** ntpsnmpd version */ -#define NTPSNMPD_VERSION "4.2.8p9" +#define NTPSNMPD_VERSION "4.2.8p10-win-beta1" /** Full ntpsnmpd version text */ -#define NTPSNMPD_FULL_VERSION "ntpsnmpd 4.2.8p9" +#define NTPSNMPD_FULL_VERSION "ntpsnmpd 4.2.8p10-win-beta1" /** * Interface defines for all options. Replace "n" with the UPPER_CASED diff --git a/ntpsnmpd/ntpsnmpd.1ntpsnmpdman b/ntpsnmpd/ntpsnmpd.1ntpsnmpdman index 83dfb8113..02017b2d9 100644 --- a/ntpsnmpd/ntpsnmpd.1ntpsnmpdman +++ b/ntpsnmpd/ntpsnmpd.1ntpsnmpdman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntpsnmpd 1ntpsnmpdman "02 Jan 2017" "4.2.8p9" "User Commands" +.TH ntpsnmpd 1ntpsnmpdman "21 Mar 2017" "4.2.8p10-win-beta1" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-GMaahS/ag-NNaadS) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:29 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:33:32 AM by AutoGen 5.18.5 .\" From the definitions ntpsnmpd-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc b/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc index 196d44113..dab198c53 100644 --- a/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc +++ b/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTPSNMPD 1ntpsnmpdmdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntpsnmpd-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:27 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:33:32 AM by AutoGen 5.18.5 .\" From the definitions ntpsnmpd-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/ntpsnmpd/ntpsnmpd.html b/ntpsnmpd/ntpsnmpd.html index bc0ec9e38..0d30c1c50 100644 --- a/ntpsnmpd/ntpsnmpd.html +++ b/ntpsnmpd/ntpsnmpd.html @@ -1,112 +1,79 @@ - - - + -ntpsnmpd: Network Time Protocol SNMP Daemon User’s Manual - - - - - - - - - - - - +ntpsnmpd: Network Time Protocol SNMP Daemon User's Manual + + + + + + + + +

          ntpsnmpd: Network Time Protocol SNMP Daemon User's Manual

          + - -

          ntpsnmpd: Network Time Protocol SNMP Daemon User’s Manual

          +
          +


          +Next: , +Previous: (dir), +Up: (dir) +
          +
          +

          ntpsnmpd: Network Time Protocol Query User Manual

          +

          The ntpsnmpd utility program is used to monitor NTP daemon ntpd +operations and determine performance. It uses the standard NTP mode 6 control - -

          Short Table of Contents

          +

          This document applies to version 4.2.8p10-win-beta1 of ntpsnmpd. -

          -
          - - -
          -

          -Next: , Previous: , Up: (dir)  

          +
          +


          +Next: , +Previous: Top, +Up: Top +
          - -

          ntpsnmpd: Network Time Protocol Query User Manual

          - -

          The ntpsnmpd utility program is used to monitor NTP daemon ntpd -operations and determine performance. It uses the standard NTP mode 6 control -

          -

          This document applies to version 4.2.8p9-win of ntpsnmpd. -

          - - - - - -
          - -
          -

          -Next: , Previous: , Up: Top  

          -
          - -

          1 Description

          + +

          Description

          The ntpsnmpd utility program provides an SNMP MIB agent for ntpd. -

          -
          - -
          -

          -Previous: , Up: Top  

          + +
          +


          +Previous: ntpsnmpd Description, +Up: Top +
          - -

          1.1 Usage

          -

          (what should we say here?) -


          + +

          Usage

          +

          (what should we say here?) + - - diff --git a/ntpsnmpd/ntpsnmpd.man.in b/ntpsnmpd/ntpsnmpd.man.in index bb721c750..c2ae27ee0 100644 --- a/ntpsnmpd/ntpsnmpd.man.in +++ b/ntpsnmpd/ntpsnmpd.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntpsnmpd @NTPSNMPD_MS@ "02 Jan 2017" "4.2.8p9" "User Commands" +.TH ntpsnmpd @NTPSNMPD_MS@ "21 Mar 2017" "4.2.8p10-win-beta1" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-GMaahS/ag-NNaadS) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:29 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:33:32 AM by AutoGen 5.18.5 .\" From the definitions ntpsnmpd-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/ntpsnmpd/ntpsnmpd.mdoc.in b/ntpsnmpd/ntpsnmpd.mdoc.in index f0364098d..6929ef829 100644 --- a/ntpsnmpd/ntpsnmpd.mdoc.in +++ b/ntpsnmpd/ntpsnmpd.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTPSNMPD @NTPSNMPD_MS@ User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntpsnmpd-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:27 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:33:32 AM by AutoGen 5.18.5 .\" From the definitions ntpsnmpd-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/packageinfo.sh b/packageinfo.sh index 8023e0282..4483962a7 100644 --- a/packageinfo.sh +++ b/packageinfo.sh @@ -70,7 +70,7 @@ esac special=win # prerelease can be empty, 'beta', or 'rc'. -prerelease= +prerelease=beta # ChangeLog starting tag (see also CommitLog-4.1.0) CLTAG=NTP_4_2_0 @@ -83,14 +83,14 @@ CLTAG=NTP_4_2_0 # - Numeric values increment # - empty 'increments' to 1 # - NEW 'increments' to empty -point=9 +point=10 ### betapoint is normally modified by script. # ntp-stable Beta number (betapoint) # Should be zeroed at release, and left at zero until first beta. # The first beta is -beta1. # betapoint is always zero in ntp-dev. -betapoint=0 +betapoint=1 ### rcpoint is normally modified by script except for GO. # RC number (rcpoint) diff --git a/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman b/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman index 939d3a1db..e374965fb 100644 --- a/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman +++ b/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH calc_tickadj 1calc_tickadjman "02 Jan 2017" "ntp (4.2.8p9)" "User Commands" +.TH calc_tickadj 1calc_tickadjman "21 Mar 2017" "ntp (4.2.8p10-win-beta1)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-tMaO6F/ag-0MaO4F) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:35 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:10 AM by AutoGen 5.18.5 .\" From the definitions calc_tickadj-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc b/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc index a76983806..06f47da9a 100644 --- a/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc +++ b/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt CALC_TICKADJ 1calc_tickadjmdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (calc_tickadj-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:37 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:10 AM by AutoGen 5.18.5 .\" From the definitions calc_tickadj-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/scripts/calc_tickadj/calc_tickadj.html b/scripts/calc_tickadj/calc_tickadj.html index d267b5959..9f1aefb27 100644 --- a/scripts/calc_tickadj/calc_tickadj.html +++ b/scripts/calc_tickadj/calc_tickadj.html @@ -3,7 +3,7 @@ calc_tickadj User's Manual - + @@ -14,26 +14,24 @@ pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } - span.sc { font-variant:small-caps } - span.roman { font-family:serif; font-weight:normal; } - span.sansserif { font-family:sans-serif; font-weight:normal; } + span.sc { font-variant:small-caps } + span.roman { font-family: serif; font-weight: normal; } -->

          calc_tickadj User's Manual

          -


          -Next: , +Next: , Previous: (dir), Up: (dir) - +

          calc_tickadj User's Manual

          This document describes the use of the NTP Project's calc_tickadj program. -This document applies to version 4.2.8p9-win of calc_tickadj. +This document applies to version 4.2.8p10-win-beta1 of calc_tickadj.

          Short Contents

          @@ -48,12 +46,10 @@ This document applies to version 4.2.8p9-win of calc_tickadj.
        - -


        -Previous: calc_tickadj Description, +Previous: calc_tickadj Description, Up: Top - +

        Invoking calc_tickadj

        @@ -86,32 +82,30 @@ current tick manually on command line. using the agtexi-cmd template and the option descriptions for the calc_tickadj program. -

        calc_tickadj help/usage (--help)

        +

        calc_tickadj help/usage (--help)

        This is the automatically generated usage text for calc_tickadj.

        The text printed is the same whether selected with the help option -(--help) or the more-help option (--more-help). more-help will print +(--help) or the more-help option (--more-help). more-help will print the usage text by passing it through a pager program. more-help is disabled on platforms without a working fork(2) function. The PAGER environment variable is -used to select the program, defaulting to more. Both will exit +used to select the program, defaulting to more. Both will exit with a status code of 0.

        calc_tickadj - Calculates "optimal" value for tick given ntp drift file. - Ver. 4.2.7p467
        @@ -126,13 +120,11 @@ Options are specified by doubled hyphens and their name or by a single
         hyphen and the flag character.
         

        drift-file option (-d)

        @@ -142,13 +134,11 @@ This is the “ntp drift file to use” option. This option takes a string argument. Use the specified drift file for calculations

        tick option (-t)

        @@ -158,20 +148,18 @@ This is the “tick value of this host” option. This option takes a number argument. The current tick which to adjustment will be calculated
        - -


        -Previous: calc_tickadj tick, +Previous: calc_tickadj tick, Up: calc_tickadj Invocation - +

        calc_tickadj exit status

        One of the following exit values will be returned:

        -
        0 (EXIT_SUCCESS)
        Successful program execution. -
        1 (EXIT_FAILURE)
        The operation failed or the command syntax was not valid. +
        0 (EXIT_SUCCESS)
        Successful program execution. +
        1 (EXIT_FAILURE)
        The operation failed or the command syntax was not valid.
        diff --git a/scripts/calc_tickadj/calc_tickadj.man.in b/scripts/calc_tickadj/calc_tickadj.man.in index 939d3a1db..e374965fb 100644 --- a/scripts/calc_tickadj/calc_tickadj.man.in +++ b/scripts/calc_tickadj/calc_tickadj.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH calc_tickadj 1calc_tickadjman "02 Jan 2017" "ntp (4.2.8p9)" "User Commands" +.TH calc_tickadj 1calc_tickadjman "21 Mar 2017" "ntp (4.2.8p10-win-beta1)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-tMaO6F/ag-0MaO4F) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:35 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:10 AM by AutoGen 5.18.5 .\" From the definitions calc_tickadj-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/scripts/calc_tickadj/calc_tickadj.mdoc.in b/scripts/calc_tickadj/calc_tickadj.mdoc.in index a76983806..06f47da9a 100644 --- a/scripts/calc_tickadj/calc_tickadj.mdoc.in +++ b/scripts/calc_tickadj/calc_tickadj.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt CALC_TICKADJ 1calc_tickadjmdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (calc_tickadj-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:37 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:10 AM by AutoGen 5.18.5 .\" From the definitions calc_tickadj-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/scripts/calc_tickadj/invoke-calc_tickadj.texi b/scripts/calc_tickadj/invoke-calc_tickadj.texi index 6062ca922..f5188ce8e 100644 --- a/scripts/calc_tickadj/invoke-calc_tickadj.texi +++ b/scripts/calc_tickadj/invoke-calc_tickadj.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-calc_tickadj.texi) # -# It has been AutoGen-ed January 2, 2017 at 12:03:38 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:29:10 AM by AutoGen 5.18.5 # From the definitions calc_tickadj-opts.def # and the template file agtexi-cmd.tpl @end ignore diff --git a/scripts/invoke-plot_summary.texi b/scripts/invoke-plot_summary.texi index 9591e57e2..d28801f30 100644 --- a/scripts/invoke-plot_summary.texi +++ b/scripts/invoke-plot_summary.texi @@ -1,35 +1,36 @@ -@node plot_summary Invocation -@section Invoking plot_summary -@pindex plot_summary -@cindex plot statistics generated by summary script +@node summary Invocation +@section Invoking summary +@pindex summary +@cindex compute various stastics from NTP stat files @ignore # -# EDIT THIS FILE WITH CAUTION (invoke-plot_summary.texi) +# EDIT THIS FILE WITH CAUTION (invoke-summary.texi) # -# It has been AutoGen-ed January 2, 2017 at 12:03:57 PM by AutoGen 5.18.5 -# From the definitions plot_summary-opts.def +# It has been AutoGen-ed March 21, 2017 at 09:29:47 AM by AutoGen 5.18.5 +# From the definitions summary-opts.def # and the template file agtexi-cmd.tpl @end ignore + + This section was generated by @strong{AutoGen}, -using the @code{agtexi-cmd} template and the option descriptions for the @code{plot_summary} program. +using the @code{agtexi-cmd} template and the option descriptions for the @code{summary} program. @menu -* plot_summary usage:: plot_summary help/usage (@option{--help}) -* plot_summary directory:: directory option -* plot_summary identifier:: identifier option -* plot_summary peer:: peer option -* plot_summary plot-term:: plot-term option -* plot_summary output-file:: output-file option -* plot_summary exit status:: exit status +* summary usage:: summary help/usage (@option{--help}) +* summary directory:: directory option +* summary end-date:: end-date option +* summary output-directory:: output-directory option +* summary start-date:: start-date option +* summary exit status:: exit status @end menu -@node plot_summary usage -@subsection plot_summary help/usage (@option{--help}) -@cindex plot_summary help +@node summary usage +@subsection summary help/usage (@option{--help}) +@cindex summary help -This is the automatically generated usage text for plot_summary. +This is the automatically generated usage text for summary. The text printed is the same whether selected with the @code{help} option (@option{--help}) or the @code{more-help} option (@option{--more-help}). @code{more-help} will print @@ -41,17 +42,15 @@ with a status code of 0. @exampleindent 0 @example -plot_summary - plot statistics generated by summary script - Ver. 4.2.8p9 -USAGE: plot_summary [ - [] | --[@{=| @}] ]... - - --directory=str Where the summary files are - --identifier=str Origin of the data - --offset-limit=float Limit of absolute offset - --peer=str Peers to generate plots for - - may appear multiple times - --plot-term=str Gnuplot terminal - --output-file=str Output file - --dont-wait Don't wait for keystroke between plots +summary - compute various stastics from NTP stat files - Ver. 4.2.8p9 +USAGE: summary [ - [] | --[@{=| @}] ]... + + --directory=str Directory containing stat files + --end-date=num End date + --output-directory=str Output directory + --peer-dist-limit=float Peer dist limit + --skip-time-steps=float Ignore time offsets larger that this + --start-date=num Start date -?, --help Display usage information and exit --more-help Pass the extended usage text through a pager @@ -60,57 +59,40 @@ hyphen and the flag character. @end example @exampleindent 4 -@node plot_summary directory +@node summary directory @subsection directory option -@cindex plot_summary-directory - -This is the ``where the summary files are'' option. -This option takes a string argument. - The directory where the @code{plot_summary} will search for the - *_summary files generated by @code{summary} script. -@node plot_summary identifier -@subsection identifier option -@cindex plot_summary-identifier - -This is the ``origin of the data'' option. -This option takes a string argument. - Where does the plotted data come from, default to string "host" plus - current hostname -@node plot_summary peer -@subsection peer option -@cindex plot_summary-peer - -This is the ``peers to generate plots for'' option. -This option takes a string argument. - -@noindent -This option has some usage constraints. It: -@itemize @bullet -@item -may appear an unlimited number of times. -@end itemize - - By default the peer_summary plots are not generated. Use this option to - specify list of peers if you want to generate plots for them. -@node plot_summary plot-term -@subsection plot-term option -@cindex plot_summary-plot-term +@cindex summary-directory -This is the ``gnuplot terminal'' option. +This is the ``directory containing stat files'' option. This option takes a string argument. - This is string is passed directly to the @code{gnuplot set terminal} - command. Default is @code{x11} if @code{DISPLAY} is set and - @code{dumb} is it's not'. See output from @code(gnuplot -e "set - terminal") for the list of available options. -@node plot_summary output-file -@subsection output-file option -@cindex plot_summary-output-file - -This is the ``output file'' option. + The directory where @code{ntpd} will search for .stat files generated + by @code{ntpd}. +@node summary end-date +@subsection end-date option +@cindex summary-end-date + +This is the ``end date'' option. +This option takes a number argument. + Process all files with the date suffix less or equal to value of this + option. Defaults to today minus one day (Use @code{date -u +%Y%m%d}) + to get the timestamp. +@node summary output-directory +@subsection output-directory option +@cindex summary-output-directory + +This is the ``output directory'' option. This option takes a str argument. - Output file for @code{gnuplot}, default to stdout. -@node plot_summary exit status -@subsection plot_summary exit status + The output directory @code{summary} will write all output files to. +@node summary start-date +@subsection start-date option +@cindex summary-start-date + +This is the ``start date'' option. +This option takes a num argument. + Process all files with the date suffix more or equal to value of + this option. Defaults to 197000101. +@node summary exit status +@subsection summary exit status One of the following exit values will be returned: @table @samp diff --git a/scripts/invoke-summary.texi b/scripts/invoke-summary.texi index c0c53524b..b216fbdbe 100644 --- a/scripts/invoke-summary.texi +++ b/scripts/invoke-summary.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-summary.texi) # -# It has been AutoGen-ed January 2, 2017 at 12:04:00 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:39:45 AM by AutoGen 5.18.5 # From the definitions summary-opts.def # and the template file agtexi-cmd.tpl @end ignore @@ -42,7 +42,7 @@ with a status code of 0. @exampleindent 0 @example -summary - compute various stastics from NTP stat files - Ver. 4.2.8p9 +summary - compute various stastics from NTP stat files - Ver. 4.2.8p10-win-beta1 USAGE: summary [ - [] | --[@{=| @}] ]... --directory=str Directory containing stat files diff --git a/scripts/ntp-wait/invoke-ntp-wait.texi b/scripts/ntp-wait/invoke-ntp-wait.texi index e92a56fd1..530ddf655 100644 --- a/scripts/ntp-wait/invoke-ntp-wait.texi +++ b/scripts/ntp-wait/invoke-ntp-wait.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-ntp-wait.texi) # -# It has been AutoGen-ed January 2, 2017 at 12:03:41 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:29:16 AM by AutoGen 5.18.5 # From the definitions ntp-wait-opts.def # and the template file agtexi-cmd.tpl @end ignore diff --git a/scripts/ntp-wait/ntp-wait-opts b/scripts/ntp-wait/ntp-wait-opts index a77eff6a8..891272621 100644 --- a/scripts/ntp-wait/ntp-wait-opts +++ b/scripts/ntp-wait/ntp-wait-opts @@ -1,6 +1,6 @@ # EDIT THIS FILE WITH CAUTION (ntp-wait-opts) # -# It has been AutoGen-ed January 2, 2017 at 12:03:39 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:29:15 AM by AutoGen 5.18.5 # From the definitions ntp-wait-opts.def # and the template file perlopt @@ -40,7 +40,7 @@ sub processOptions { 'help|?', 'more-help')); $usage = <<'USAGE'; -ntp-wait - Wait for ntpd to stabilize the system clock - Ver. 4.2.8p9 +ntp-wait - Wait for ntpd to stabilize the system clock - Ver. 4.2.8p10-win-beta1 USAGE: ntp-wait [ - [] | --[{=| }] ]... -n, --tries=num Number of times to check ntpd diff --git a/scripts/ntp-wait/ntp-wait.1ntp-waitman b/scripts/ntp-wait/ntp-wait.1ntp-waitman index d8db9fc76..59e0b2ca7 100644 --- a/scripts/ntp-wait/ntp-wait.1ntp-waitman +++ b/scripts/ntp-wait/ntp-wait.1ntp-waitman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntp-wait 1ntp-waitman "02 Jan 2017" "ntp (4.2.8p9)" "User Commands" +.TH ntp-wait 1ntp-waitman "21 Mar 2017" "ntp (4.2.8p10-win-beta1)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-c1aWOG/ag-e2aGMG) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:42 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:15 AM by AutoGen 5.18.5 .\" From the definitions ntp-wait-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc b/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc index 0d27e0e32..a5e73e559 100644 --- a/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc +++ b/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTP_WAIT 1ntp-waitmdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntp-wait-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:40 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:16 AM by AutoGen 5.18.5 .\" From the definitions ntp-wait-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/scripts/ntp-wait/ntp-wait.html b/scripts/ntp-wait/ntp-wait.html index d6a0306b6..762d2e0a1 100644 --- a/scripts/ntp-wait/ntp-wait.html +++ b/scripts/ntp-wait/ntp-wait.html @@ -1,106 +1,68 @@ - - - + -Ntp-wait User’s Manual - - - - - - - - - - - - +Ntp-wait User's Manual + + + + + + + - - -

        Ntp-wait User’s Manual

        - - - - - - -
        -

        -Previous: , Up: (dir)  

        + +

        Ntp-wait User's Manual

        +
        +


        +Next: , +Previous: (dir), +Up: (dir) +
        -

        Top

        -

        This document describes the use of the NTP Project’s ntp-wait program. -

        -

        If there are time-sensitive applications, +

        This document describes the use of the NTP Project's ntp-wait program. + +

        If there are time-sensitive applications, the proper sequence of events is to run ntpd -g as early as possible, then invoke all of the non-time-sensitive process, run ntp-wait to block -until the system’s time has stabilized and synchronized, +until the system's time has stabilized and synchronized, and only then start any applicaitons (like database servers) that require accurate and stable time. -

        -

        This document applies to version 4.2.8p9-win of ntp-wait. -

        - -

        Short Table of Contents

        -
        -
      • 1 Invoking ntp-wait
      • +

        This document applies to version 4.2.8p10-win-beta1 of ntp-wait. +

        +

        Short Contents

        +
          +
        + - - - - - -
        +
        +


        -
        -

        -Up: Top  

        +
        - -

        1 Invoking ntp-wait

        - - +

        0.1 Invoking ntp-wait

        +

        -

        ntp-wait +

        ntp-wait will send at most num-tries queries to @@ -110,58 +72,50 @@ sleeping for after each status return that says ntpd(8) has not yet produced a synchronized and stable system clock. -

        -

        ntp-wait + +

        ntp-wait will do this quietly, unless the -v -flag is provided. +flag is provided. This can be useful at boot time, to delay the boot sequence until after ntpd -g has set the time. -

        -

        This section was generated by AutoGen, + +

        This section was generated by AutoGen, using the agtexi-cmd template and the option descriptions for the ntp-wait program. -

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

        -Next: , Up: ntp-wait Invocation  

        + + + +
        +


        +Next: , +Up: ntp-wait Invocation +
        - -

        1.1 ntp-wait help/usage (--help)

        - - -

        This is the automatically generated usage text for ntp-wait. -

        -

        The text printed is the same whether selected with the help option -(--help) or the more-help option (--more-help). more-help will print -the usage text by passing it through a pager program. + +

        0.1.1 ntp-wait help/usage (--help)

        + +

        +This is the automatically generated usage text for ntp-wait. + +

        The text printed is the same whether selected with the help option +(--help) or the more-help option (--more-help). more-help will print +the usage text by passing it through a pager program. more-help is disabled on platforms without a working fork(2) function. The PAGER environment variable is -used to select the program, defaulting to more. Both will exit +used to select the program, defaulting to more. Both will exit with a status code of 0. -

        -
        +
        ntp-wait - Wait for ntpd to stabilize the system clock - Ver. 4.2.8p9
        -USAGE: ntp-wait [ -<flag> [<val>] | --<name>[{=| }<val>] ]... 
        +USAGE: ntp-wait [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
         
             -n, --tries=num              Number of times to check ntpd
             -s, --sleep=num              How long to sleep between tries
        @@ -171,86 +125,84 @@ USAGE: ntp-wait [ -<flag> [<val>] | --<name>[{=| }<val>]
         
         Options are specified by doubled hyphens and their name or by a single
         hyphen and the flag character.
        -
        - -
        - -
        -

        -Next: , Previous: , Up: ntp-wait Invocation  

        + +
        +


        +Next: , +Previous: ntp-wait usage, +Up: ntp-wait Invocation +
        - -

        1.2 tries option (-n)

        - -

        This is the “number of times to check ntpd” option. -This option takes a number argument. +

        0.1.2 tries option (-n)

        + +

        +This is the “number of times to check ntpd” option. +This option takes a number argument. The maximum number of times we will check ntpd to see if - it has been able to synchronize and stabilize the system clock. -


        - -
        -

        -Next: , Previous: , Up: ntp-wait Invocation  

        + it has been able to synchronize and stabilize the system clock. +
        +


        +Next: , +Previous: ntp-wait tries, +Up: ntp-wait Invocation +
        - -

        1.3 sleep option (-s)

        - - -

        This is the “how long to sleep between tries” option. -This option takes a number argument secs-between-tries. - We will sleep for secs-between-tries after each query - of ntpd that returns "the time is not yet stable". -


        - -
        -

        -Next: , Previous: , Up: ntp-wait Invocation  

        + +

        0.1.3 sleep option (-s)

        + +

        +This is the “how long to sleep between tries” option. +This option takes a number argument secs-between-tries. + We will sleep for secs-between-tries after each query + of ntpd that returns "the time is not yet stable". +

        +


        +Next: , +Previous: ntp-wait sleep, +Up: ntp-wait Invocation +
        - -

        1.4 verbose option (-v)

        - - -

        This is the “be verbose” option. - By default, ntp-wait is silent. - With this option, ntp-wait will provide status information. -


        - -
        -

        -Next: , Previous: , Up: ntp-wait Invocation  

        + +

        0.1.4 verbose option (-v)

        + +

        +This is the “be verbose” option. + By default, ntp-wait is silent. + With this option, ntp-wait will provide status information. +

        +


        +Next: , +Previous: ntp-wait verbose, +Up: ntp-wait Invocation +
        - -

        1.5 ntp-wait exit status

        + +

        0.1.5 ntp-wait exit status

        One of the following exit values will be returned: -

        -
        0 (EXIT_SUCCESS)
        -

        Successful program execution. -

        -
        1 (EXIT_FAILURE)
        -

        The operation failed or the command syntax was not valid. -

        +
        +
        0 (EXIT_SUCCESS)
        Successful program execution. +
        1 (EXIT_FAILURE)
        The operation failed or the command syntax was not valid.
        -
        - -
        -

        -Next: , Previous: , Up: ntp-wait Invocation  

        +
        +


        +Next: , +Previous: ntp-wait exit status, +Up: ntp-wait Invocation +
        - -

        1.6 ntp-wait Authors

        -
        - -
        -

        -Previous: , Up: ntp-wait Invocation  

        + +

        0.1.6 ntp-wait Authors

        + +
        +


        +Previous: ntp-wait Authors, +Up: ntp-wait Invocation +
        - -

        1.7 ntp-wait Notes

        -
        +

        0.1.7 ntp-wait Notes

        + - - diff --git a/scripts/ntp-wait/ntp-wait.man.in b/scripts/ntp-wait/ntp-wait.man.in index 38abb65d3..0a557ee63 100644 --- a/scripts/ntp-wait/ntp-wait.man.in +++ b/scripts/ntp-wait/ntp-wait.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntp-wait @NTP_WAIT_MS@ "02 Jan 2017" "ntp (4.2.8p9)" "User Commands" +.TH ntp-wait @NTP_WAIT_MS@ "21 Mar 2017" "ntp (4.2.8p10-win-beta1)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-c1aWOG/ag-e2aGMG) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:42 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:15 AM by AutoGen 5.18.5 .\" From the definitions ntp-wait-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/scripts/ntp-wait/ntp-wait.mdoc.in b/scripts/ntp-wait/ntp-wait.mdoc.in index 5b837a024..74f059ed7 100644 --- a/scripts/ntp-wait/ntp-wait.mdoc.in +++ b/scripts/ntp-wait/ntp-wait.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTP_WAIT @NTP_WAIT_MS@ User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntp-wait-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:40 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:16 AM by AutoGen 5.18.5 .\" From the definitions ntp-wait-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/scripts/ntpsweep/invoke-ntpsweep.texi b/scripts/ntpsweep/invoke-ntpsweep.texi index e7a0bb58b..a4d8e1168 100644 --- a/scripts/ntpsweep/invoke-ntpsweep.texi +++ b/scripts/ntpsweep/invoke-ntpsweep.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-ntpsweep.texi) # -# It has been AutoGen-ed January 2, 2017 at 12:03:45 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:29:23 AM by AutoGen 5.18.5 # From the definitions ntpsweep-opts.def # and the template file agtexi-cmd.tpl @end ignore diff --git a/scripts/ntpsweep/ntpsweep-opts b/scripts/ntpsweep/ntpsweep-opts index 267540289..f9a345888 100644 --- a/scripts/ntpsweep/ntpsweep-opts +++ b/scripts/ntpsweep/ntpsweep-opts @@ -1,6 +1,6 @@ # EDIT THIS FILE WITH CAUTION (ntpsweep-opts) # -# It has been AutoGen-ed January 2, 2017 at 12:03:43 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:29:21 AM by AutoGen 5.18.5 # From the definitions ntpsweep-opts.def # and the template file perlopt @@ -43,7 +43,7 @@ sub processOptions { 'help|?', 'more-help')); $usage = <<'USAGE'; -ntpsweep - Print various informations about given ntp servers - Ver. 4.2.8p9 +ntpsweep - Print various informations about given ntp servers - Ver. 4.2.8p10-win-beta1 USAGE: ntpsweep [ - [] | --[{=| }] ]... [hostfile] -l, --host-list=str Host to execute actions on diff --git a/scripts/ntpsweep/ntpsweep.1ntpsweepman b/scripts/ntpsweep/ntpsweep.1ntpsweepman index efb243f82..caa19b1f5 100644 --- a/scripts/ntpsweep/ntpsweep.1ntpsweepman +++ b/scripts/ntpsweep/ntpsweep.1ntpsweepman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntpsweep 1ntpsweepman "02 Jan 2017" "ntp (4.2.8p9)" "User Commands" +.TH ntpsweep 1ntpsweepman "21 Mar 2017" "ntp (4.2.8p10-win-beta1)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-vHaOXH/ag-iIaGUH) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:46 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:22 AM by AutoGen 5.18.5 .\" From the definitions ntpsweep-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc b/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc index b24fdb7e6..7f460b06f 100644 --- a/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc +++ b/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTPSWEEP 1ntpsweepmdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntpsweep-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:44 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:22 AM by AutoGen 5.18.5 .\" From the definitions ntpsweep-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/scripts/ntpsweep/ntpsweep.html b/scripts/ntpsweep/ntpsweep.html index 21189953a..3486b989d 100644 --- a/scripts/ntpsweep/ntpsweep.html +++ b/scripts/ntpsweep/ntpsweep.html @@ -1,140 +1,95 @@ - - - + -ntpsweep User’s Manual - - - - - - - - - - - - +ntpsweep User's Manual + + + + + + + - - -

        ntpsweep User’s Manual

        - - - - - - -
        -

        -Previous: , Up: (dir)  

        + +

        ntpsweep User's Manual

        +
        +


        +Next: , +Previous: (dir), +Up: (dir) +
        -

        Top

        -

        This document describes the use of the NTP Project’s ntpsweep program. -

        -

        This document applies to version 4.2.8p9-win of ntpsweep. -

        - -

        Short Table of Contents

        +

        This document describes the use of the NTP Project's ntpsweep program. -

        -
      • 1 Invoking ntpsweep
      • +

        This document applies to version 4.2.8p10-win-beta1 of ntpsweep. +

        +

        Short Contents

        +
          +
        + - - - - - -
        +
        +


        -
        -

        -Up: Top  

        +
        - -

        1 Invoking ntpsweep

        - - -

        ntpsweep +

        0.1 Invoking ntpsweep

        + +

        +ntpsweep prints per host the NTP stratum level, the clock offset in seconds, the daemon version, the operating system and the processor. Optionally recursing through all peers. -

        -

        This section was generated by AutoGen, + +

        This section was generated by AutoGen, using the agtexi-cmd template and the option descriptions for the ntpsweep program. -

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

        -Next: , Up: ntpsweep Invocation  

        + + + + - -

        1.1 ntpsweep help/usage (--help)

        - - -

        This is the automatically generated usage text for ntpsweep. -

        -

        The text printed is the same whether selected with the help option -(--help) or the more-help option (--more-help). more-help will print -the usage text by passing it through a pager program. + +

        0.1.1 ntpsweep help/usage (--help)

        + +

        +This is the automatically generated usage text for ntpsweep. + +

        The text printed is the same whether selected with the help option +(--help) or the more-help option (--more-help). more-help will print +the usage text by passing it through a pager program. more-help is disabled on platforms without a working fork(2) function. The PAGER environment variable is -used to select the program, defaulting to more. Both will exit +used to select the program, defaulting to more. Both will exit with a status code of 0. -

        -
        +
        ntpsweep - Print various informations about given ntp servers - Ver. 4.2.8p9
         USAGE: ntpsweep [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [hostfile]
         
        @@ -148,102 +103,99 @@ USAGE: ntpsweep [ -<flag> [<val>] | --<name>[{=| }<val>]
         
         Options are specified by doubled hyphens and their name or by a single
         hyphen and the flag character.
        -
        - -
        - -
        -

        -Next: , Previous: , Up: ntpsweep Invocation  

        + +
        +


        +Next: , +Previous: ntpsweep usage, +Up: ntpsweep Invocation +
        - -

        1.2 host-list option (-l)

        - -

        This is the “host to execute actions on” option. +

        0.1.2 host-list option (-l)

        + +

        +This is the “host to execute actions on” option. This option takes a string argument. -

        -

        This option has some usage constraints. It: -

          -
        • may appear an unlimited number of times. -
        - -

        Use this option to specify the host on which this script operates. - May appear multiple times. -


        - -
        -

        -Next: , Previous: , Up: ntpsweep Invocation  

        + +

        This option has some usage constraints. It: +

          +
        • may appear an unlimited number of times. +
        + +

        Use this option to specify the host on which this script operates. + May appear multiple times. +

        +


        +Next: , +Previous: ntpsweep host-list, +Up: ntpsweep Invocation +
        - -

        1.3 peers option (-p)

        - - -

        This is the “recursively list all peers a host synchronizes to” option. -This option has no ‘doc’ documentation. -


        - -
        -

        -Next: , Previous: , Up: ntpsweep Invocation  

        + +

        0.1.3 peers option (-p)

        + +

        +This is the “recursively list all peers a host synchronizes to” option. +This option has no doc documentation. +

        +


        +Next: , +Previous: ntpsweep peers, +Up: ntpsweep Invocation +
        - -

        1.4 maxlevel option (-m)

        - - -

        This is the “traverse peers up to this level (4 is a reasonable number)” option. -This option takes a number argument. -This option has no ‘doc’ documentation. -


        - -
        -

        -Next: , Previous: , Up: ntpsweep Invocation  

        + +

        0.1.4 maxlevel option (-m)

        + +

        +This is the “traverse peers up to this level (4 is a reasonable number)” option. +This option takes a number argument. +This option has no doc documentation. +

        +


        +Next: , +Previous: ntpsweep maxlevel, +Up: ntpsweep Invocation +
        - -

        1.5 strip option (-s)

        - -

        This is the “strip this string from hostnames” option. -This option takes a string argument. -This option has no ‘doc’ documentation. -


        - -
        -

        -Next: , Previous: , Up: ntpsweep Invocation  

        +

        0.1.5 strip option (-s)

        + +

        +This is the “strip this string from hostnames” option. +This option takes a string argument. +This option has no doc documentation. +

        +


        +Next: , +Previous: ntpsweep strip, +Up: ntpsweep Invocation +
        - -

        1.6 host option (-h)

        - -

        This is the “specify a single host” option. -This option takes a string argument. -This option has no ‘doc’ documentation. -

        -

        NOTE: THIS OPTION IS DEPRECATED -


        - -
        -

        -Previous: , Up: ntpsweep Invocation  

        +

        0.1.6 host option (-h)

        + +

        +This is the “specify a single host” option. +This option takes a string argument. +This option has no doc documentation. + +

        NOTE: THIS OPTION IS DEPRECATED +

        +


        +Previous: ntpsweep host, +Up: ntpsweep Invocation +
        - -

        1.7 ntpsweep exit status

        + +

        0.1.7 ntpsweep exit status

        One of the following exit values will be returned: -

        -
        0 (EXIT_SUCCESS)
        -

        Successful program execution. -

        -
        1 (EXIT_FAILURE)
        -

        The operation failed or the command syntax was not valid. -

        +
        +
        0 (EXIT_SUCCESS)
        Successful program execution. +
        1 (EXIT_FAILURE)
        The operation failed or the command syntax was not valid.
        -
        - + - - diff --git a/scripts/ntpsweep/ntpsweep.man.in b/scripts/ntpsweep/ntpsweep.man.in index efb243f82..caa19b1f5 100644 --- a/scripts/ntpsweep/ntpsweep.man.in +++ b/scripts/ntpsweep/ntpsweep.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntpsweep 1ntpsweepman "02 Jan 2017" "ntp (4.2.8p9)" "User Commands" +.TH ntpsweep 1ntpsweepman "21 Mar 2017" "ntp (4.2.8p10-win-beta1)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-vHaOXH/ag-iIaGUH) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:46 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:22 AM by AutoGen 5.18.5 .\" From the definitions ntpsweep-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/scripts/ntpsweep/ntpsweep.mdoc.in b/scripts/ntpsweep/ntpsweep.mdoc.in index b24fdb7e6..7f460b06f 100644 --- a/scripts/ntpsweep/ntpsweep.mdoc.in +++ b/scripts/ntpsweep/ntpsweep.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTPSWEEP 1ntpsweepmdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntpsweep-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:44 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:22 AM by AutoGen 5.18.5 .\" From the definitions ntpsweep-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/scripts/ntptrace/invoke-ntptrace.texi b/scripts/ntptrace/invoke-ntptrace.texi index bba48019f..c9118bcfb 100644 --- a/scripts/ntptrace/invoke-ntptrace.texi +++ b/scripts/ntptrace/invoke-ntptrace.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-ntptrace.texi) # -# It has been AutoGen-ed January 2, 2017 at 12:03:49 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:29:29 AM by AutoGen 5.18.5 # From the definitions ntptrace-opts.def # and the template file agtexi-cmd.tpl @end ignore diff --git a/scripts/ntptrace/ntptrace-opts b/scripts/ntptrace/ntptrace-opts index 921ef109d..171c55958 100644 --- a/scripts/ntptrace/ntptrace-opts +++ b/scripts/ntptrace/ntptrace-opts @@ -1,6 +1,6 @@ # EDIT THIS FILE WITH CAUTION (ntptrace-opts) # -# It has been AutoGen-ed January 2, 2017 at 12:03:48 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:29:27 AM by AutoGen 5.18.5 # From the definitions ntptrace-opts.def # and the template file perlopt @@ -40,7 +40,7 @@ sub processOptions { 'help|?', 'more-help')); $usage = <<'USAGE'; -ntptrace - Trace peers of an NTP server - Ver. 4.2.8p9 +ntptrace - Trace peers of an NTP server - Ver. 4.2.8p10-win-beta1 USAGE: ntptrace [ - [] | --[{=| }] ]... [host] -n, --numeric Print IP addresses instead of hostnames diff --git a/scripts/ntptrace/ntptrace.1ntptraceman b/scripts/ntptrace/ntptrace.1ntptraceman index 198e2b22c..6f3a1bd29 100644 --- a/scripts/ntptrace/ntptrace.1ntptraceman +++ b/scripts/ntptrace/ntptrace.1ntptraceman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntptrace 1ntptraceman "02 Jan 2017" "ntp (4.2.8p9)" "User Commands" +.TH ntptrace 1ntptraceman "21 Mar 2017" "ntp (4.2.8p10-win-beta1)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-W9ai4I/ag-8.aa1I) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:51 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:28 AM by AutoGen 5.18.5 .\" From the definitions ntptrace-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/scripts/ntptrace/ntptrace.1ntptracemdoc b/scripts/ntptrace/ntptrace.1ntptracemdoc index acb472cd0..ec5eae020 100644 --- a/scripts/ntptrace/ntptrace.1ntptracemdoc +++ b/scripts/ntptrace/ntptrace.1ntptracemdoc @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTPTRACE 1ntptracemdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntptrace-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:48 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:28 AM by AutoGen 5.18.5 .\" From the definitions ntptrace-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/scripts/ntptrace/ntptrace.html b/scripts/ntptrace/ntptrace.html index 716b2d472..b6e3438fd 100644 --- a/scripts/ntptrace/ntptrace.html +++ b/scripts/ntptrace/ntptrace.html @@ -1,156 +1,112 @@ - - - + -Ntptrace User’s Manual - - - - - - - - - - - - +Ntptrace User's Manual + + + + + + + + +

        Ntptrace User's Manual

        +
        +


        +Next: , +Previous: (dir), +Up: (dir) +
        +
        - -

        Ntptrace User’s Manual

        - - - +

        Simple Network Time Protocol User Manual

        +

        This document describes the use of the NTP Project's ntptrace program. +This document applies to version 4.2.8p10-win-beta1 of ntptrace. - -

        -

        -Previous: , Up: (dir)  

        -
        - -

        Simple Network Time Protocol User Manual

        - -

        This document describes the use of the NTP Project’s ntptrace program. -This document applies to version 4.2.8p9-win of ntptrace. -

        - -

        Short Table of Contents

        - -
        -
          -
        • 1 Invoking ntptrace
        • + + - - - - - -
          - -
          -

          -Up: Top  

          +
          +


          +Previous: ntptrace Description, +Up: Top +
          - -

          1 Invoking ntptrace

          - - -

          ntptrace is a perl script that uses the ntpq utility program to follow +

          Invoking ntptrace

          + +

          +ntptrace is a perl script that uses the ntpq utility program to follow the chain of NTP servers from a given host back to the primary time source. For ntptrace to work properly, each of these servers must implement the NTP Control and Monitoring Protocol specified in RFC 1305 and enable NTP Mode 6 packets. -

          -

          If given no arguments, ntptrace starts with localhost. Here is an example of + +

          If given no arguments, ntptrace starts with localhost. Here is an example of the output from ntptrace: -

          -
          -
          % ntptrace 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 (left to right): the host name, the host stratum, + +

               % ntptrace 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 (left to right): the host name, the host stratum, the time offset between that host and the local host (as measured by -ntptrace; this is why it is not always zero for "localhost"), the host +ntptrace; this is why it is not always zero for "localhost"), the host synchronization distance, and (only for stratum-1 servers) the reference clock ID. All times are given in seconds. Note that 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. -

          -

          This section was generated by AutoGen, +

          This section was generated by AutoGen, using the agtexi-cmd template and the option descriptions for the ntptrace program. -

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

          -Next: , Up: ntptrace Invocation  

          + + + + - -

          1.1 ntptrace help/usage (--help)

          - - -

          This is the automatically generated usage text for ntptrace. -

          -

          The text printed is the same whether selected with the help option -(--help) or the more-help option (--more-help). more-help will print -the usage text by passing it through a pager program. + +

          ntptrace help/usage (--help)

          + +

          +This is the automatically generated usage text for ntptrace. + +

          The text printed is the same whether selected with the help option +(--help) or the more-help option (--more-help). more-help will print +the usage text by passing it through a pager program. more-help is disabled on platforms without a working fork(2) function. The PAGER environment variable is -used to select the program, defaulting to more. Both will exit +used to select the program, defaulting to more. Both will exit with a status code of 0. -

          -
          +
          ntptrace - Trace peers of an NTP server - Ver. 4.2.8p9
           USAGE: ntptrace [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [host]
           
          @@ -162,68 +118,63 @@ USAGE: ntptrace [ -<flag> [<val>] | --<name>[{=| }<val>]
           
           Options are specified by doubled hyphens and their name or by a single
           hyphen and the flag character.
          -
          - -
          - -
          -

          -Next: , Previous: , Up: ntptrace usage  

          + +
          +


          +Next: , +Previous: ntptrace usage, +Up: ntptrace Invocation +
          - -

          1.1.1 numeric option (-n)

          - -

          This is the “print ip addresses instead of hostnames” option. +

          numeric option (-n)

          + +

          +This is the “print ip addresses instead of hostnames” option. Output hosts as dotted-quad numeric format rather than converting to -the canonical host names. -


          - -
          -

          -Next: , Previous: , Up: ntptrace usage  

          +the canonical host names. +
          +


          +Next: , +Previous: ntptrace numeric, +Up: ntptrace Invocation +
          - -

          1.1.2 max-hosts option (-m)

          - - -

          This is the “maximum number of peers to trace” option. -This option takes a number argument. -This option has no ‘doc’ documentation. -


          - -
          -

          -Next: , Previous: , Up: ntptrace usage  

          + +

          max-hosts option (-m)

          + +

          +This is the “maximum number of peers to trace” option. +This option takes a number argument. +This option has no doc documentation. +

          - -

          1.1.3 host option (-r)

          - - -

          This is the “single remote host” option. -This option takes a string argument. -This option has no ‘doc’ documentation. -


          - -
          -

          -Previous: , Up: ntptrace usage  

          + +

          host option (-r)

          + +

          +This is the “single remote host” option. +This option takes a string argument. +This option has no doc documentation. +

          +


          +Previous: ntptrace host, +Up: ntptrace Invocation +
          - -

          1.1.4 ntptrace exit status

          + +

          ntptrace exit status

          One of the following exit values will be returned: -

          -
          0 (EXIT_SUCCESS)
          -

          Successful program execution. -

          -
          1 (EXIT_FAILURE)
          -

          The operation failed or the command syntax was not valid. -

          +
          +
          0 (EXIT_SUCCESS)
          Successful program execution. +
          1 (EXIT_FAILURE)
          The operation failed or the command syntax was not valid.
          -
          - + - - diff --git a/scripts/ntptrace/ntptrace.man.in b/scripts/ntptrace/ntptrace.man.in index 7279c824a..be01112f9 100644 --- a/scripts/ntptrace/ntptrace.man.in +++ b/scripts/ntptrace/ntptrace.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntptrace @NTPTRACE_MS@ "02 Jan 2017" "ntp (4.2.8p9)" "User Commands" +.TH ntptrace @NTPTRACE_MS@ "21 Mar 2017" "ntp (4.2.8p10-win-beta1)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-W9ai4I/ag-8.aa1I) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:51 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:28 AM by AutoGen 5.18.5 .\" From the definitions ntptrace-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/scripts/ntptrace/ntptrace.mdoc.in b/scripts/ntptrace/ntptrace.mdoc.in index 7bd557157..57a09e53c 100644 --- a/scripts/ntptrace/ntptrace.mdoc.in +++ b/scripts/ntptrace/ntptrace.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTPTRACE @NTPTRACE_MS@ User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntptrace-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:48 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:28 AM by AutoGen 5.18.5 .\" From the definitions ntptrace-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/scripts/plot_summary-opts b/scripts/plot_summary-opts index 986f36db4..552077b82 100644 --- a/scripts/plot_summary-opts +++ b/scripts/plot_summary-opts @@ -1,6 +1,6 @@ # EDIT THIS FILE WITH CAUTION (plot_summary-opts) # -# It has been AutoGen-ed January 2, 2017 at 12:03:56 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:29:42 AM by AutoGen 5.18.5 # From the definitions plot_summary-opts.def # and the template file perlopt @@ -46,7 +46,7 @@ sub processOptions { 'help|?', 'more-help')); $usage = <<'USAGE'; -plot_summary - plot statistics generated by summary script - Ver. 4.2.8p9 +plot_summary - plot statistics generated by summary script - Ver. 4.2.8p10-win-beta1 USAGE: plot_summary [ - [] | --[{=| }] ]... --directory=str Where the summary files are diff --git a/scripts/plot_summary.1plot_summaryman b/scripts/plot_summary.1plot_summaryman index 722cda789..68af772ed 100644 --- a/scripts/plot_summary.1plot_summaryman +++ b/scripts/plot_summary.1plot_summaryman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH plot_summary 1plot_summaryman "02 Jan 2017" "ntp (4.2.8p9)" "User Commands" +.TH plot_summary 1plot_summaryman "21 Mar 2017" "ntp (4.2.8p10-win-beta1)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-tAaqTK/ag-dCaqRK) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:58 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:42 AM by AutoGen 5.18.5 .\" From the definitions plot_summary-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/scripts/plot_summary.1plot_summarymdoc b/scripts/plot_summary.1plot_summarymdoc index 03372d94a..95c34d45e 100644 --- a/scripts/plot_summary.1plot_summarymdoc +++ b/scripts/plot_summary.1plot_summarymdoc @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt PLOT_SUMMARY 1plot_summarymdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (plot_summary-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:59 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:42 AM by AutoGen 5.18.5 .\" From the definitions plot_summary-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/scripts/plot_summary.html b/scripts/plot_summary.html index 0ef04a0ba..b60a9ef02 100644 --- a/scripts/plot_summary.html +++ b/scripts/plot_summary.html @@ -1,253 +1,181 @@ - - - + -Plot_summary User’s Manual - - - - - - - - - - +Plot_summary User's Manual + + + + + + + + + +

          Plot_summary User's Manual

          +
          +


          +Next: , +Previous: (dir), +Up: (dir) +
          +
          +

          Plot_summary User Manual

          - +

          This document describes the use of the NTP Project's plot_summary program. +This document applies to version 4.2.8p10-win-beta1 of plot_summary. - -

          Plot_summary User’s Manual

          +
          +

          Short Contents

          + +
          + +
          +


          + +
          +
          +

          Invoking summary

          +

          - -

          -

          -Previous: , Up: (dir)  

          -
          - -

          Plot_summary User Manual

          - -

          This document describes the use of the NTP Project’s plot_summary program. -This document applies to version 4.2.8p9-win of plot_summary. -

          - -

          Short Table of Contents

          - -
          -
            -
          • 1 Invoking plot_summary
          • +

            This section was generated by AutoGen, +using the agtexi-cmd template and the option descriptions for the summary program. + +

            + + +

            summary help/usage (--help)

            - - - - +

            +This is the automatically generated usage text for summary. -


            - -
            -

            -Up: Top  

            -
            - -

            1 Invoking plot_summary

            - - - - -

            This section was generated by AutoGen, -using the agtexi-cmd template and the option descriptions for the plot_summary program. -

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

            1.1 plot_summary help/usage (--help)

            - - -

            This is the automatically generated usage text for plot_summary. -

            -

            The text printed is the same whether selected with the help option -(--help) or the more-help option (--more-help). more-help will print -the usage text by passing it through a pager program. +

            The text printed is the same whether selected with the help option +(--help) or the more-help option (--more-help). more-help will print +the usage text by passing it through a pager program. more-help is disabled on platforms without a working fork(2) function. The PAGER environment variable is -used to select the program, defaulting to more. Both will exit +used to select the program, defaulting to more. Both will exit with a status code of 0. -

            -
            -
            plot_summary - plot statistics generated by summary script - Ver. 4.2.8p9
            -USAGE: plot_summary [ -<flag> [<val>] | --<name>[{=| }<val>] ]... 
            -
            -        --directory=str          Where the summary files are
            -        --identifier=str         Origin of the data
            -        --offset-limit=float     Limit of absolute offset
            -        --peer=str               Peers to generate plots for
            -                                   - may appear multiple times
            -        --plot-term=str          Gnuplot terminal
            -        --output-file=str        Output file
            -        --dont-wait              Don't wait for keystroke between plots
            +
            +
            summary - compute various stastics from NTP stat files - Ver. 4.2.8p9
            +USAGE: summary [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
            +
            +        --directory=str          Directory containing stat files
            +        --end-date=num           End date
            +        --output-directory=str   Output directory
            +        --peer-dist-limit=float  Peer dist limit
            +        --skip-time-steps=float  Ignore time offsets larger that this
            +        --start-date=num         Start date
                 -?, --help                   Display usage information and exit
                     --more-help              Pass the extended usage text through a pager
             
             Options are specified by doubled hyphens and their name or by a single
             hyphen and the flag character.
            -
            - -
            - - - -

            1.1.1 directory option

            - - -

            This is the “where the summary files are” option. -This option takes a string argument. - The directory where the plot_summary will search for the - *_summary files generated by summary script. -


            - -
            -

            -Next: , Previous: , Up: plot_summary usage  

            + +
            +


            +Next: , +Previous: summary usage, +Up: summary Invocation +
            - -

            1.1.2 identifier option

            - - -

            This is the “origin of the data” option. -This option takes a string argument. - Where does the plotted data come from, default to string "host" plus - current hostname -


            - -
            -

            -Next: , Previous: , Up: plot_summary usage  

            + +

            directory option

            + +

            +This is the “directory containing stat files” option. +This option takes a string argument. + The directory where ntpd will search for .stat files generated + by ntpd. +

            - -

            1.1.3 peer option

            - - -

            This is the “peers to generate plots for” option. -This option takes a string argument. -

            -

            This option has some usage constraints. It: -

              -
            • may appear an unlimited number of times. -
            - -

            By default the peer_summary plots are not generated. Use this option to - specify list of peers if you want to generate plots for them. -


            - -
            -

            -Next: , Previous: , Up: plot_summary usage  

            + +

            end-date option

            + +

            +This is the “end date” option. +This option takes a number argument. + Process all files with the date suffix less or equal to value of this + option. Defaults to today minus one day (Use date -u +%Y%m%d) + to get the timestamp. +

            +


            +Next: , +Previous: summary end-date, +Up: summary Invocation +
            - -

            1.1.4 plot-term option

            - - -

            This is the “gnuplot terminal” option. -This option takes a string argument. - This is string is passed directly to the gnuplot set terminal - command. Default is x11 if DISPLAY is set and - dumb is it’s not’. See output from (gnuplot -e "set - terminal") for the list of available options. -


            - -
            -

            -Next: , Previous: , Up: plot_summary usage  

            + +

            output-directory option

            + +

            +This is the “output directory” option. +This option takes a str argument. + The output directory summary will write all output files to. +

            - -

            1.1.5 output-file option

            - - -

            This is the “output file” option. -This option takes a str argument. - Output file for gnuplot, default to stdout. -


            - -
            -

            -Previous: , Up: plot_summary usage  

            + +

            start-date option

            + +

            +This is the “start date” option. +This option takes a num argument. + Process all files with the date suffix more or equal to value of + this option. Defaults to 197000101. +

            +


            +Previous: summary start-date, +Up: summary Invocation +
            - -

            1.1.6 plot_summary exit status

            + +

            summary exit status

            One of the following exit values will be returned: -

            -
            0 (EXIT_SUCCESS)
            -

            Successful program execution. -

            -
            1 (EXIT_FAILURE)
            -

            The operation failed or the command syntax was not valid. -

            +
            +
            0 (EXIT_SUCCESS)
            Successful program execution. +
            1 (EXIT_FAILURE)
            The operation failed or the command syntax was not valid.
            -
            - + - - diff --git a/scripts/plot_summary.man.in b/scripts/plot_summary.man.in index 722cda789..68af772ed 100644 --- a/scripts/plot_summary.man.in +++ b/scripts/plot_summary.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH plot_summary 1plot_summaryman "02 Jan 2017" "ntp (4.2.8p9)" "User Commands" +.TH plot_summary 1plot_summaryman "21 Mar 2017" "ntp (4.2.8p10-win-beta1)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-tAaqTK/ag-dCaqRK) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:58 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:42 AM by AutoGen 5.18.5 .\" From the definitions plot_summary-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/scripts/plot_summary.mdoc.in b/scripts/plot_summary.mdoc.in index 03372d94a..95c34d45e 100644 --- a/scripts/plot_summary.mdoc.in +++ b/scripts/plot_summary.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt PLOT_SUMMARY 1plot_summarymdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (plot_summary-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:59 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:42 AM by AutoGen 5.18.5 .\" From the definitions plot_summary-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/scripts/summary-opts b/scripts/summary-opts index ccfdbd1ac..915dda6fb 100644 --- a/scripts/summary-opts +++ b/scripts/summary-opts @@ -1,6 +1,6 @@ # EDIT THIS FILE WITH CAUTION (summary-opts) # -# It has been AutoGen-ed January 2, 2017 at 12:03:56 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:29:42 AM by AutoGen 5.18.5 # From the definitions summary-opts.def # and the template file perlopt @@ -44,7 +44,7 @@ sub processOptions { 'help|?', 'more-help')); $usage = <<'USAGE'; -summary - compute various stastics from NTP stat files - Ver. 4.2.8p9 +summary - compute various stastics from NTP stat files - Ver. 4.2.8p10-win-beta1 USAGE: summary [ - [] | --[{=| }] ]... --directory=str Directory containing stat files diff --git a/scripts/summary.1summaryman b/scripts/summary.1summaryman index 90f59fc2b..b92791241 100644 --- a/scripts/summary.1summaryman +++ b/scripts/summary.1summaryman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH summary 1summaryman "02 Jan 2017" "ntp (4.2.8p9)" "User Commands" +.TH summary 1summaryman "21 Mar 2017" "ntp (4.2.8p10-win-beta1)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-vWai1K/ag-CYaiUK) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:04:01 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:44 AM by AutoGen 5.18.5 .\" From the definitions summary-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/scripts/summary.1summarymdoc b/scripts/summary.1summarymdoc index 154ea0df0..157de27fa 100644 --- a/scripts/summary.1summarymdoc +++ b/scripts/summary.1summarymdoc @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt SUMMARY 1summarymdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (summary-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:04:02 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:44 AM by AutoGen 5.18.5 .\" From the definitions summary-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/scripts/summary.html b/scripts/summary.html index 161bbf975..4b5ea4e97 100644 --- a/scripts/summary.html +++ b/scripts/summary.html @@ -1,139 +1,95 @@ - - - + -Summary User’s Manual - - - - - - - - - - - - +Summary User's Manual + + + + + + + + +

            Summary User's Manual

            +
            +


            +Next: , +Previous: (dir), +Up: (dir) +
            +
            - -

            Summary User’s Manual

            - - - +

            Summary User Manual

            +

            This document describes the use of the NTP Project's summary program. +This document applies to version 4.2.8p10-win-beta1 of summary. - -

            -

            -Previous: , Up: (dir)  

            -
            - -

            Summary User Manual

            - -

            This document describes the use of the NTP Project’s summary program. -This document applies to version 4.2.8p9-win of summary. -

            - -

            Short Table of Contents

            - -
            -
              -
            • 1 Invoking summary
            • +
              +

              Short Contents

              +
              + - - - - - -
              - -
              -

              -Up: Top  

              +
              +


              +Previous: summary Description, +Up: Top +
              - -

              1 Invoking summary

              - - +

              Invoking summary

              +

              - -

              This section was generated by AutoGen, +

              This section was generated by AutoGen, using the agtexi-cmd template and the option descriptions for the summary program. -

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

              -Next: , Up: summary Invocation  

              + + + + - -

              1.1 summary help/usage (--help)

              - - -

              This is the automatically generated usage text for summary. -

              -

              The text printed is the same whether selected with the help option -(--help) or the more-help option (--more-help). more-help will print -the usage text by passing it through a pager program. + +

              summary help/usage (--help)

              + +

              +This is the automatically generated usage text for summary. + +

              The text printed is the same whether selected with the help option +(--help) or the more-help option (--more-help). more-help will print +the usage text by passing it through a pager program. more-help is disabled on platforms without a working fork(2) function. The PAGER environment variable is -used to select the program, defaulting to more. Both will exit +used to select the program, defaulting to more. Both will exit with a status code of 0. -

              -
              -
              summary - compute various stastics from NTP stat files - Ver. 4.2.8p9
              -USAGE: summary [ -<flag> [<val>] | --<name>[{=| }<val>] ]... 
              +
              +
              summary - compute various stastics from NTP stat files - Ver. 4.2.8p10-win-beta1
              +USAGE: summary [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
               
                       --directory=str          Directory containing stat files
                       --end-date=num           End date
              @@ -146,85 +102,81 @@ USAGE: summary [ -<flag> [<val>] | --<name>[{=| }<val>]
               
               Options are specified by doubled hyphens and their name or by a single
               hyphen and the flag character.
              -
              - -
              - -
              -

              -Next: , Previous: , Up: summary usage  

              + +
              +


              +Next: , +Previous: summary usage, +Up: summary Invocation +
              - -

              1.1.1 directory option

              - -

              This is the “directory containing stat files” option. -This option takes a string argument. +

              directory option

              + +

              +This is the “directory containing stat files” option. +This option takes a string argument. The directory where ntpd will search for .stat files generated - by ntpd. -


              - -
              -

              -Next: , Previous: , Up: summary usage  

              + by ntpd. + - -

              1.1.2 end-date option

              - -

              This is the “end date” option. -This option takes a number argument. +

              end-date option

              + +

              +This is the “end date” option. +This option takes a number argument. Process all files with the date suffix less or equal to value of this option. Defaults to today minus one day (Use date -u +%Y%m%d) - to get the timestamp. -


              - -
              -

              -Next: , Previous: , Up: summary usage  

              + to get the timestamp. +
              +


              +Next: , +Previous: summary end-date, +Up: summary Invocation +
              - -

              1.1.3 output-directory option

              - - -

              This is the “output directory” option. -This option takes a str argument. - The output directory summary will write all output files to. -


              - -
              -

              -Next: , Previous: , Up: summary usage  

              + +

              output-directory option

              + +

              +This is the “output directory” option. +This option takes a str argument. + The output directory summary will write all output files to. +

              - -

              1.1.4 start-date option

              - -

              This is the “start date” option. -This option takes a num argument. +

              start-date option

              + +

              +This is the “start date” option. +This option takes a num argument. Process all files with the date suffix more or equal to value of - this option. Defaults to 197000101. -


              - -
              -

              -Previous: , Up: summary usage  

              + this option. Defaults to 197000101. +
              +


              +Previous: summary start-date, +Up: summary Invocation +
              - -

              1.1.5 summary exit status

              + +

              summary exit status

              One of the following exit values will be returned: -

              -
              0 (EXIT_SUCCESS)
              -

              Successful program execution. -

              -
              1 (EXIT_FAILURE)
              -

              The operation failed or the command syntax was not valid. -

              +
              +
              0 (EXIT_SUCCESS)
              Successful program execution. +
              1 (EXIT_FAILURE)
              The operation failed or the command syntax was not valid.
              -
              - + - - diff --git a/scripts/summary.man.in b/scripts/summary.man.in index 90f59fc2b..b92791241 100644 --- a/scripts/summary.man.in +++ b/scripts/summary.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH summary 1summaryman "02 Jan 2017" "ntp (4.2.8p9)" "User Commands" +.TH summary 1summaryman "21 Mar 2017" "ntp (4.2.8p10-win-beta1)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-vWai1K/ag-CYaiUK) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:04:01 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:44 AM by AutoGen 5.18.5 .\" From the definitions summary-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/scripts/summary.mdoc.in b/scripts/summary.mdoc.in index 154ea0df0..157de27fa 100644 --- a/scripts/summary.mdoc.in +++ b/scripts/summary.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt SUMMARY 1summarymdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (summary-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:04:02 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:44 AM by AutoGen 5.18.5 .\" From the definitions summary-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/scripts/update-leap/invoke-update-leap.texi b/scripts/update-leap/invoke-update-leap.texi index 8c7f7df3c..b5c8b3389 100644 --- a/scripts/update-leap/invoke-update-leap.texi +++ b/scripts/update-leap/invoke-update-leap.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-update-leap.texi) # -# It has been AutoGen-ed January 2, 2017 at 12:03:53 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:29:34 AM by AutoGen 5.18.5 # From the definitions update-leap-opts.def # and the template file agtexi-cmd.tpl @end ignore diff --git a/scripts/update-leap/update-leap-opts b/scripts/update-leap/update-leap-opts index c60921633..7091908eb 100644 --- a/scripts/update-leap/update-leap-opts +++ b/scripts/update-leap/update-leap-opts @@ -1,6 +1,6 @@ # EDIT THIS FILE WITH CAUTION (update-leap-opts) # -# It has been AutoGen-ed January 2, 2017 at 12:03:56 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:29:34 AM by AutoGen 5.18.5 # From the definitions update-leap-opts.def # and the template file perlopt @@ -46,7 +46,7 @@ sub processOptions { 'help|?', 'more-help')); $usage = <<'USAGE'; -update-leap - leap-seconds file manager/updater - Ver. 4.2.8p9 +update-leap - leap-seconds file manager/updater - Ver. 4.2.8p10-win-beta1 USAGE: update-leap [ - [] | --[{=| }] ]... -s, --source-url=str The URL of the master copy of the leapseconds file diff --git a/scripts/update-leap/update-leap.1update-leapman b/scripts/update-leap/update-leap.1update-leapman index 555d00b39..cf93ac632 100644 --- a/scripts/update-leap/update-leap.1update-leapman +++ b/scripts/update-leap/update-leap.1update-leapman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH update-leap 1update-leapman "02 Jan 2017" "ntp (4.2.8p9)" "User Commands" +.TH update-leap 1update-leapman "21 Mar 2017" "ntp (4.2.8p10-win-beta1)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-iEaidK/ag-tGai_J) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:55 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:34 AM by AutoGen 5.18.5 .\" From the definitions update-leap-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/scripts/update-leap/update-leap.1update-leapmdoc b/scripts/update-leap/update-leap.1update-leapmdoc index 06c582b8a..a9ca38577 100644 --- a/scripts/update-leap/update-leap.1update-leapmdoc +++ b/scripts/update-leap/update-leap.1update-leapmdoc @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt UPDATE_LEAP 1update-leapmdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (update-leap-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:52 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:34 AM by AutoGen 5.18.5 .\" From the definitions update-leap-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/scripts/update-leap/update-leap.html b/scripts/update-leap/update-leap.html index 4aa08490b..9311c95f7 100644 --- a/scripts/update-leap/update-leap.html +++ b/scripts/update-leap/update-leap.html @@ -1,168 +1,119 @@ - - - + -update-leap User’s Manual - - - - - - - - - - - - +update-leap User's Manual + + + + + + + - - -

              update-leap User’s Manual

              - - - - - - -
              -

              -Previous: , Up: (dir)  

              + +

              update-leap User's Manual

              +
              +


              +Next: , +Previous: (dir), +Up: (dir) +
              -

              Top

              -

              This document describes the use of the NTP Project’s update-leap program. -

              -

              This document applies to version 4.2.8p9-win of update-leap. -

              - -

              Short Table of Contents

              +

              This document describes the use of the NTP Project's update-leap program. -

              -
            • 1 Invoking update-leap
            • +

              This document applies to version 4.2.8p10-win-beta1 of update-leap. +

              +

              Short Contents

              +
                +
              + - - - - - -
              +
              +


              -
              -

              -Up: Top  

              +
              - -

              1 Invoking update-leap

              - - +

              0.1 Invoking update-leap

              +

              -

              update-leap +

              update-leap will validate the file currently on the local system and if necessary, updates leap-second definition file. -

              -

              Ordinarily, the file is found using the "leapfile" directive in -ntp.conf(5). + +

              Ordinarily, the file is found using the "leapfile" directive in +ntp.conf(5). However, an alternate location can be specified on the command line. -

              -

              If the file does not exist, is not valid, has expired, or is expiring soon, + +

              If the file does not exist, is not valid, has expired, or is expiring soon, a new copy will be downloaded. If the new copy validates, it is installed and NTP is (optionally) restarted. -

              -

              If the current file is acceptable, no download or restart occurs. -

              -

              -c can also be used to invoke another script to perform administrative -functions, e.g. to copy the file to other local systems. + +

              If the current file is acceptable, no download or restart occurs. + +

              -c can also be used to invoke another script to perform administrative +functions, e.g. to copy the file to other local systems. .PP This can be run as a cron job. As the file is rarely updated, and leap seconds are announced at least one month in advance (usually longer), it -need not be run more frequently than about once every three weeks. +need not be run more frequently than about once every three weeks. .PP -For cron-friendly behavior, define CRONJOB=1 in the crontab. +For cron-friendly behavior, define CRONJOB=1 in the crontab. .PP This script depends on$REQUIREDCMDS -

              -

              This section was generated by AutoGen, + +

              This section was generated by AutoGen, using the agtexi-cmd template and the option descriptions for the update-leap program. -

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

              -Next: , Up: update-leap Invocation  

              + + + + - -

              1.1 update-leap help/usage (--help)

              - - -

              This is the automatically generated usage text for update-leap. -

              -

              The text printed is the same whether selected with the help option -(--help) or the more-help option (--more-help). more-help will print -the usage text by passing it through a pager program. + +

              0.1.1 update-leap help/usage (--help)

              + +

              +This is the automatically generated usage text for update-leap. + +

              The text printed is the same whether selected with the help option +(--help) or the more-help option (--more-help). more-help will print +the usage text by passing it through a pager program. more-help is disabled on platforms without a working fork(2) function. The PAGER environment variable is -used to select the program, defaulting to more. Both will exit +used to select the program, defaulting to more. Both will exit with a status code of 0. -

              -
              +
                  update-leap
                       Usage: $0 [options] [leapfile]
               
              @@ -172,7 +123,7 @@ with a status code of 0.
                       Specify the URL of the master copy to download $LEAPSRC -d Specify
                       the filename on the local system $LEAPFILE -e Specify how long (in
                       days) before expiration the file is to be refreshed. Note that
              -        larger values imply more frequent refreshes. "$PREFETCH" -f Specify
              +        larger values imply more frequent refreshes. "$PREFETCH" -f Specify
                       location of ntp.conf (used to make sure leapfile directive is
                       present and to default leapfile) $NTPCONF -F Force update even if
                       current file is OK and not close to expiring. -r Specify number of
              @@ -191,7 +142,7 @@ with a status code of 0.
               
                       $0 will validate the file currently on the local system
               
              -        Ordinarily, the file is found using the "leapfile" directive in
              +        Ordinarily, the file is found using the "leapfile" directive in
                       $NTPCONF. However, an alternate location can be specified on the
                       command line.
               
              @@ -213,159 +164,160 @@ with a status code of 0.
                       For cron-friendly behavior, define CRONJOB=1 in the crontab.
               
                       Version $VERSION
              -
              - -
              - -
              -

              -Next: , Previous: , Up: update-leap Invocation  

              + + - -

              1.2 source-url option (-s)

              - -

              This is the “the url of the master copy of the leapseconds file” option. -This option takes a string argument. +

              0.1.2 source-url option (-s)

              + +

              +This is the “the url of the master copy of the leapseconds file” option. +This option takes a string argument. Specify the URL of the master copy to download $LEAPSRC -


              - -
              -

              -Next: , Previous: , Up: update-leap Invocation  

              + - -

              1.3 ipv4 option (-4)

              - - -

              This is the “use only ipv4 addresses for dns name resolution” option. -

              -

              This option has some usage constraints. It: -

                -
              • must not appear in combination with any of the following options: -ipv6. -
              - -

              Force DNS resolution of following host names on the command line - to the IPv4 namespace. + +

              0.1.3 ipv4 option (-4)

              + +

              +This is the “use only ipv4 addresses for dns name resolution” option. + +

              This option has some usage constraints. It: +

                +
              • must not appear in combination with any of the following options: +ipv6. +
              + +

              Force DNS resolution of following host names on the command line + to the IPv4 namespace. _EndOfDoc_; ; -

              -

              flag = + +

              flag = name = ipv6; flags-cant = ipv4, prefer; value = 6; - descrip = "Use only IPv6 addresses for DNS name resolution"; + descrip = "Use only IPv6 addresses for DNS name resolution"; doc = <<- _EndOfDoc_ Force DNS resolution of following host names on the command line - to the IPv6 namespace. + to the IPv6 namespace. _EndOfDoc_; ; -

              -

              flag = + +

              flag = name = prefer; flags-cant = ipv4, ipv6; value = p; arg-type = keyword; keyword = 4, 6; - descrip = ’Prefer IPv4 or IPv6 (as specified) addresses, but use either’; + descrip = 'Prefer IPv4 or IPv6 (as specified) addresses, but use either'; doc = <<- _EndOfDoc_ -Prefer IPv4 or IPv6 (as specified) addresses, but use either. -


              - -
              -

              -Next: , Previous: , Up: update-leap Invocation  

              +Prefer IPv4 or IPv6 (as specified) addresses, but use either. + - -

              1.4 destination option (-d)

              - -

              This is the “filename on the local system” option. -This option takes a string argument float. -The name to use to store the leapfile on the local system. +

              0.1.4 destination option (-d)

              + +

              +This is the “filename on the local system” option. +This option takes a string argument float. +The name to use to store the leapfile on the local system. $LEAPFILE -


              - -
              -

              -Next: , Previous: , Up: update-leap Invocation  

              + - -

              1.5 expiration option (-e)

              - -

              This is the “refresh the leapfile this long before it expires” option. -This option takes a string argument. +

              0.1.5 expiration option (-e)

              + +

              +This is the “refresh the leapfile this long before it expires” option. +This option takes a string argument. Specify how long before expiration the file is to be refreshed -Units are required, e.g. "-e 60 days" Note that larger values -imply more frequent refreshes. -"$PREFETCH" -


              - -
              -

              -Next: , Previous: , Up: update-leap Invocation  

              +Units are required, e.g. "-e 60 days" Note that larger values +imply more frequent refreshes. +"$PREFETCH" + - -

              1.6 ntp-conf-file option (-f)

              - -

              This is the “location of the ntp.conf file” option. -This option takes a string argument. +

              0.1.6 ntp-conf-file option (-f)

              + +

              +This is the “location of the ntp.conf file” option. +This option takes a string argument. Specify location of ntp.conf (used to make sure leapfile directive is present and to default leapfile) /etc/ntp.conf -


              - -
              -

              -Next: , Previous: , Up: update-leap Invocation  

              + - -

              1.7 force-update option (-F)

              - - -

              This is the “force update of the leapfile” option. -Force update even if current file is OK and not close to expiring. -


              - -
              -

              -Next: , Previous: , Up: update-leap Invocation  

              + +

              0.1.7 force-update option (-F)

              + +

              +This is the “force update of the leapfile” option. +Force update even if current file is OK and not close to expiring. +

              - -

              1.8 update-leap exit status

              + +

              0.1.8 update-leap exit status

              One of the following exit values will be returned: -

              -
              0 (EXIT_SUCCESS)
              -

              Successful program execution. -

              -
              1 (EXIT_FAILURE)
              -

              The operation failed or the command syntax was not valid. -

              +
              +
              0 (EXIT_SUCCESS)
              Successful program execution. +
              1 (EXIT_FAILURE)
              The operation failed or the command syntax was not valid.
              -
              - -
              -

              -Next: , Previous: , Up: update-leap Invocation  

              + - -

              1.9 update-leap Usage

              -
              - -
              -

              -Previous: , Up: update-leap Invocation  

              + +

              0.1.9 update-leap Usage

              + +
              +


              +Previous: update-leap Usage, +Up: update-leap Invocation +
              - -

              1.10 update-leap Authors

              -
              +

              0.1.10 update-leap Authors

              + - - diff --git a/scripts/update-leap/update-leap.man.in b/scripts/update-leap/update-leap.man.in index 555d00b39..cf93ac632 100644 --- a/scripts/update-leap/update-leap.man.in +++ b/scripts/update-leap/update-leap.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH update-leap 1update-leapman "02 Jan 2017" "ntp (4.2.8p9)" "User Commands" +.TH update-leap 1update-leapman "21 Mar 2017" "ntp (4.2.8p10-win-beta1)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-iEaidK/ag-tGai_J) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:55 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:34 AM by AutoGen 5.18.5 .\" From the definitions update-leap-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/scripts/update-leap/update-leap.mdoc.in b/scripts/update-leap/update-leap.mdoc.in index 06c582b8a..a9ca38577 100644 --- a/scripts/update-leap/update-leap.mdoc.in +++ b/scripts/update-leap/update-leap.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt UPDATE_LEAP 1update-leapmdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (update-leap-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:52 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:34 AM by AutoGen 5.18.5 .\" From the definitions update-leap-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/sntp/invoke-sntp.texi b/sntp/invoke-sntp.texi index 8226c8065..f8ced7acc 100644 --- a/sntp/invoke-sntp.texi +++ b/sntp/invoke-sntp.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-sntp.texi) # -# It has been AutoGen-ed January 2, 2017 at 12:03:33 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:29:00 AM by AutoGen 5.18.5 # From the definitions sntp-opts.def # and the template file agtexi-cmd.tpl @end ignore @@ -101,58 +101,62 @@ with a status code of 0. @exampleindent 0 @example -sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p9 -Usage: sntp [ - [] | --[@{=| @}] ]... \ +sntp - standard Simple Network Time Protocol client program - Ver. 4.2.7p245 +USAGE: sntp [ - [] | --[@{=| @}] ]... \ [ hostname-or-IP ...] Flg Arg Option-Name Description -4 no ipv4 Force IPv4 DNS name resolution - - prohibits the option 'ipv6' + - prohibits these options: + ipv6 -6 no ipv6 Force IPv6 DNS name resolution - - prohibits the option 'ipv4' - -a Num authentication Enable authentication with the key auth-keynumber + - prohibits these options: + ipv4 + -a Num authentication Enable authentication with the key @@var@{auth-keynumber@} + -B Num bctimeout The number of seconds to wait for broadcasts -b Str broadcast Listen to the address specified for broadcast time sync - may appear multiple times -c Str concurrent Concurrently query all IPs returned for host-name - may appear multiple times -d no debug-level Increase debug verbosity level - may appear multiple times - -D Num set-debug-level Set the debug verbosity level + -D Str set-debug-level Set the debug verbosity level - may appear multiple times -g Num gap The gap (in milliseconds) between time requests -K Fil kod KoD history filename - -k Fil keyfile Look in this file for the key specified with -a + -k Fil keyfile Look in this file for the key specified with @@option@{-a@} -l Fil logfile Log to specified logfile - -M Num steplimit Adjustments less than steplimit msec will be slewed - - it must be in the range: + -M Num steplimit Adjustments less than @@var@{steplimit@} msec will be slewed + - It must be in the range: greater than or equal to 0 - -o Num ntpversion Send int as our NTP protocol version - - it must be in the range: + -o Num ntpversion Send @@var@{int@} as our NTP version + - It must be in the range: 0 to 7 -r no usereservedport Use the NTP Reserved Port (port 123) - -S no step OK to 'step' the time with settimeofday(2) - -s no slew OK to 'slew' the time with adjtime(2) - -t Num timeout The number of seconds to wait for responses + -S no step OK to 'step' the time with @@command@{settimeofday(2)@} + -s no slew OK to 'slew' the time with @@command@{adjtime(2)@} + -u Num uctimeout The number of seconds to wait for unicast responses no wait Wait for pending replies (if not setting the time) - - disabled as '--no-wait' + - disabled as --no-wait - enabled by default - opt version output version information and exit - -? no help display extended usage information and exit - -! no more-help extended usage information passed thru pager - -> opt save-opts save the option state to a config file - -< Str load-opts load options from a config file - - disabled as '--no-load-opts' + opt version Output version information and exit + -? no help Display extended usage information and exit + -! no more-help Extended usage information passed thru pager + -> opt save-opts Save the option state to a config file + -< Str load-opts Load options from a config file + - disabled as --no-load-opts - may appear multiple times Options are specified by doubled hyphens and their name or by a single hyphen and the flag character. + The following option preset mechanisms are supported: - reading file $HOME/.ntprc - reading file ./.ntprc - examining environment variables named SNTP_* -Please send bug reports to: +please send bug reports to: http://bugs.ntp.org, bugs@@ntp.org @end example @exampleindent 4 diff --git a/sntp/sntp-opts.c b/sntp/sntp-opts.c index 471c89ddf..7d91ac9a1 100644 --- a/sntp/sntp-opts.c +++ b/sntp/sntp-opts.c @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (sntp-opts.c) * - * It has been AutoGen-ed January 2, 2017 at 12:02:43 PM by AutoGen 5.18.5 + * It has been AutoGen-ed March 21, 2017 at 09:13:28 AM by AutoGen 5.18.5 * From the definitions sntp-opts.def * and the template file options * @@ -51,7 +51,7 @@ extern "C" { #endif extern FILE * option_usage_fp; #define zCopyright (sntp_opt_strs+0) -#define zLicenseDescrip (sntp_opt_strs+340) +#define zLicenseDescrip (sntp_opt_strs+351) /* * global included definitions @@ -69,15 +69,15 @@ extern FILE * option_usage_fp; /** * static const strings for sntp options */ -static char const sntp_opt_strs[2549] = -/* 0 */ "sntp 4.2.8p9\n" +static char const sntp_opt_strs[2582] = +/* 0 */ "sntp 4.2.8p10-win-beta1\n" "Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n" "This is free software. It is licensed for use, modification and\n" "redistribution under the terms of the NTP License, copies of which\n" "can be seen at:\n" " \n" " \n\0" -/* 340 */ "Permission to use, copy, modify, and distribute this software and its\n" +/* 351 */ "Permission to use, copy, modify, and distribute this software and its\n" "documentation for any purpose with or without fee is hereby granted,\n" "provided that the above copyright notice appears in all copies and that\n" "both the copyright notice and this permission notice appear in supporting\n" @@ -87,94 +87,94 @@ static char const sntp_opt_strs[2549] = "Time Foundation makes no representations about the suitability this\n" "software for any purpose. It is provided \"as is\" without express or\n" "implied warranty.\n\0" -/* 1008 */ "Force IPv4 DNS name resolution\0" -/* 1039 */ "IPV4\0" -/* 1044 */ "ipv4\0" -/* 1049 */ "Force IPv6 DNS name resolution\0" -/* 1080 */ "IPV6\0" -/* 1085 */ "ipv6\0" -/* 1090 */ "Enable authentication with the key auth-keynumber\0" -/* 1140 */ "AUTHENTICATION\0" -/* 1155 */ "authentication\0" -/* 1170 */ "Listen to the address specified for broadcast time sync\0" -/* 1226 */ "BROADCAST\0" -/* 1236 */ "broadcast\0" -/* 1246 */ "Concurrently query all IPs returned for host-name\0" -/* 1296 */ "CONCURRENT\0" -/* 1307 */ "concurrent\0" -/* 1318 */ "Increase debug verbosity level\0" -/* 1349 */ "DEBUG_LEVEL\0" -/* 1361 */ "debug-level\0" -/* 1373 */ "Set the debug verbosity level\0" -/* 1403 */ "SET_DEBUG_LEVEL\0" -/* 1419 */ "set-debug-level\0" -/* 1435 */ "The gap (in milliseconds) between time requests\0" -/* 1483 */ "GAP\0" -/* 1487 */ "gap\0" -/* 1491 */ "KoD history filename\0" -/* 1512 */ "KOD\0" -/* 1516 */ "kod\0" -/* 1520 */ "/var/db/ntp-kod\0" -/* 1536 */ "Look in this file for the key specified with -a\0" -/* 1584 */ "KEYFILE\0" -/* 1592 */ "keyfile\0" -/* 1600 */ "Log to specified logfile\0" -/* 1625 */ "LOGFILE\0" -/* 1633 */ "logfile\0" -/* 1641 */ "Adjustments less than steplimit msec will be slewed\0" -/* 1693 */ "STEPLIMIT\0" -/* 1703 */ "steplimit\0" -/* 1713 */ "Send int as our NTP protocol version\0" -/* 1750 */ "NTPVERSION\0" -/* 1761 */ "ntpversion\0" -/* 1772 */ "Use the NTP Reserved Port (port 123)\0" -/* 1809 */ "USERESERVEDPORT\0" -/* 1825 */ "usereservedport\0" -/* 1841 */ "OK to 'step' the time with settimeofday(2)\0" -/* 1884 */ "STEP\0" -/* 1889 */ "step\0" -/* 1894 */ "OK to 'slew' the time with adjtime(2)\0" -/* 1932 */ "SLEW\0" -/* 1937 */ "slew\0" -/* 1942 */ "The number of seconds to wait for responses\0" -/* 1986 */ "TIMEOUT\0" -/* 1994 */ "timeout\0" -/* 2002 */ "Wait for pending replies (if not setting the time)\0" -/* 2053 */ "WAIT\0" -/* 2058 */ "no-wait\0" -/* 2066 */ "no\0" -/* 2069 */ "display extended usage information and exit\0" -/* 2113 */ "help\0" -/* 2118 */ "extended usage information passed thru pager\0" -/* 2163 */ "more-help\0" -/* 2173 */ "output version information and exit\0" -/* 2209 */ "version\0" -/* 2217 */ "save the option state to a config file\0" -/* 2256 */ "save-opts\0" -/* 2266 */ "load options from a config file\0" -/* 2298 */ "LOAD_OPTS\0" -/* 2308 */ "no-load-opts\0" -/* 2321 */ "SNTP\0" -/* 2326 */ "sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p9\n" +/* 1019 */ "Force IPv4 DNS name resolution\0" +/* 1050 */ "IPV4\0" +/* 1055 */ "ipv4\0" +/* 1060 */ "Force IPv6 DNS name resolution\0" +/* 1091 */ "IPV6\0" +/* 1096 */ "ipv6\0" +/* 1101 */ "Enable authentication with the key auth-keynumber\0" +/* 1151 */ "AUTHENTICATION\0" +/* 1166 */ "authentication\0" +/* 1181 */ "Listen to the address specified for broadcast time sync\0" +/* 1237 */ "BROADCAST\0" +/* 1247 */ "broadcast\0" +/* 1257 */ "Concurrently query all IPs returned for host-name\0" +/* 1307 */ "CONCURRENT\0" +/* 1318 */ "concurrent\0" +/* 1329 */ "Increase debug verbosity level\0" +/* 1360 */ "DEBUG_LEVEL\0" +/* 1372 */ "debug-level\0" +/* 1384 */ "Set the debug verbosity level\0" +/* 1414 */ "SET_DEBUG_LEVEL\0" +/* 1430 */ "set-debug-level\0" +/* 1446 */ "The gap (in milliseconds) between time requests\0" +/* 1494 */ "GAP\0" +/* 1498 */ "gap\0" +/* 1502 */ "KoD history filename\0" +/* 1523 */ "KOD\0" +/* 1527 */ "kod\0" +/* 1531 */ "/var/db/ntp-kod\0" +/* 1547 */ "Look in this file for the key specified with -a\0" +/* 1595 */ "KEYFILE\0" +/* 1603 */ "keyfile\0" +/* 1611 */ "Log to specified logfile\0" +/* 1636 */ "LOGFILE\0" +/* 1644 */ "logfile\0" +/* 1652 */ "Adjustments less than steplimit msec will be slewed\0" +/* 1704 */ "STEPLIMIT\0" +/* 1714 */ "steplimit\0" +/* 1724 */ "Send int as our NTP protocol version\0" +/* 1761 */ "NTPVERSION\0" +/* 1772 */ "ntpversion\0" +/* 1783 */ "Use the NTP Reserved Port (port 123)\0" +/* 1820 */ "USERESERVEDPORT\0" +/* 1836 */ "usereservedport\0" +/* 1852 */ "OK to 'step' the time with settimeofday(2)\0" +/* 1895 */ "STEP\0" +/* 1900 */ "step\0" +/* 1905 */ "OK to 'slew' the time with adjtime(2)\0" +/* 1943 */ "SLEW\0" +/* 1948 */ "slew\0" +/* 1953 */ "The number of seconds to wait for responses\0" +/* 1997 */ "TIMEOUT\0" +/* 2005 */ "timeout\0" +/* 2013 */ "Wait for pending replies (if not setting the time)\0" +/* 2064 */ "WAIT\0" +/* 2069 */ "no-wait\0" +/* 2077 */ "no\0" +/* 2080 */ "display extended usage information and exit\0" +/* 2124 */ "help\0" +/* 2129 */ "extended usage information passed thru pager\0" +/* 2174 */ "more-help\0" +/* 2184 */ "output version information and exit\0" +/* 2220 */ "version\0" +/* 2228 */ "save the option state to a config file\0" +/* 2267 */ "save-opts\0" +/* 2277 */ "load options from a config file\0" +/* 2309 */ "LOAD_OPTS\0" +/* 2319 */ "no-load-opts\0" +/* 2332 */ "SNTP\0" +/* 2337 */ "sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p10-win-beta1\n" "Usage: %s [ - [] | --[{=| }] ]... \\\n" "\t\t[ hostname-or-IP ...]\n\0" -/* 2485 */ "$HOME\0" -/* 2491 */ ".\0" -/* 2493 */ ".ntprc\0" -/* 2500 */ "http://bugs.ntp.org, bugs@ntp.org\0" -/* 2534 */ "\n\0" -/* 2536 */ "sntp 4.2.8p9"; +/* 2507 */ "$HOME\0" +/* 2513 */ ".\0" +/* 2515 */ ".ntprc\0" +/* 2522 */ "http://bugs.ntp.org, bugs@ntp.org\0" +/* 2556 */ "\n\0" +/* 2558 */ "sntp 4.2.8p10-win-beta1"; /** * ipv4 option description with * "Must also have options" and "Incompatible options": */ /** Descriptive text for the ipv4 option */ -#define IPV4_DESC (sntp_opt_strs+1008) +#define IPV4_DESC (sntp_opt_strs+1019) /** Upper-cased name for the ipv4 option */ -#define IPV4_NAME (sntp_opt_strs+1039) +#define IPV4_NAME (sntp_opt_strs+1050) /** Name string for the ipv4 option */ -#define IPV4_name (sntp_opt_strs+1044) +#define IPV4_name (sntp_opt_strs+1055) /** Other options that appear in conjunction with the ipv4 option */ static int const aIpv4CantList[] = { INDEX_OPT_IPV6, NO_EQUIVALENT }; @@ -186,11 +186,11 @@ static int const aIpv4CantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the ipv6 option */ -#define IPV6_DESC (sntp_opt_strs+1049) +#define IPV6_DESC (sntp_opt_strs+1060) /** Upper-cased name for the ipv6 option */ -#define IPV6_NAME (sntp_opt_strs+1080) +#define IPV6_NAME (sntp_opt_strs+1091) /** Name string for the ipv6 option */ -#define IPV6_name (sntp_opt_strs+1085) +#define IPV6_name (sntp_opt_strs+1096) /** Other options that appear in conjunction with the ipv6 option */ static int const aIpv6CantList[] = { INDEX_OPT_IPV4, NO_EQUIVALENT }; @@ -201,11 +201,11 @@ static int const aIpv6CantList[] = { * authentication option description: */ /** Descriptive text for the authentication option */ -#define AUTHENTICATION_DESC (sntp_opt_strs+1090) +#define AUTHENTICATION_DESC (sntp_opt_strs+1101) /** Upper-cased name for the authentication option */ -#define AUTHENTICATION_NAME (sntp_opt_strs+1140) +#define AUTHENTICATION_NAME (sntp_opt_strs+1151) /** Name string for the authentication option */ -#define AUTHENTICATION_name (sntp_opt_strs+1155) +#define AUTHENTICATION_name (sntp_opt_strs+1166) /** Compiled in flag settings for the authentication option */ #define AUTHENTICATION_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -214,11 +214,11 @@ static int const aIpv6CantList[] = { * broadcast option description: */ /** Descriptive text for the broadcast option */ -#define BROADCAST_DESC (sntp_opt_strs+1170) +#define BROADCAST_DESC (sntp_opt_strs+1181) /** Upper-cased name for the broadcast option */ -#define BROADCAST_NAME (sntp_opt_strs+1226) +#define BROADCAST_NAME (sntp_opt_strs+1237) /** Name string for the broadcast option */ -#define BROADCAST_name (sntp_opt_strs+1236) +#define BROADCAST_name (sntp_opt_strs+1247) /** Compiled in flag settings for the broadcast option */ #define BROADCAST_FLAGS (OPTST_DISABLED | OPTST_STACKED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -227,11 +227,11 @@ static int const aIpv6CantList[] = { * concurrent option description: */ /** Descriptive text for the concurrent option */ -#define CONCURRENT_DESC (sntp_opt_strs+1246) +#define CONCURRENT_DESC (sntp_opt_strs+1257) /** Upper-cased name for the concurrent option */ -#define CONCURRENT_NAME (sntp_opt_strs+1296) +#define CONCURRENT_NAME (sntp_opt_strs+1307) /** Name string for the concurrent option */ -#define CONCURRENT_name (sntp_opt_strs+1307) +#define CONCURRENT_name (sntp_opt_strs+1318) /** Compiled in flag settings for the concurrent option */ #define CONCURRENT_FLAGS (OPTST_DISABLED | OPTST_STACKED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -240,11 +240,11 @@ static int const aIpv6CantList[] = { * debug-level option description: */ /** Descriptive text for the debug-level option */ -#define DEBUG_LEVEL_DESC (sntp_opt_strs+1318) +#define DEBUG_LEVEL_DESC (sntp_opt_strs+1329) /** Upper-cased name for the debug-level option */ -#define DEBUG_LEVEL_NAME (sntp_opt_strs+1349) +#define DEBUG_LEVEL_NAME (sntp_opt_strs+1360) /** Name string for the debug-level option */ -#define DEBUG_LEVEL_name (sntp_opt_strs+1361) +#define DEBUG_LEVEL_name (sntp_opt_strs+1372) /** Compiled in flag settings for the debug-level option */ #define DEBUG_LEVEL_FLAGS (OPTST_DISABLED) @@ -252,11 +252,11 @@ static int const aIpv6CantList[] = { * set-debug-level option description: */ /** Descriptive text for the set-debug-level option */ -#define SET_DEBUG_LEVEL_DESC (sntp_opt_strs+1373) +#define SET_DEBUG_LEVEL_DESC (sntp_opt_strs+1384) /** Upper-cased name for the set-debug-level option */ -#define SET_DEBUG_LEVEL_NAME (sntp_opt_strs+1403) +#define SET_DEBUG_LEVEL_NAME (sntp_opt_strs+1414) /** Name string for the set-debug-level option */ -#define SET_DEBUG_LEVEL_name (sntp_opt_strs+1419) +#define SET_DEBUG_LEVEL_name (sntp_opt_strs+1430) /** Compiled in flag settings for the set-debug-level option */ #define SET_DEBUG_LEVEL_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -265,11 +265,11 @@ static int const aIpv6CantList[] = { * gap option description: */ /** Descriptive text for the gap option */ -#define GAP_DESC (sntp_opt_strs+1435) +#define GAP_DESC (sntp_opt_strs+1446) /** Upper-cased name for the gap option */ -#define GAP_NAME (sntp_opt_strs+1483) +#define GAP_NAME (sntp_opt_strs+1494) /** Name string for the gap option */ -#define GAP_name (sntp_opt_strs+1487) +#define GAP_name (sntp_opt_strs+1498) /** The compiled in default value for the gap option argument */ #define GAP_DFT_ARG ((char const*)50) /** Compiled in flag settings for the gap option */ @@ -280,13 +280,13 @@ static int const aIpv6CantList[] = { * kod option description: */ /** Descriptive text for the kod option */ -#define KOD_DESC (sntp_opt_strs+1491) +#define KOD_DESC (sntp_opt_strs+1502) /** Upper-cased name for the kod option */ -#define KOD_NAME (sntp_opt_strs+1512) +#define KOD_NAME (sntp_opt_strs+1523) /** Name string for the kod option */ -#define KOD_name (sntp_opt_strs+1516) +#define KOD_name (sntp_opt_strs+1527) /** The compiled in default value for the kod option argument */ -#define KOD_DFT_ARG (sntp_opt_strs+1520) +#define KOD_DFT_ARG (sntp_opt_strs+1531) /** Compiled in flag settings for the kod option */ #define KOD_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE)) @@ -295,11 +295,11 @@ static int const aIpv6CantList[] = { * keyfile option description: */ /** Descriptive text for the keyfile option */ -#define KEYFILE_DESC (sntp_opt_strs+1536) +#define KEYFILE_DESC (sntp_opt_strs+1547) /** Upper-cased name for the keyfile option */ -#define KEYFILE_NAME (sntp_opt_strs+1584) +#define KEYFILE_NAME (sntp_opt_strs+1595) /** Name string for the keyfile option */ -#define KEYFILE_name (sntp_opt_strs+1592) +#define KEYFILE_name (sntp_opt_strs+1603) /** Compiled in flag settings for the keyfile option */ #define KEYFILE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE)) @@ -308,11 +308,11 @@ static int const aIpv6CantList[] = { * logfile option description: */ /** Descriptive text for the logfile option */ -#define LOGFILE_DESC (sntp_opt_strs+1600) +#define LOGFILE_DESC (sntp_opt_strs+1611) /** Upper-cased name for the logfile option */ -#define LOGFILE_NAME (sntp_opt_strs+1625) +#define LOGFILE_NAME (sntp_opt_strs+1636) /** Name string for the logfile option */ -#define LOGFILE_name (sntp_opt_strs+1633) +#define LOGFILE_name (sntp_opt_strs+1644) /** Compiled in flag settings for the logfile option */ #define LOGFILE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE)) @@ -321,11 +321,11 @@ static int const aIpv6CantList[] = { * steplimit option description: */ /** Descriptive text for the steplimit option */ -#define STEPLIMIT_DESC (sntp_opt_strs+1641) +#define STEPLIMIT_DESC (sntp_opt_strs+1652) /** Upper-cased name for the steplimit option */ -#define STEPLIMIT_NAME (sntp_opt_strs+1693) +#define STEPLIMIT_NAME (sntp_opt_strs+1704) /** Name string for the steplimit option */ -#define STEPLIMIT_name (sntp_opt_strs+1703) +#define STEPLIMIT_name (sntp_opt_strs+1714) /** Compiled in flag settings for the steplimit option */ #define STEPLIMIT_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -334,11 +334,11 @@ static int const aIpv6CantList[] = { * ntpversion option description: */ /** Descriptive text for the ntpversion option */ -#define NTPVERSION_DESC (sntp_opt_strs+1713) +#define NTPVERSION_DESC (sntp_opt_strs+1724) /** Upper-cased name for the ntpversion option */ -#define NTPVERSION_NAME (sntp_opt_strs+1750) +#define NTPVERSION_NAME (sntp_opt_strs+1761) /** Name string for the ntpversion option */ -#define NTPVERSION_name (sntp_opt_strs+1761) +#define NTPVERSION_name (sntp_opt_strs+1772) /** The compiled in default value for the ntpversion option argument */ #define NTPVERSION_DFT_ARG ((char const*)4) /** Compiled in flag settings for the ntpversion option */ @@ -349,11 +349,11 @@ static int const aIpv6CantList[] = { * usereservedport option description: */ /** Descriptive text for the usereservedport option */ -#define USERESERVEDPORT_DESC (sntp_opt_strs+1772) +#define USERESERVEDPORT_DESC (sntp_opt_strs+1783) /** Upper-cased name for the usereservedport option */ -#define USERESERVEDPORT_NAME (sntp_opt_strs+1809) +#define USERESERVEDPORT_NAME (sntp_opt_strs+1820) /** Name string for the usereservedport option */ -#define USERESERVEDPORT_name (sntp_opt_strs+1825) +#define USERESERVEDPORT_name (sntp_opt_strs+1836) /** Compiled in flag settings for the usereservedport option */ #define USERESERVEDPORT_FLAGS (OPTST_DISABLED) @@ -361,11 +361,11 @@ static int const aIpv6CantList[] = { * step option description: */ /** Descriptive text for the step option */ -#define STEP_DESC (sntp_opt_strs+1841) +#define STEP_DESC (sntp_opt_strs+1852) /** Upper-cased name for the step option */ -#define STEP_NAME (sntp_opt_strs+1884) +#define STEP_NAME (sntp_opt_strs+1895) /** Name string for the step option */ -#define STEP_name (sntp_opt_strs+1889) +#define STEP_name (sntp_opt_strs+1900) /** Compiled in flag settings for the step option */ #define STEP_FLAGS (OPTST_DISABLED) @@ -373,11 +373,11 @@ static int const aIpv6CantList[] = { * slew option description: */ /** Descriptive text for the slew option */ -#define SLEW_DESC (sntp_opt_strs+1894) +#define SLEW_DESC (sntp_opt_strs+1905) /** Upper-cased name for the slew option */ -#define SLEW_NAME (sntp_opt_strs+1932) +#define SLEW_NAME (sntp_opt_strs+1943) /** Name string for the slew option */ -#define SLEW_name (sntp_opt_strs+1937) +#define SLEW_name (sntp_opt_strs+1948) /** Compiled in flag settings for the slew option */ #define SLEW_FLAGS (OPTST_DISABLED) @@ -385,11 +385,11 @@ static int const aIpv6CantList[] = { * timeout option description: */ /** Descriptive text for the timeout option */ -#define TIMEOUT_DESC (sntp_opt_strs+1942) +#define TIMEOUT_DESC (sntp_opt_strs+1953) /** Upper-cased name for the timeout option */ -#define TIMEOUT_NAME (sntp_opt_strs+1986) +#define TIMEOUT_NAME (sntp_opt_strs+1997) /** Name string for the timeout option */ -#define TIMEOUT_name (sntp_opt_strs+1994) +#define TIMEOUT_name (sntp_opt_strs+2005) /** The compiled in default value for the timeout option argument */ #define TIMEOUT_DFT_ARG ((char const*)5) /** Compiled in flag settings for the timeout option */ @@ -400,13 +400,13 @@ static int const aIpv6CantList[] = { * wait option description: */ /** Descriptive text for the wait option */ -#define WAIT_DESC (sntp_opt_strs+2002) +#define WAIT_DESC (sntp_opt_strs+2013) /** Upper-cased name for the wait option */ -#define WAIT_NAME (sntp_opt_strs+2053) +#define WAIT_NAME (sntp_opt_strs+2064) /** disablement name for the wait option */ -#define NOT_WAIT_name (sntp_opt_strs+2058) +#define NOT_WAIT_name (sntp_opt_strs+2069) /** disablement prefix for the wait option */ -#define NOT_WAIT_PFX (sntp_opt_strs+2066) +#define NOT_WAIT_PFX (sntp_opt_strs+2077) /** Name string for the wait option */ #define WAIT_name (NOT_WAIT_name + 3) /** Compiled in flag settings for the wait option */ @@ -415,11 +415,11 @@ static int const aIpv6CantList[] = { /* * Help/More_Help/Version option descriptions: */ -#define HELP_DESC (sntp_opt_strs+2069) -#define HELP_name (sntp_opt_strs+2113) +#define HELP_DESC (sntp_opt_strs+2080) +#define HELP_name (sntp_opt_strs+2124) #ifdef HAVE_WORKING_FORK -#define MORE_HELP_DESC (sntp_opt_strs+2118) -#define MORE_HELP_name (sntp_opt_strs+2163) +#define MORE_HELP_DESC (sntp_opt_strs+2129) +#define MORE_HELP_name (sntp_opt_strs+2174) #define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT) #else #define MORE_HELP_DESC HELP_DESC @@ -432,14 +432,14 @@ static int const aIpv6CantList[] = { # define VER_FLAGS (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \ OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT) #endif -#define VER_DESC (sntp_opt_strs+2173) -#define VER_name (sntp_opt_strs+2209) -#define SAVE_OPTS_DESC (sntp_opt_strs+2217) -#define SAVE_OPTS_name (sntp_opt_strs+2256) -#define LOAD_OPTS_DESC (sntp_opt_strs+2266) -#define LOAD_OPTS_NAME (sntp_opt_strs+2298) -#define NO_LOAD_OPTS_name (sntp_opt_strs+2308) -#define LOAD_OPTS_pfx (sntp_opt_strs+2066) +#define VER_DESC (sntp_opt_strs+2184) +#define VER_name (sntp_opt_strs+2220) +#define SAVE_OPTS_DESC (sntp_opt_strs+2228) +#define SAVE_OPTS_name (sntp_opt_strs+2267) +#define LOAD_OPTS_DESC (sntp_opt_strs+2277) +#define LOAD_OPTS_NAME (sntp_opt_strs+2309) +#define NO_LOAD_OPTS_name (sntp_opt_strs+2319) +#define LOAD_OPTS_pfx (sntp_opt_strs+2077) #define LOAD_OPTS_name (NO_LOAD_OPTS_name + 3) /** * Declare option callback procedures @@ -745,24 +745,24 @@ static tOptDesc optDesc[OPTION_CT] = { /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** Reference to the upper cased version of sntp. */ -#define zPROGNAME (sntp_opt_strs+2321) +#define zPROGNAME (sntp_opt_strs+2332) /** Reference to the title line for sntp usage. */ -#define zUsageTitle (sntp_opt_strs+2326) +#define zUsageTitle (sntp_opt_strs+2337) /** sntp configuration file name. */ -#define zRcName (sntp_opt_strs+2493) +#define zRcName (sntp_opt_strs+2515) /** Directories to search for sntp config files. */ static char const * const apzHomeList[3] = { - sntp_opt_strs+2485, - sntp_opt_strs+2491, + sntp_opt_strs+2507, + sntp_opt_strs+2513, NULL }; /** The sntp program bug email address. */ -#define zBugsAddr (sntp_opt_strs+2500) +#define zBugsAddr (sntp_opt_strs+2522) /** Clarification/explanation of what sntp does. */ -#define zExplain (sntp_opt_strs+2534) +#define zExplain (sntp_opt_strs+2556) /** Extra detail explaining what sntp does. */ #define zDetail (NULL) /** The full version string for sntp. */ -#define zFullVersion (sntp_opt_strs+2536) +#define zFullVersion (sntp_opt_strs+2558) /* extracted from optcode.tlib near line 364 */ #if defined(ENABLE_NLS) @@ -1173,7 +1173,7 @@ static void bogus_function(void) { translate option names. */ /* referenced via sntpOptions.pzCopyright */ - puts(_("sntp 4.2.8p9\n\ + puts(_("sntp 4.2.8p10-win-beta1\n\ Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n\ This is free software. It is licensed for use, modification and\n\ redistribution under the terms of the NTP License, copies of which\n\ @@ -1263,7 +1263,7 @@ implied warranty.\n")); puts(_("load options from a config file")); /* referenced via sntpOptions.pzUsageTitle */ - puts(_("sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p9\n\ + puts(_("sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p10-win-beta1\n\ Usage: %s [ - [] | --[{=| }] ]... \\\n\ \t\t[ hostname-or-IP ...]\n")); @@ -1271,7 +1271,7 @@ Usage: %s [ - [] | --[{=| }] ]... \\\n\ puts(_("\n")); /* referenced via sntpOptions.pzFullVersion */ - puts(_("sntp 4.2.8p9")); + puts(_("sntp 4.2.8p10-win-beta1")); /* referenced via sntpOptions.pzFullUsage */ puts(_("<<>>")); diff --git a/sntp/sntp-opts.h b/sntp/sntp-opts.h index 9b4f192ad..fc8d4e8a4 100644 --- a/sntp/sntp-opts.h +++ b/sntp/sntp-opts.h @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (sntp-opts.h) * - * It has been AutoGen-ed January 2, 2017 at 12:02:43 PM by AutoGen 5.18.5 + * It has been AutoGen-ed March 21, 2017 at 09:13:27 AM by AutoGen 5.18.5 * From the definitions sntp-opts.def * and the template file options * @@ -91,9 +91,9 @@ typedef enum { /** count of all options for sntp */ #define OPTION_CT 23 /** sntp version */ -#define SNTP_VERSION "4.2.8p9" +#define SNTP_VERSION "4.2.8p10-win-beta1" /** Full sntp version text */ -#define SNTP_FULL_VERSION "sntp 4.2.8p9" +#define SNTP_FULL_VERSION "sntp 4.2.8p10-win-beta1" /** * Interface defines for all options. Replace "n" with the UPPER_CASED diff --git a/sntp/sntp.1sntpman b/sntp/sntp.1sntpman index 561c50997..7ba67d2bf 100644 --- a/sntp/sntp.1sntpman +++ b/sntp/sntp.1sntpman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH sntp 1sntpman "02 Jan 2017" "4.2.8p9" "User Commands" +.TH sntp 1sntpman "21 Mar 2017" "4.2.8p10-win-beta1" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-3naO9E/ag-KpaO5E) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:34 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:00 AM by AutoGen 5.18.5 .\" From the definitions sntp-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/sntp/sntp.1sntpmdoc b/sntp/sntp.1sntpmdoc index e9f00ec66..ddbb051a8 100644 --- a/sntp/sntp.1sntpmdoc +++ b/sntp/sntp.1sntpmdoc @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt SNTP 1sntpmdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (sntp-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:31 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:00 AM by AutoGen 5.18.5 .\" From the definitions sntp-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/sntp/sntp.html b/sntp/sntp.html index 7d4e282b0..7c5789cca 100644 --- a/sntp/sntp.html +++ b/sntp/sntp.html @@ -1,696 +1,628 @@ - - - + -Sntp User’s Manual - - - - - - - - - - - - +Sntp User's Manual + + + + + + + - - -

              Sntp User’s Manual

              - - - - - - -
              -

              -Next: , Previous: , Up: (dir)  

              + +

              Sntp User's Manual

              +
              +


              +Next: , +Previous: (dir), +Up: (dir) +
              - -

              Simple Network Time Protocol User Manual

              -

              This document describes the use of the NTP Project’s sntp program, +

              Simple Network Time Protocol User Manual

              + +

              This document describes the use of the NTP Project's sntp program, that can be used to query a Network Time Protocol (NTP) server and display the time offset of the system clock relative to the server clock. Run as root, it can correct the system clock to this offset as well. It can be run as an interactive command or from a cron job. -

              -

              This document applies to version 4.2.8p9-win of sntp. -

              -

              The program implements the SNTP protocol as defined by RFC 5905, the NTPv4 + +

              This document applies to version 4.2.8p10-win-beta1 of sntp. + +

              The program implements the SNTP protocol as defined by RFC 5905, the NTPv4 IETF specification. -

              - -

              Short Table of Contents

              -
              -
                -
              • 1 Description
              • + + - - - - - - -
                +
                +


                -
                -

                -Next: , Up: Top  

                +
                - -

                1 Description

                + + +

                Description

                By default, sntp writes the local data and time (i.e., not UTC) to the standard output in the format: -

                -
                -
                1996-10-15 20:17:25.123 (+0800) +4.567 +/- 0.089 secs
                -
                -

                where +

                     1996-10-15 20:17:25.123 (+0800) +4.567 +/- 0.089 secs
                +
                +

                where YYYY-MM-DD HH:MM:SS.SUBSEC is the local date and time, (+0800) is the local timezone adjustment (so we would add 8 hours and 0 minutes to convert the reported local time to UTC), and the +4.567 +/- 0.089 secs indicates the time offset and error bound of the system clock relative to the server clock. -

                -
                + +
                +


                -
                -

                -Next: , Previous: , Up: sntp Description  

                +
                - -

                1.1 Invoking sntp

                - - +

                Invoking sntp

                +

                -

                sntp +

                sntp can be used as an SNTP client to query a NTP or SNTP server and either display -the time or set the local system’s time (given suitable privilege). It can be +the time or set the local system's time (given suitable privilege). It can be run as an interactive command or from a cron job. -

                -

                NTP (the Network Time Protocol) and SNTP (the Simple Network Time Protocol) + +

                NTP (the Network Time Protocol) and SNTP (the Simple Network Time Protocol) are defined and described by RFC 5905. -

                -

                The default is to write the estimated correct local date and time (i.e. not +

                The default is to write the estimated correct local date and time (i.e. not UTC) to the standard output in a format like: -

                -

                '1996-10-15 20:17:25.123 (+0800) +4.567 +/- 0.089 [host] IP sN' -

                -

                where the + +

                '1996-10-15 20:17:25.123 (+0800) +4.567 +/- 0.089 [host] IP sN' + +

                where the '(+0800)' means that to get to UTC from the reported local time one must add 8 hours and 0 minutes, the '+4.567' indicates the local clock is 4.567 seconds behind the correct time -(so 4.567 seconds must be added to the local clock to get it to be correct). +(so 4.567 seconds must be added to the local clock to get it to be correct). Note that the number of decimals printed for this value will change -based on the reported precision of the server. +based on the reported precision of the server. '+/- 0.089' is the reported synchronization distance -(in seconds), which represents the maximum error due to all causes. +(in seconds), which represents the maximum error due to all causes. If the server does not report valid data needed to calculate the synchronization distance, this will be reported as -'+/- ?'. +'+/- ?'. If the host is different from the IP, -both will be displayed. -Otherwise, only the +both will be displayed. +Otherwise, only the IP -is displayed. +is displayed. Finally, the stratum of the host is reported and the leap indicator is decoded and displayed. -

                -

                This section was generated by AutoGen, -using the agtexi-cmd template and the option descriptions for the sntp program. + +

                This section was generated by AutoGen, +using the agtexi-cmd template and the option descriptions for the sntp program. This software is released under the NTP license, <http://ntp.org/license>. -

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

                -Next: , Up: sntp Invocation  

                + + + +
                +


                +Next: , +Up: sntp Invocation +
                - -

                1.1.1 sntp help/usage (--help)

                - - -

                This is the automatically generated usage text for sntp. -

                -

                The text printed is the same whether selected with the help option -(--help) or the more-help option (--more-help). more-help will print -the usage text by passing it through a pager program. + +

                sntp help/usage (--help)

                + +

                +This is the automatically generated usage text for sntp. + +

                The text printed is the same whether selected with the help option +(--help) or the more-help option (--more-help). more-help will print +the usage text by passing it through a pager program. more-help is disabled on platforms without a working fork(2) function. The PAGER environment variable is -used to select the program, defaulting to more. Both will exit +used to select the program, defaulting to more. Both will exit with a status code of 0. -

                -
                -
                sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p9
                -Usage:  sntp [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \
                +
                +
                sntp - standard Simple Network Time Protocol client program - Ver. 4.2.7p245
                +USAGE:  sntp [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \
                                 [ hostname-or-IP ...]
                   Flg Arg Option-Name    Description
                    -4 no  ipv4           Force IPv4 DNS name resolution
                -                                - prohibits the option 'ipv6'
                +                                - prohibits these options:
                +                                ipv6
                    -6 no  ipv6           Force IPv6 DNS name resolution
                -                                - prohibits the option 'ipv4'
                -   -a Num authentication Enable authentication with the key auth-keynumber
                +                                - prohibits these options:
                +                                ipv4
                +   -a Num authentication Enable authentication with the key @var{auth-keynumber}
                +   -B Num bctimeout      The number of seconds to wait for broadcasts
                    -b Str broadcast      Listen to the address specified for broadcast time sync
                                                 - may appear multiple times
                    -c Str concurrent     Concurrently query all IPs returned for host-name
                                                 - may appear multiple times
                    -d no  debug-level    Increase debug verbosity level
                                                 - may appear multiple times
                -   -D Num set-debug-level Set the debug verbosity level
                +   -D Str set-debug-level Set the debug verbosity level
                                                 - may appear multiple times
                    -g Num gap            The gap (in milliseconds) between time requests
                    -K Fil kod            KoD history filename
                -   -k Fil keyfile        Look in this file for the key specified with -a
                +   -k Fil keyfile        Look in this file for the key specified with @option{-a}
                    -l Fil logfile        Log to specified logfile
                -   -M Num steplimit      Adjustments less than steplimit msec will be slewed
                -                                - it must be in the range:
                +   -M Num steplimit      Adjustments less than @var{steplimit} msec will be slewed
                +                                - It must be in the range:
                                                   greater than or equal to 0
                -   -o Num ntpversion     Send int as our NTP protocol version
                -                                - it must be in the range:
                +   -o Num ntpversion     Send @var{int} as our NTP version
                +                                - It must be in the range:
                                                   0 to 7
                    -r no  usereservedport Use the NTP Reserved Port (port 123)
                -   -S no  step           OK to 'step' the time with settimeofday(2)
                -   -s no  slew           OK to 'slew' the time with adjtime(2)
                -   -t Num timeout        The number of seconds to wait for responses
                +   -S no  step           OK to 'step' the time with @command{settimeofday(2)}
                +   -s no  slew           OK to 'slew' the time with @command{adjtime(2)}
                +   -u Num uctimeout      The number of seconds to wait for unicast responses
                       no  wait           Wait for pending replies (if not setting the time)
                -                                - disabled as '--no-wait'
                +                                - disabled as --no-wait
                                                 - enabled by default
                -      opt version        output version information and exit
                -   -? no  help           display extended usage information and exit
                -   -! no  more-help      extended usage information passed thru pager
                -   -> opt save-opts      save the option state to a config file
                -   -< Str load-opts      load options from a config file
                -                                - disabled as '--no-load-opts'
                +      opt version        Output version information and exit
                +   -? no  help           Display extended usage information and exit
                +   -! no  more-help      Extended usage information passed thru pager
                +   -> opt save-opts      Save the option state to a config file
                +   -< Str load-opts      Load options from a config file
                +                                - disabled as --no-load-opts
                                                 - may appear multiple times
                 
                 Options are specified by doubled hyphens and their name or by a single
                 hyphen and the flag character.
                 
                 
                +
                 The following option preset mechanisms are supported:
                  - reading file $HOME/.ntprc
                  - reading file ./.ntprc
                  - examining environment variables named SNTP_*
                 
                -Please send bug reports to:  <http://bugs.ntp.org, bugs@ntp.org>
                -
                - -
                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                +please send bug reports to: http://bugs.ntp.org, bugs@ntp.org + +
                +


                +Next: , +Previous: sntp usage, +Up: sntp Invocation +
                - -

                1.1.2 ipv4 option (-4)

                - - -

                This is the “force ipv4 dns name resolution” option. -

                -

                This option has some usage constraints. It: -

                  -
                • must not appear in combination with any of the following options: -ipv6. -
                - -

                Force DNS resolution of the following host names on the command line -to the IPv4 namespace. -


                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                + +

                ipv4 option (-4)

                + +

                +This is the “force ipv4 dns name resolution” option. + +

                This option has some usage constraints. It: +

                  +
                • must not appear in combination with any of the following options: +ipv6. +
                + +

                Force DNS resolution of the following host names on the command line +to the IPv4 namespace. +

                +


                +Next: , +Previous: sntp ipv4, +Up: sntp Invocation +
                - -

                1.1.3 ipv6 option (-6)

                - - -

                This is the “force ipv6 dns name resolution” option. -

                -

                This option has some usage constraints. It: -

                  -
                • must not appear in combination with any of the following options: -ipv4. -
                - -

                Force DNS resolution of the following host names on the command line -to the IPv6 namespace. -


                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                + +

                ipv6 option (-6)

                + +

                +This is the “force ipv6 dns name resolution” option. + +

                This option has some usage constraints. It: +

                  +
                • must not appear in combination with any of the following options: +ipv4. +
                + +

                Force DNS resolution of the following host names on the command line +to the IPv6 namespace. +

                +


                +Next: , +Previous: sntp ipv6, +Up: sntp Invocation +
                - -

                1.1.4 authentication option (-a)

                - - -

                This is the “enable authentication with the key auth-keynumber” option. -This option takes a number argument auth-keynumber. -Enable authentication using the key specified in this option’s -argument. The argument of this option is the keyid, a -number specified in the keyfile as this key’s identifier. -See the keyfile option (-k) for more details. -


                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                + +

                authentication option (-a)

                + +

                +This is the “enable authentication with the key auth-keynumber” option. +This option takes a number argument auth-keynumber. +Enable authentication using the key specified in this option's +argument. The argument of this option is the keyid, a +number specified in the keyfile as this key's identifier. +See the keyfile option (-k) for more details. +

                +


                +Next: , +Previous: sntp authentication, +Up: sntp Invocation +
                - -

                1.1.5 broadcast option (-b)

                - - -

                This is the “listen to the address specified for broadcast time sync” option. -This option takes a string argument broadcast-address. -

                -

                This option has some usage constraints. It: -

                  -
                • may appear an unlimited number of times. -
                - -

                If specified sntp will listen to the specified address + +

                broadcast option (-b)

                + +

                +This is the “listen to the address specified for broadcast time sync” option. +This option takes a string argument broadcast-address. + +

                This option has some usage constraints. It: +

                  +
                • may appear an unlimited number of times. +
                + +

                If specified sntp will listen to the specified address for NTP broadcasts. The default maximum wait time -can (and probably should) be modified with -t. -


                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                +can (and probably should) be modified with -t. +
                +


                +Next: , +Previous: sntp broadcast, +Up: sntp Invocation +
                - -

                1.1.6 concurrent option (-c)

                - - -

                This is the “concurrently query all ips returned for host-name” option. -This option takes a string argument host-name. -

                -

                This option has some usage constraints. It: -

                  -
                • may appear an unlimited number of times. -
                - -

                Requests from an NTP "client" to a "server" should never be sent + +

                concurrent option (-c)

                + +

                +This is the “concurrently query all ips returned for host-name” option. +This option takes a string argument host-name. + +

                This option has some usage constraints. It: +

                  +
                • may appear an unlimited number of times. +
                + +

                Requests from an NTP "client" to a "server" should never be sent more rapidly than one every 2 seconds. By default, any IPs returned as part of a DNS lookup are assumed to be for a single instance of ntpd, and therefore sntp will send queries to these IPs one after another, with a 2-second gap in between each query. -

                -

                The -c or --concurrent flag says that any IPs + +

                The -c or --concurrent flag says that any IPs returned for the DNS lookup of the supplied host-name are on -different machines, so we can send concurrent queries. -


                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                +different machines, so we can send concurrent queries. +
                +


                +Next: , +Previous: sntp concurrent, +Up: sntp Invocation +
                - -

                1.1.7 gap option (-g)

                - -

                This is the “the gap (in milliseconds) between time requests” option. -This option takes a number argument milliseconds. -Since we’re only going to use the first valid response we get and +

                gap option (-g)

                + +

                +This is the “the gap (in milliseconds) between time requests” option. +This option takes a number argument milliseconds. +Since we're only going to use the first valid response we get and there is benefit to specifying a good number of servers to query, separate the queries we send out by the specified number of -milliseconds. -


                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                +milliseconds. +
                +


                +Next: , +Previous: sntp gap, +Up: sntp Invocation +
                - -

                1.1.8 kod option (-K)

                - -

                This is the “kod history filename” option. -This option takes a file argument file-name. +

                kod option (-K)

                + +

                +This is the “kod history filename” option. +This option takes a file argument file-name. Specifies the filename to be used for the persistent history of KoD responses received from servers. If the file does not exist, a -warning message will be displayed. The file will not be created. -


                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                +warning message will be displayed. The file will not be created. +
                +


                +Next: , +Previous: sntp kod, +Up: sntp Invocation +
                - -

                1.1.9 keyfile option (-k)

                - - -

                This is the “look in this file for the key specified with -a” option. -This option takes a file argument file-name. -This option specifies the keyfile. -sntp will search for the key specified with -a -keyno in this file. See ntp.keys(5) for more -information. -


                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                + +

                keyfile option (-k)

                + +

                +This is the “look in this file for the key specified with -a” option. +This option takes a file argument file-name. +This option specifies the keyfile. +sntp will search for the key specified with -a +keyno in this file. See ntp.keys(5) for more +information. +

                +


                +Next: , +Previous: sntp keyfile, +Up: sntp Invocation +
                - -

                1.1.10 logfile option (-l)

                - -

                This is the “log to specified logfile” option. -This option takes a file argument file-name. +

                logfile option (-l)

                + +

                +This is the “log to specified logfile” option. +This option takes a file argument file-name. This option causes the client to write log messages to the specified -logfile. -


                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                +logfile. +
                +


                +Next: , +Previous: sntp logfile, +Up: sntp Invocation +
                - -

                1.1.11 steplimit option (-M)

                - - -

                This is the “adjustments less than steplimit msec will be slewed” option. -This option takes a number argument. -If the time adjustment is less than steplimit milliseconds, -slew the amount using adjtime(2). Otherwise, step the -correction using settimeofday(2). The default value is 0, + +

                steplimit option (-M)

                + +

                +This is the “adjustments less than steplimit msec will be slewed” option. +This option takes a number argument. +If the time adjustment is less than steplimit milliseconds, +slew the amount using adjtime(2). Otherwise, step the +correction using settimeofday(2). The default value is 0, which means all adjustments will be stepped. This is a feature, as -different situations demand different values. -


                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                +different situations demand different values. +
                +


                +Next: , +Previous: sntp steplimit, +Up: sntp Invocation +
                - -

                1.1.12 ntpversion option (-o)

                - -

                This is the “send int as our ntp protocol version” option. -This option takes a number argument. +

                ntpversion option (-o)

                + +

                +This is the “send int as our ntp protocol version” option. +This option takes a number argument. When sending requests to a remote server, tell them we are running -NTP protocol version ntpversion . -


                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                +NTP protocol version ntpversion . +
                +


                +Next: , +Previous: sntp ntpversion, +Up: sntp Invocation +
                - -

                1.1.13 usereservedport option (-r)

                - -

                This is the “use the ntp reserved port (port 123)” option. +

                usereservedport option (-r)

                + +

                +This is the “use the ntp reserved port (port 123)” option. Use port 123, which is reserved for NTP, for our network -communications. -


                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                +communications. +
                +


                +Next: , +Previous: sntp usereservedport, +Up: sntp Invocation +
                - -

                1.1.14 timeout option (-t)

                - -

                This is the “the number of seconds to wait for responses” option. -This option takes a number argument seconds. +

                timeout option (-t)

                + +

                +This is the “the number of seconds to wait for responses” option. +This option takes a number argument seconds. When waiting for a reply, sntp will wait the number of seconds specified before giving up. The default should be more than enough for a unicast response. If sntp is only waiting for a broadcast response a longer timeout is -likely needed. -


                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                +likely needed. +
                +


                +Next: , +Previous: sntp timeout, +Up: sntp Invocation +
                - -

                1.1.15 wait option

                - - -

                This is the “wait for pending replies (if not setting the time)” option. -

                -

                This option has some usage constraints. It: -

                  -
                • can be disabled with –no-wait. -
                • It is enabled by default. -
                - -

                If we are not setting the time, wait for all pending responses. -

                - -
                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                + +

                wait option

                + +

                +This is the “wait for pending replies (if not setting the time)” option. + +

                This option has some usage constraints. It: +

                  +
                • can be disabled with –no-wait. +
                • It is enabled by default. +
                + +

                If we are not setting the time, wait for all pending responses. + +

                +


                +Next: , +Previous: sntp wait, +Up: sntp Invocation +
                - -

                1.1.16 presetting/configuring sntp

                + +

                presetting/configuring sntp

                Any option that is not marked as not presettable may be preset by -loading values from configuration ("rc" or "ini") files, and values from environment variables named SNTP and SNTP_<OPTION_NAME>. <OPTION_NAME> must be one of -the options listed above in upper case and segmented with underscores. +loading values from configuration ("rc" or "ini") files, and values from environment variables named SNTP and SNTP_<OPTION_NAME>. <OPTION_NAME> must be one of +the options listed above in upper case and segmented with underscores. The SNTP variable will be tokenized and parsed like the command line. The remaining variables are tested for existence and their values are treated like option arguments. -

                - -

                libopts will search in 2 places for configuration files: -

                  -
                • $HOME -
                • $PWD -
                -

                The environment variables HOME, and PWD -are expanded and replaced when sntp runs. -For any of these that are plain files, they are simply processed. -For any that are directories, then a file named .ntprc is searched for + +

                libopts will search in 2 places for configuration files: +

                  +
                • $HOME +
                • $PWD +
                + The environment variables HOME, and PWD +are expanded and replaced when sntp runs. +For any of these that are plain files, they are simply processed. +For any that are directories, then a file named .ntprc is searched for within that directory and processed. -

                -

                Configuration files may be in a wide variety of formats. + +

                Configuration files may be in a wide variety of formats. The basic format is an option name followed by a value (argument) on the same line. Values may be separated from the option name with a colon, equal sign or simply white space. Values may be continued across multiple lines by escaping the newline with a backslash. -

                -

                Multiple programs may also share the same initialization file. + +

                Multiple programs may also share the same initialization file. Common options are collected at the top, followed by program specific segments. The segments are separated by lines like: -

                -
                [SNTP]
                -
                -

                or by -

                -
                <?program sntp>
                -
                -

                Do not mix these styles within one configuration file. -

                -

                Compound values and carefully constructed string values may also be +

                    [SNTP]
                +
                +

                or by +

                    <?program sntp>
                +
                +

                Do not mix these styles within one configuration file. + +

                Compound values and carefully constructed string values may also be specified using XML syntax: -

                -
                <option-name>
                -   <sub-opt>...&lt;...&gt;...</sub-opt>
                -</option-name>
                -
                -

                yielding an option-name.sub-opt string value of -

                -
                "...<...>..."
                -
                -

                AutoOpts does not track suboptions. You simply note that it is a +

                    <option-name>
                +       <sub-opt>...&lt;...&gt;...</sub-opt>
                +    </option-name>
                +
                +

                yielding an option-name.sub-opt string value of +

                    "...<...>..."
                +
                +

                AutoOpts does not track suboptions. You simply note that it is a hierarchicly valued option. AutoOpts does provide a means for searching the associated name/value pair list (see: optionFindValue). -

                -

                The command line options relating to configuration and/or usage help are: -

                - -

                version (-)

                + +

                The command line options relating to configuration and/or usage help are: + +

                version (-)

                Print the program version to standard out, optionally with licensing information, then exit 0. The optional argument specifies how much licensing -detail to provide. The default is to print just the version. The licensing infomation may be selected with an option argument. +detail to provide. The default is to print just the version. The licensing infomation may be selected with an option argument. Only the first letter of the argument is examined: -

                -
                -
                version
                -

                Only print the version. This is the default. -

                -
                copyright
                -

                Name the copyright usage licensing terms. -

                -
                verbose
                -

                Print the full copyright usage licensing terms. -

                + +
                +
                version
                Only print the version. This is the default. +
                copyright
                Name the copyright usage licensing terms. +
                verbose
                Print the full copyright usage licensing terms.
                -
                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                +
                +


                +Next: , +Previous: sntp config, +Up: sntp Invocation +
                - -

                1.1.17 sntp exit status

                + +

                sntp exit status

                One of the following exit values will be returned: -

                -
                0 (EXIT_SUCCESS)
                -

                Successful program execution. -

                -
                1 (EXIT_FAILURE)
                -

                The operation failed or the command syntax was not valid. -

                -
                66 (EX_NOINPUT)
                -

                A specified configuration file could not be loaded. -

                -
                70 (EX_SOFTWARE)
                -

                libopts had an internal operational error. Please report -it to autogen-users@lists.sourceforge.net. Thank you. -

                +
                +
                0 (EXIT_SUCCESS)
                Successful program execution. +
                1 (EXIT_FAILURE)
                The operation failed or the command syntax was not valid. +
                66 (EX_NOINPUT)
                A specified configuration file could not be loaded. +
                70 (EX_SOFTWARE)
                libopts had an internal operational error. Please report +it to autogen-users@lists.sourceforge.net. Thank you.
                -
                - -
                -

                -Next: , Previous: , Up: sntp Invocation  

                +
                +


                +Next: , +Previous: sntp exit status, +Up: sntp Invocation +
                - -

                1.1.18 sntp Usage

                -
                - -
                -

                -Previous: , Up: sntp Invocation  

                + +

                sntp Usage

                + +
                +


                +Previous: sntp Usage, +Up: sntp Invocation +
                - -

                1.1.19 sntp Authors

                -
                +

                sntp Authors

                + +
                +


                -
                -

                -Previous: , Up: sntp Description  

                +
                - -

                1.2 Usage

                + + +

                Usage

                The simplest use of this program is as an unprivileged command to -check the current time, offset, and error in the local clock. +check the current time, offset, and error in the local clock. For example: -

                -
                -
                sntp ntpserver.somewhere
                -
                -

                With suitable privilege, it can be run as a command or in a +

                    sntp ntpserver.somewhere
                +
                +

                With suitable privilege, it can be run as a command or in a crom job to reset the local clock from a reliable server, like -the ntpdate and rdate commands. +the ntpdate and rdate commands. For example: -

                -
                -
                sntp -a ntpserver.somewhere
                -
                -
                - +
                    sntp -a ntpserver.somewhere
                +
                + - - diff --git a/sntp/sntp.man.in b/sntp/sntp.man.in index ef2612c0e..241eb0394 100644 --- a/sntp/sntp.man.in +++ b/sntp/sntp.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH sntp @SNTP_MS@ "02 Jan 2017" "4.2.8p9" "User Commands" +.TH sntp @SNTP_MS@ "21 Mar 2017" "4.2.8p10-win-beta1" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-3naO9E/ag-KpaO5E) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:34 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:00 AM by AutoGen 5.18.5 .\" From the definitions sntp-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/sntp/sntp.mdoc.in b/sntp/sntp.mdoc.in index c48a59b5d..75c411691 100644 --- a/sntp/sntp.mdoc.in +++ b/sntp/sntp.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt SNTP @SNTP_MS@ User Commands .Os .\" EDIT THIS FILE WITH CAUTION (sntp-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:03:31 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:29:00 AM by AutoGen 5.18.5 .\" From the definitions sntp-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/util/invoke-ntp-keygen.texi b/util/invoke-ntp-keygen.texi index 04e6b2a9c..52d8c7bd1 100644 --- a/util/invoke-ntp-keygen.texi +++ b/util/invoke-ntp-keygen.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-ntp-keygen.texi) # -# It has been AutoGen-ed January 2, 2017 at 12:05:37 PM by AutoGen 5.18.5 +# It has been AutoGen-ed March 21, 2017 at 09:33:50 AM by AutoGen 5.18.5 # From the definitions ntp-keygen-opts.def # and the template file agtexi-cmd.tpl @end ignore @@ -886,17 +886,14 @@ with a status code of 0. @exampleindent 0 @example -ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.8p9 -Usage: ntp-keygen [ - [] | --[@{=| @}] ]... +ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.7p245 +USAGE: ntp-keygen [ - [] | --[@{=| @}] ]... Flg Arg Option-Name Description - -b Num imbits identity modulus bits - - it must be in the range: - 256 to 2048 -c Str certificate certificate scheme -C Str cipher privatekey cipher -d no debug-level Increase debug verbosity level - may appear multiple times - -D Num set-debug-level Set the debug verbosity level + -D Str set-debug-level Set the debug verbosity level - may appear multiple times -e no id-key Write IFF or GQ identity keys -G no gq-params Generate GQ parameters and keys @@ -906,34 +903,35 @@ Usage: ntp-keygen [ - [] | --[@{=| @}] ]... -l Num lifetime set certificate lifetime -M no md5key generate MD5 keys -m Num modulus modulus - - it must be in the range: + - It must be in the range: 256 to 2048 -P no pvt-cert generate PC private certificate - -p Str password local private password - -q Str export-passwd export IFF or GQ group keys with password + -p Str pvt-passwd output private password + -q Str get-pvt-passwd input private password -S Str sign-key generate sign key (RSA or DSA) -s Str subject-name set host and optionally group name -T no trusted-cert trusted certificate (TC scheme) -V Num mv-params generate MV parameters -v Num mv-keys update MV keys - opt version output version information and exit - -? no help display extended usage information and exit - -! no more-help extended usage information passed thru pager - -> opt save-opts save the option state to a config file - -< Str load-opts load options from a config file - - disabled as '--no-load-opts' + opt version Output version information and exit + -? no help Display extended usage information and exit + -! no more-help Extended usage information passed thru pager + -> opt save-opts Save the option state to a config file + -< Str load-opts Load options from a config file + - disabled as --no-load-opts - may appear multiple times Options are specified by doubled hyphens and their name or by a single hyphen and the flag character. + The following option preset mechanisms are supported: - reading file $HOME/.ntprc - reading file ./.ntprc - examining environment variables named NTP_KEYGEN_* -Please send bug reports to: +please send bug reports to: http://bugs.ntp.org, bugs@@ntp.org @end example @exampleindent 4 diff --git a/util/ntp-keygen-opts.c b/util/ntp-keygen-opts.c index b63de2d39..afad4f5c3 100644 --- a/util/ntp-keygen-opts.c +++ b/util/ntp-keygen-opts.c @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntp-keygen-opts.c) * - * It has been AutoGen-ed January 2, 2017 at 12:05:31 PM by AutoGen 5.18.5 + * It has been AutoGen-ed March 21, 2017 at 09:33:41 AM by AutoGen 5.18.5 * From the definitions ntp-keygen-opts.def * and the template file options * @@ -51,7 +51,7 @@ extern "C" { #endif extern FILE * option_usage_fp; #define zCopyright (ntp_keygen_opt_strs+0) -#define zLicenseDescrip (ntp_keygen_opt_strs+352) +#define zLicenseDescrip (ntp_keygen_opt_strs+363) /* * global included definitions @@ -71,15 +71,15 @@ extern FILE * option_usage_fp; /** * static const strings for ntp-keygen options */ -static char const ntp_keygen_opt_strs[2419] = -/* 0 */ "ntp-keygen (ntp) 4.2.8p9\n" +static char const ntp_keygen_opt_strs[2452] = +/* 0 */ "ntp-keygen (ntp) 4.2.8p10-win-beta1\n" "Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n" "This is free software. It is licensed for use, modification and\n" "redistribution under the terms of the NTP License, copies of which\n" "can be seen at:\n" " \n" " \n\0" -/* 352 */ "Permission to use, copy, modify, and distribute this software and its\n" +/* 363 */ "Permission to use, copy, modify, and distribute this software and its\n" "documentation for any purpose with or without fee is hereby granted,\n" "provided that the above copyright notice appears in all copies and that\n" "both the copyright notice and this permission notice appear in supporting\n" @@ -89,100 +89,100 @@ static char const ntp_keygen_opt_strs[2419] = "Time Foundation makes no representations about the suitability this\n" "software for any purpose. It is provided \"as is\" without express or\n" "implied warranty.\n\0" -/* 1020 */ "identity modulus bits\0" -/* 1042 */ "IMBITS\0" -/* 1049 */ "imbits\0" -/* 1056 */ "certificate scheme\0" -/* 1075 */ "CERTIFICATE\0" -/* 1087 */ "certificate\0" -/* 1099 */ "privatekey cipher\0" -/* 1117 */ "CIPHER\0" -/* 1124 */ "cipher\0" -/* 1131 */ "Increase debug verbosity level\0" -/* 1162 */ "DEBUG_LEVEL\0" -/* 1174 */ "debug-level\0" -/* 1186 */ "Set the debug verbosity level\0" -/* 1216 */ "SET_DEBUG_LEVEL\0" -/* 1232 */ "set-debug-level\0" -/* 1248 */ "Write IFF or GQ identity keys\0" -/* 1278 */ "ID_KEY\0" -/* 1285 */ "id-key\0" -/* 1292 */ "Generate GQ parameters and keys\0" -/* 1324 */ "GQ_PARAMS\0" -/* 1334 */ "gq-params\0" -/* 1344 */ "generate RSA host key\0" -/* 1366 */ "HOST_KEY\0" -/* 1375 */ "host-key\0" -/* 1384 */ "generate IFF parameters\0" -/* 1408 */ "IFFKEY\0" -/* 1415 */ "iffkey\0" -/* 1422 */ "set Autokey group name\0" -/* 1445 */ "IDENT\0" -/* 1451 */ "ident\0" -/* 1457 */ "set certificate lifetime\0" -/* 1482 */ "LIFETIME\0" -/* 1491 */ "lifetime\0" -/* 1500 */ "generate MD5 keys\0" -/* 1518 */ "MD5KEY\0" -/* 1525 */ "md5key\0" -/* 1532 */ "modulus\0" -/* 1540 */ "MODULUS\0" -/* 1548 */ "generate PC private certificate\0" -/* 1580 */ "PVT_CERT\0" -/* 1589 */ "pvt-cert\0" -/* 1598 */ "local private password\0" -/* 1621 */ "PASSWORD\0" -/* 1630 */ "password\0" -/* 1639 */ "export IFF or GQ group keys with password\0" -/* 1681 */ "EXPORT_PASSWD\0" -/* 1695 */ "export-passwd\0" -/* 1709 */ "generate sign key (RSA or DSA)\0" -/* 1740 */ "SIGN_KEY\0" -/* 1749 */ "sign-key\0" -/* 1758 */ "set host and optionally group name\0" -/* 1793 */ "SUBJECT_NAME\0" -/* 1806 */ "subject-name\0" -/* 1819 */ "trusted certificate (TC scheme)\0" -/* 1851 */ "TRUSTED_CERT\0" -/* 1864 */ "trusted-cert\0" -/* 1877 */ "generate MV parameters\0" -/* 1906 */ "MV_PARAMS\0" -/* 1916 */ "mv-params\0" -/* 1926 */ "update MV keys\0" -/* 1947 */ "MV_KEYS\0" -/* 1955 */ "mv-keys\0" -/* 1963 */ "display extended usage information and exit\0" -/* 2007 */ "help\0" -/* 2012 */ "extended usage information passed thru pager\0" -/* 2057 */ "more-help\0" -/* 2067 */ "output version information and exit\0" -/* 2103 */ "version\0" -/* 2111 */ "save the option state to a config file\0" -/* 2150 */ "save-opts\0" -/* 2160 */ "load options from a config file\0" -/* 2192 */ "LOAD_OPTS\0" -/* 2202 */ "no-load-opts\0" -/* 2215 */ "no\0" -/* 2218 */ "NTP_KEYGEN\0" -/* 2229 */ "ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.8p9\n" +/* 1031 */ "identity modulus bits\0" +/* 1053 */ "IMBITS\0" +/* 1060 */ "imbits\0" +/* 1067 */ "certificate scheme\0" +/* 1086 */ "CERTIFICATE\0" +/* 1098 */ "certificate\0" +/* 1110 */ "privatekey cipher\0" +/* 1128 */ "CIPHER\0" +/* 1135 */ "cipher\0" +/* 1142 */ "Increase debug verbosity level\0" +/* 1173 */ "DEBUG_LEVEL\0" +/* 1185 */ "debug-level\0" +/* 1197 */ "Set the debug verbosity level\0" +/* 1227 */ "SET_DEBUG_LEVEL\0" +/* 1243 */ "set-debug-level\0" +/* 1259 */ "Write IFF or GQ identity keys\0" +/* 1289 */ "ID_KEY\0" +/* 1296 */ "id-key\0" +/* 1303 */ "Generate GQ parameters and keys\0" +/* 1335 */ "GQ_PARAMS\0" +/* 1345 */ "gq-params\0" +/* 1355 */ "generate RSA host key\0" +/* 1377 */ "HOST_KEY\0" +/* 1386 */ "host-key\0" +/* 1395 */ "generate IFF parameters\0" +/* 1419 */ "IFFKEY\0" +/* 1426 */ "iffkey\0" +/* 1433 */ "set Autokey group name\0" +/* 1456 */ "IDENT\0" +/* 1462 */ "ident\0" +/* 1468 */ "set certificate lifetime\0" +/* 1493 */ "LIFETIME\0" +/* 1502 */ "lifetime\0" +/* 1511 */ "generate MD5 keys\0" +/* 1529 */ "MD5KEY\0" +/* 1536 */ "md5key\0" +/* 1543 */ "modulus\0" +/* 1551 */ "MODULUS\0" +/* 1559 */ "generate PC private certificate\0" +/* 1591 */ "PVT_CERT\0" +/* 1600 */ "pvt-cert\0" +/* 1609 */ "local private password\0" +/* 1632 */ "PASSWORD\0" +/* 1641 */ "password\0" +/* 1650 */ "export IFF or GQ group keys with password\0" +/* 1692 */ "EXPORT_PASSWD\0" +/* 1706 */ "export-passwd\0" +/* 1720 */ "generate sign key (RSA or DSA)\0" +/* 1751 */ "SIGN_KEY\0" +/* 1760 */ "sign-key\0" +/* 1769 */ "set host and optionally group name\0" +/* 1804 */ "SUBJECT_NAME\0" +/* 1817 */ "subject-name\0" +/* 1830 */ "trusted certificate (TC scheme)\0" +/* 1862 */ "TRUSTED_CERT\0" +/* 1875 */ "trusted-cert\0" +/* 1888 */ "generate MV parameters\0" +/* 1917 */ "MV_PARAMS\0" +/* 1927 */ "mv-params\0" +/* 1937 */ "update MV keys\0" +/* 1958 */ "MV_KEYS\0" +/* 1966 */ "mv-keys\0" +/* 1974 */ "display extended usage information and exit\0" +/* 2018 */ "help\0" +/* 2023 */ "extended usage information passed thru pager\0" +/* 2068 */ "more-help\0" +/* 2078 */ "output version information and exit\0" +/* 2114 */ "version\0" +/* 2122 */ "save the option state to a config file\0" +/* 2161 */ "save-opts\0" +/* 2171 */ "load options from a config file\0" +/* 2203 */ "LOAD_OPTS\0" +/* 2213 */ "no-load-opts\0" +/* 2226 */ "no\0" +/* 2229 */ "NTP_KEYGEN\0" +/* 2240 */ "ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.8p10-win-beta1\n" "Usage: %s [ - [] | --[{=| }] ]...\n\0" -/* 2343 */ "$HOME\0" -/* 2349 */ ".\0" -/* 2351 */ ".ntprc\0" -/* 2358 */ "http://bugs.ntp.org, bugs@ntp.org\0" -/* 2392 */ "\n\0" -/* 2394 */ "ntp-keygen (ntp) 4.2.8p9"; +/* 2365 */ "$HOME\0" +/* 2371 */ ".\0" +/* 2373 */ ".ntprc\0" +/* 2380 */ "http://bugs.ntp.org, bugs@ntp.org\0" +/* 2414 */ "\n\0" +/* 2416 */ "ntp-keygen (ntp) 4.2.8p10-win-beta1"; /** * imbits option description: */ #ifdef AUTOKEY /** Descriptive text for the imbits option */ -#define IMBITS_DESC (ntp_keygen_opt_strs+1020) +#define IMBITS_DESC (ntp_keygen_opt_strs+1031) /** Upper-cased name for the imbits option */ -#define IMBITS_NAME (ntp_keygen_opt_strs+1042) +#define IMBITS_NAME (ntp_keygen_opt_strs+1053) /** Name string for the imbits option */ -#define IMBITS_name (ntp_keygen_opt_strs+1049) +#define IMBITS_name (ntp_keygen_opt_strs+1060) /** Compiled in flag settings for the imbits option */ #define IMBITS_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -199,11 +199,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the certificate option */ -#define CERTIFICATE_DESC (ntp_keygen_opt_strs+1056) +#define CERTIFICATE_DESC (ntp_keygen_opt_strs+1067) /** Upper-cased name for the certificate option */ -#define CERTIFICATE_NAME (ntp_keygen_opt_strs+1075) +#define CERTIFICATE_NAME (ntp_keygen_opt_strs+1086) /** Name string for the certificate option */ -#define CERTIFICATE_name (ntp_keygen_opt_strs+1087) +#define CERTIFICATE_name (ntp_keygen_opt_strs+1098) /** Compiled in flag settings for the certificate option */ #define CERTIFICATE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -220,11 +220,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the cipher option */ -#define CIPHER_DESC (ntp_keygen_opt_strs+1099) +#define CIPHER_DESC (ntp_keygen_opt_strs+1110) /** Upper-cased name for the cipher option */ -#define CIPHER_NAME (ntp_keygen_opt_strs+1117) +#define CIPHER_NAME (ntp_keygen_opt_strs+1128) /** Name string for the cipher option */ -#define CIPHER_name (ntp_keygen_opt_strs+1124) +#define CIPHER_name (ntp_keygen_opt_strs+1135) /** Compiled in flag settings for the cipher option */ #define CIPHER_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -240,11 +240,11 @@ static char const ntp_keygen_opt_strs[2419] = * debug-level option description: */ /** Descriptive text for the debug-level option */ -#define DEBUG_LEVEL_DESC (ntp_keygen_opt_strs+1131) +#define DEBUG_LEVEL_DESC (ntp_keygen_opt_strs+1142) /** Upper-cased name for the debug-level option */ -#define DEBUG_LEVEL_NAME (ntp_keygen_opt_strs+1162) +#define DEBUG_LEVEL_NAME (ntp_keygen_opt_strs+1173) /** Name string for the debug-level option */ -#define DEBUG_LEVEL_name (ntp_keygen_opt_strs+1174) +#define DEBUG_LEVEL_name (ntp_keygen_opt_strs+1185) /** Compiled in flag settings for the debug-level option */ #define DEBUG_LEVEL_FLAGS (OPTST_DISABLED) @@ -252,11 +252,11 @@ static char const ntp_keygen_opt_strs[2419] = * set-debug-level option description: */ /** Descriptive text for the set-debug-level option */ -#define SET_DEBUG_LEVEL_DESC (ntp_keygen_opt_strs+1186) +#define SET_DEBUG_LEVEL_DESC (ntp_keygen_opt_strs+1197) /** Upper-cased name for the set-debug-level option */ -#define SET_DEBUG_LEVEL_NAME (ntp_keygen_opt_strs+1216) +#define SET_DEBUG_LEVEL_NAME (ntp_keygen_opt_strs+1227) /** Name string for the set-debug-level option */ -#define SET_DEBUG_LEVEL_name (ntp_keygen_opt_strs+1232) +#define SET_DEBUG_LEVEL_name (ntp_keygen_opt_strs+1243) /** Compiled in flag settings for the set-debug-level option */ #define SET_DEBUG_LEVEL_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -266,11 +266,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the id-key option */ -#define ID_KEY_DESC (ntp_keygen_opt_strs+1248) +#define ID_KEY_DESC (ntp_keygen_opt_strs+1259) /** Upper-cased name for the id-key option */ -#define ID_KEY_NAME (ntp_keygen_opt_strs+1278) +#define ID_KEY_NAME (ntp_keygen_opt_strs+1289) /** Name string for the id-key option */ -#define ID_KEY_name (ntp_keygen_opt_strs+1285) +#define ID_KEY_name (ntp_keygen_opt_strs+1296) /** Compiled in flag settings for the id-key option */ #define ID_KEY_FLAGS (OPTST_DISABLED) @@ -286,11 +286,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the gq-params option */ -#define GQ_PARAMS_DESC (ntp_keygen_opt_strs+1292) +#define GQ_PARAMS_DESC (ntp_keygen_opt_strs+1303) /** Upper-cased name for the gq-params option */ -#define GQ_PARAMS_NAME (ntp_keygen_opt_strs+1324) +#define GQ_PARAMS_NAME (ntp_keygen_opt_strs+1335) /** Name string for the gq-params option */ -#define GQ_PARAMS_name (ntp_keygen_opt_strs+1334) +#define GQ_PARAMS_name (ntp_keygen_opt_strs+1345) /** Compiled in flag settings for the gq-params option */ #define GQ_PARAMS_FLAGS (OPTST_DISABLED) @@ -306,11 +306,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the host-key option */ -#define HOST_KEY_DESC (ntp_keygen_opt_strs+1344) +#define HOST_KEY_DESC (ntp_keygen_opt_strs+1355) /** Upper-cased name for the host-key option */ -#define HOST_KEY_NAME (ntp_keygen_opt_strs+1366) +#define HOST_KEY_NAME (ntp_keygen_opt_strs+1377) /** Name string for the host-key option */ -#define HOST_KEY_name (ntp_keygen_opt_strs+1375) +#define HOST_KEY_name (ntp_keygen_opt_strs+1386) /** Compiled in flag settings for the host-key option */ #define HOST_KEY_FLAGS (OPTST_DISABLED) @@ -326,11 +326,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the iffkey option */ -#define IFFKEY_DESC (ntp_keygen_opt_strs+1384) +#define IFFKEY_DESC (ntp_keygen_opt_strs+1395) /** Upper-cased name for the iffkey option */ -#define IFFKEY_NAME (ntp_keygen_opt_strs+1408) +#define IFFKEY_NAME (ntp_keygen_opt_strs+1419) /** Name string for the iffkey option */ -#define IFFKEY_name (ntp_keygen_opt_strs+1415) +#define IFFKEY_name (ntp_keygen_opt_strs+1426) /** Compiled in flag settings for the iffkey option */ #define IFFKEY_FLAGS (OPTST_DISABLED) @@ -346,11 +346,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the ident option */ -#define IDENT_DESC (ntp_keygen_opt_strs+1422) +#define IDENT_DESC (ntp_keygen_opt_strs+1433) /** Upper-cased name for the ident option */ -#define IDENT_NAME (ntp_keygen_opt_strs+1445) +#define IDENT_NAME (ntp_keygen_opt_strs+1456) /** Name string for the ident option */ -#define IDENT_name (ntp_keygen_opt_strs+1451) +#define IDENT_name (ntp_keygen_opt_strs+1462) /** Compiled in flag settings for the ident option */ #define IDENT_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -367,11 +367,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the lifetime option */ -#define LIFETIME_DESC (ntp_keygen_opt_strs+1457) +#define LIFETIME_DESC (ntp_keygen_opt_strs+1468) /** Upper-cased name for the lifetime option */ -#define LIFETIME_NAME (ntp_keygen_opt_strs+1482) +#define LIFETIME_NAME (ntp_keygen_opt_strs+1493) /** Name string for the lifetime option */ -#define LIFETIME_name (ntp_keygen_opt_strs+1491) +#define LIFETIME_name (ntp_keygen_opt_strs+1502) /** Compiled in flag settings for the lifetime option */ #define LIFETIME_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -387,11 +387,11 @@ static char const ntp_keygen_opt_strs[2419] = * md5key option description: */ /** Descriptive text for the md5key option */ -#define MD5KEY_DESC (ntp_keygen_opt_strs+1500) +#define MD5KEY_DESC (ntp_keygen_opt_strs+1511) /** Upper-cased name for the md5key option */ -#define MD5KEY_NAME (ntp_keygen_opt_strs+1518) +#define MD5KEY_NAME (ntp_keygen_opt_strs+1529) /** Name string for the md5key option */ -#define MD5KEY_name (ntp_keygen_opt_strs+1525) +#define MD5KEY_name (ntp_keygen_opt_strs+1536) /** Compiled in flag settings for the md5key option */ #define MD5KEY_FLAGS (OPTST_DISABLED) @@ -400,11 +400,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the modulus option */ -#define MODULUS_DESC (ntp_keygen_opt_strs+1532) +#define MODULUS_DESC (ntp_keygen_opt_strs+1543) /** Upper-cased name for the modulus option */ -#define MODULUS_NAME (ntp_keygen_opt_strs+1540) +#define MODULUS_NAME (ntp_keygen_opt_strs+1551) /** Name string for the modulus option */ -#define MODULUS_name (ntp_keygen_opt_strs+1532) +#define MODULUS_name (ntp_keygen_opt_strs+1543) /** Compiled in flag settings for the modulus option */ #define MODULUS_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -421,11 +421,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the pvt-cert option */ -#define PVT_CERT_DESC (ntp_keygen_opt_strs+1548) +#define PVT_CERT_DESC (ntp_keygen_opt_strs+1559) /** Upper-cased name for the pvt-cert option */ -#define PVT_CERT_NAME (ntp_keygen_opt_strs+1580) +#define PVT_CERT_NAME (ntp_keygen_opt_strs+1591) /** Name string for the pvt-cert option */ -#define PVT_CERT_name (ntp_keygen_opt_strs+1589) +#define PVT_CERT_name (ntp_keygen_opt_strs+1600) /** Compiled in flag settings for the pvt-cert option */ #define PVT_CERT_FLAGS (OPTST_DISABLED) @@ -441,11 +441,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the password option */ -#define PASSWORD_DESC (ntp_keygen_opt_strs+1598) +#define PASSWORD_DESC (ntp_keygen_opt_strs+1609) /** Upper-cased name for the password option */ -#define PASSWORD_NAME (ntp_keygen_opt_strs+1621) +#define PASSWORD_NAME (ntp_keygen_opt_strs+1632) /** Name string for the password option */ -#define PASSWORD_name (ntp_keygen_opt_strs+1630) +#define PASSWORD_name (ntp_keygen_opt_strs+1641) /** Compiled in flag settings for the password option */ #define PASSWORD_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -462,11 +462,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the export-passwd option */ -#define EXPORT_PASSWD_DESC (ntp_keygen_opt_strs+1639) +#define EXPORT_PASSWD_DESC (ntp_keygen_opt_strs+1650) /** Upper-cased name for the export-passwd option */ -#define EXPORT_PASSWD_NAME (ntp_keygen_opt_strs+1681) +#define EXPORT_PASSWD_NAME (ntp_keygen_opt_strs+1692) /** Name string for the export-passwd option */ -#define EXPORT_PASSWD_name (ntp_keygen_opt_strs+1695) +#define EXPORT_PASSWD_name (ntp_keygen_opt_strs+1706) /** Compiled in flag settings for the export-passwd option */ #define EXPORT_PASSWD_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -483,11 +483,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the sign-key option */ -#define SIGN_KEY_DESC (ntp_keygen_opt_strs+1709) +#define SIGN_KEY_DESC (ntp_keygen_opt_strs+1720) /** Upper-cased name for the sign-key option */ -#define SIGN_KEY_NAME (ntp_keygen_opt_strs+1740) +#define SIGN_KEY_NAME (ntp_keygen_opt_strs+1751) /** Name string for the sign-key option */ -#define SIGN_KEY_name (ntp_keygen_opt_strs+1749) +#define SIGN_KEY_name (ntp_keygen_opt_strs+1760) /** Compiled in flag settings for the sign-key option */ #define SIGN_KEY_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -504,11 +504,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the subject-name option */ -#define SUBJECT_NAME_DESC (ntp_keygen_opt_strs+1758) +#define SUBJECT_NAME_DESC (ntp_keygen_opt_strs+1769) /** Upper-cased name for the subject-name option */ -#define SUBJECT_NAME_NAME (ntp_keygen_opt_strs+1793) +#define SUBJECT_NAME_NAME (ntp_keygen_opt_strs+1804) /** Name string for the subject-name option */ -#define SUBJECT_NAME_name (ntp_keygen_opt_strs+1806) +#define SUBJECT_NAME_name (ntp_keygen_opt_strs+1817) /** Compiled in flag settings for the subject-name option */ #define SUBJECT_NAME_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -525,11 +525,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the trusted-cert option */ -#define TRUSTED_CERT_DESC (ntp_keygen_opt_strs+1819) +#define TRUSTED_CERT_DESC (ntp_keygen_opt_strs+1830) /** Upper-cased name for the trusted-cert option */ -#define TRUSTED_CERT_NAME (ntp_keygen_opt_strs+1851) +#define TRUSTED_CERT_NAME (ntp_keygen_opt_strs+1862) /** Name string for the trusted-cert option */ -#define TRUSTED_CERT_name (ntp_keygen_opt_strs+1864) +#define TRUSTED_CERT_name (ntp_keygen_opt_strs+1875) /** Compiled in flag settings for the trusted-cert option */ #define TRUSTED_CERT_FLAGS (OPTST_DISABLED) @@ -545,11 +545,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the mv-params option */ -#define MV_PARAMS_DESC (ntp_keygen_opt_strs+1877) +#define MV_PARAMS_DESC (ntp_keygen_opt_strs+1888) /** Upper-cased name for the mv-params option */ -#define MV_PARAMS_NAME (ntp_keygen_opt_strs+1906) +#define MV_PARAMS_NAME (ntp_keygen_opt_strs+1917) /** Name string for the mv-params option */ -#define MV_PARAMS_name (ntp_keygen_opt_strs+1916) +#define MV_PARAMS_name (ntp_keygen_opt_strs+1927) /** Compiled in flag settings for the mv-params option */ #define MV_PARAMS_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -566,11 +566,11 @@ static char const ntp_keygen_opt_strs[2419] = */ #ifdef AUTOKEY /** Descriptive text for the mv-keys option */ -#define MV_KEYS_DESC (ntp_keygen_opt_strs+1926) +#define MV_KEYS_DESC (ntp_keygen_opt_strs+1937) /** Upper-cased name for the mv-keys option */ -#define MV_KEYS_NAME (ntp_keygen_opt_strs+1947) +#define MV_KEYS_NAME (ntp_keygen_opt_strs+1958) /** Name string for the mv-keys option */ -#define MV_KEYS_name (ntp_keygen_opt_strs+1955) +#define MV_KEYS_name (ntp_keygen_opt_strs+1966) /** Compiled in flag settings for the mv-keys option */ #define MV_KEYS_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -585,11 +585,11 @@ static char const ntp_keygen_opt_strs[2419] = /* * Help/More_Help/Version option descriptions: */ -#define HELP_DESC (ntp_keygen_opt_strs+1963) -#define HELP_name (ntp_keygen_opt_strs+2007) +#define HELP_DESC (ntp_keygen_opt_strs+1974) +#define HELP_name (ntp_keygen_opt_strs+2018) #ifdef HAVE_WORKING_FORK -#define MORE_HELP_DESC (ntp_keygen_opt_strs+2012) -#define MORE_HELP_name (ntp_keygen_opt_strs+2057) +#define MORE_HELP_DESC (ntp_keygen_opt_strs+2023) +#define MORE_HELP_name (ntp_keygen_opt_strs+2068) #define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT) #else #define MORE_HELP_DESC HELP_DESC @@ -602,14 +602,14 @@ static char const ntp_keygen_opt_strs[2419] = # define VER_FLAGS (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \ OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT) #endif -#define VER_DESC (ntp_keygen_opt_strs+2067) -#define VER_name (ntp_keygen_opt_strs+2103) -#define SAVE_OPTS_DESC (ntp_keygen_opt_strs+2111) -#define SAVE_OPTS_name (ntp_keygen_opt_strs+2150) -#define LOAD_OPTS_DESC (ntp_keygen_opt_strs+2160) -#define LOAD_OPTS_NAME (ntp_keygen_opt_strs+2192) -#define NO_LOAD_OPTS_name (ntp_keygen_opt_strs+2202) -#define LOAD_OPTS_pfx (ntp_keygen_opt_strs+2215) +#define VER_DESC (ntp_keygen_opt_strs+2078) +#define VER_name (ntp_keygen_opt_strs+2114) +#define SAVE_OPTS_DESC (ntp_keygen_opt_strs+2122) +#define SAVE_OPTS_name (ntp_keygen_opt_strs+2161) +#define LOAD_OPTS_DESC (ntp_keygen_opt_strs+2171) +#define LOAD_OPTS_NAME (ntp_keygen_opt_strs+2203) +#define NO_LOAD_OPTS_name (ntp_keygen_opt_strs+2213) +#define LOAD_OPTS_pfx (ntp_keygen_opt_strs+2226) #define LOAD_OPTS_name (NO_LOAD_OPTS_name + 3) /** * Declare option callback procedures @@ -960,24 +960,24 @@ static tOptDesc optDesc[OPTION_CT] = { /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** Reference to the upper cased version of ntp-keygen. */ -#define zPROGNAME (ntp_keygen_opt_strs+2218) +#define zPROGNAME (ntp_keygen_opt_strs+2229) /** Reference to the title line for ntp-keygen usage. */ -#define zUsageTitle (ntp_keygen_opt_strs+2229) +#define zUsageTitle (ntp_keygen_opt_strs+2240) /** ntp-keygen configuration file name. */ -#define zRcName (ntp_keygen_opt_strs+2351) +#define zRcName (ntp_keygen_opt_strs+2373) /** Directories to search for ntp-keygen config files. */ static char const * const apzHomeList[3] = { - ntp_keygen_opt_strs+2343, - ntp_keygen_opt_strs+2349, + ntp_keygen_opt_strs+2365, + ntp_keygen_opt_strs+2371, NULL }; /** The ntp-keygen program bug email address. */ -#define zBugsAddr (ntp_keygen_opt_strs+2358) +#define zBugsAddr (ntp_keygen_opt_strs+2380) /** Clarification/explanation of what ntp-keygen does. */ -#define zExplain (ntp_keygen_opt_strs+2392) +#define zExplain (ntp_keygen_opt_strs+2414) /** Extra detail explaining what ntp-keygen does. */ #define zDetail (NULL) /** The full version string for ntp-keygen. */ -#define zFullVersion (ntp_keygen_opt_strs+2394) +#define zFullVersion (ntp_keygen_opt_strs+2416) /* extracted from optcode.tlib near line 364 */ #if defined(ENABLE_NLS) @@ -1309,7 +1309,7 @@ static void bogus_function(void) { translate option names. */ /* referenced via ntp_keygenOptions.pzCopyright */ - puts(_("ntp-keygen (ntp) 4.2.8p9\n\ + puts(_("ntp-keygen (ntp) 4.2.8p10-win-beta1\n\ Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n\ This is free software. It is licensed for use, modification and\n\ redistribution under the terms of the NTP License, copies of which\n\ @@ -1408,14 +1408,14 @@ implied warranty.\n")); puts(_("load options from a config file")); /* referenced via ntp_keygenOptions.pzUsageTitle */ - puts(_("ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.8p9\n\ + puts(_("ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.8p10-win-beta1\n\ Usage: %s [ - [] | --[{=| }] ]...\n")); /* referenced via ntp_keygenOptions.pzExplain */ puts(_("\n")); /* referenced via ntp_keygenOptions.pzFullVersion */ - puts(_("ntp-keygen (ntp) 4.2.8p9")); + puts(_("ntp-keygen (ntp) 4.2.8p10-win-beta1")); /* referenced via ntp_keygenOptions.pzFullUsage */ puts(_("<<>>")); diff --git a/util/ntp-keygen-opts.h b/util/ntp-keygen-opts.h index 4d0fa4d4b..99007aa2f 100644 --- a/util/ntp-keygen-opts.h +++ b/util/ntp-keygen-opts.h @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntp-keygen-opts.h) * - * It has been AutoGen-ed January 2, 2017 at 12:05:31 PM by AutoGen 5.18.5 + * It has been AutoGen-ed March 21, 2017 at 09:33:40 AM by AutoGen 5.18.5 * From the definitions ntp-keygen-opts.def * and the template file options * @@ -94,9 +94,9 @@ typedef enum { /** count of all options for ntp-keygen */ #define OPTION_CT 26 /** ntp-keygen version */ -#define NTP_KEYGEN_VERSION "4.2.8p9" +#define NTP_KEYGEN_VERSION "4.2.8p10-win-beta1" /** Full ntp-keygen version text */ -#define NTP_KEYGEN_FULL_VERSION "ntp-keygen (ntp) 4.2.8p9" +#define NTP_KEYGEN_FULL_VERSION "ntp-keygen (ntp) 4.2.8p10-win-beta1" /** * Interface defines for all options. Replace "n" with the UPPER_CASED diff --git a/util/ntp-keygen.1ntp-keygenman b/util/ntp-keygen.1ntp-keygenman index ca9c46947..7c1a7abdb 100644 --- a/util/ntp-keygen.1ntp-keygenman +++ b/util/ntp-keygen.1ntp-keygenman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntp-keygen 1ntp-keygenman "02 Jan 2017" "ntp (4.2.8p9)" "User Commands" +.TH ntp-keygen 1ntp-keygenman "21 Mar 2017" "ntp (4.2.8p10-win-beta1)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-aIa4lT/ag-jKa4jT) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:38 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:33:49 AM by AutoGen 5.18.5 .\" From the definitions ntp-keygen-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/util/ntp-keygen.1ntp-keygenmdoc b/util/ntp-keygen.1ntp-keygenmdoc index ae8437627..ce440ebf4 100644 --- a/util/ntp-keygen.1ntp-keygenmdoc +++ b/util/ntp-keygen.1ntp-keygenmdoc @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTP_KEYGEN 1ntp-keygenmdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntp-keygen-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:35 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:33:50 AM by AutoGen 5.18.5 .\" From the definitions ntp-keygen-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/util/ntp-keygen.html b/util/ntp-keygen.html index 7dd9467e6..01502d2e7 100644 --- a/util/ntp-keygen.html +++ b/util/ntp-keygen.html @@ -1,111 +1,87 @@ - - - + -Ntp-keygen User’s Manual - - - - - - - - - - - - +Ntp-keygen User's Manual + + + + + + + - - -

                Ntp-keygen User’s Manual

                - + +

                Ntp-keygen User's Manual

                + +
                +


                +Up: (dir) +
                +
                - -

                Short Table of Contents

                +

                Top

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

                -Next: , Previous: , Up: (dir)  

                +
                +


                +Next: , +Previous: (dir), +Up: (dir) +
                - -

                NTP Key Generation Program User Manual

                -

                This document describes the use of the NTP Project’s ntp-keygen +

                NTP Key Generation Program User Manual

                + +

                This document describes the use of the NTP Project's ntp-keygen program, that generates cryptographic data files used by the NTPv4 -authentication and identity schemes. +authentication and identity schemes. It can generate message digest keys used in symmetric key cryptography and, if the OpenSSL software library has been installed, it can generate host keys, sign keys, certificates, and identity keys and parameters used by the Autokey -public key cryptography. +public key cryptography. The message digest keys file is generated in a -format compatible with NTPv3. +format compatible with NTPv3. All other files are in PEM-encoded printable ASCII format so they can be embedded as MIME attachments in mail to other sites. -

                -

                This document applies to version 4.2.8p9-win of ntp-keygen. -

                -
                - -
                -

                -Next: , Previous: , Up: Top  

                + +

                This document applies to version 4.2.8p10-win-beta1 of ntp-keygen. + +

                +


                +Next: , +Previous: Top, +Up: Top +
                - -

                1 Description

                + + +

                Description

                This program generates cryptographic data files used by the NTPv4 authentication and identity schemes. It can generate message digest @@ -116,295 +92,292 @@ public key cryptography. The message digest keys file is generated in a format compatible with NTPv3. All other files are in PEM-encoded printable ASCII format so they can be embedded as MIME attachments in mail to other sites. -

                -

                When used to generate message digest keys, the program produces a file + +

                When used to generate message digest keys, the program produces a file containing ten pseudo-random printable ASCII strings suitable for the -MD5 message digest algorithm included in the distribution. +MD5 message digest algorithm included in the distribution. If the OpenSSL library is installed, it produces an additional ten hex-encoded random bit strings suitable for the SHA1 and other message digest -algorithms. +algorithms. The message digest keys file must be distributed and stored -using secure means beyond the scope of NTP itself. +using secure means beyond the scope of NTP itself. Besides the keys used for ordinary NTP associations, additional keys can be defined as passwords for the ntpq and ntpdc utility programs. -

                -

                The remaining generated files are compatible with other OpenSSL -applications and other Public Key Infrastructure (PKI) resources. + +

                The remaining generated files are compatible with other OpenSSL +applications and other Public Key Infrastructure (PKI) resources. Certificates generated by this program are compatible with extant industry practice, although some users might find the interpretation of -X509v3 extension fields somewhat liberal. +X509v3 extension fields somewhat liberal. However, the identity keys are probably not compatible with anything other than Autokey. -

                -

                Some files used by this program are encrypted using a private password. + +

                Some files used by this program are encrypted using a private password. The -p option specifies the password for local encrypted files and the --q option the password for encrypted files sent to remote sites. +-q option the password for encrypted files sent to remote sites. If no password is specified, the host name returned by the Unix gethostname() function, normally the DNS name of the host, is used. -

                -

                The pw option of the crypto configuration command -specifies the read password for previously encrypted local files. -This must match the local password used by this program. -If not specified, the host name is used. + +

                The pw option of the crypto configuration command +specifies the read password for previously encrypted local files. +This must match the local password used by this program. +If not specified, the host name is used. Thus, if files are generated by this program without password, they can be read back by ntpd without password, but only on the same host. -

                -

                Normally, encrypted files for each host are generated by that host and + +

                Normally, encrypted files for each host are generated by that host and used only by that host, although exceptions exist as noted later on -this page. +this page. The symmetric keys file, normally called ntp.keys, is -usually installed in /etc. +usually installed in /etc. Other files and links are usually installed in /usr/local/etc, which is normally in a shared filesystem in -NFS-mounted networks and cannot be changed by shared clients. +NFS-mounted networks and cannot be changed by shared clients. The location of the keys directory can be changed by the keysdir -configuration command in such cases. +configuration command in such cases. Normally, this is in /etc. -

                -

                This program directs commentary and error messages to the standard + +

                This program directs commentary and error messages to the standard error stream stderr and remote files to the standard output stream stdout where they can be piped to other applications or redirected to -files. +files. The names used for generated files and links all begin with the string ntpkey and include the file type, generating host and filestamp, as described in the Cryptographic Data Files section below. -

                -
                - -
                -

                -Next: , Previous: , Up: Top  

                + +
                +


                +Next: , +Previous: Description, +Up: Top +
                - -

                1.1 Running the Program

                + + +

                Running the Program

                To test and gain experience with Autokey concepts, log in as root and -change to the keys directory, usually /usr/local/etc. +change to the keys directory, usually /usr/local/etc. When run for the first time, or if all files with names beginning ntpkey] have been removed, use the ntp-keygen command without arguments to generate a default RSA host key and matching RSA-MD5 certificate with expiration -date one year hence. +date one year hence. If run again without options, the program uses the existing keys and parameters and generates only a new certificate with new expiration date one year hence. -

                -

                Run the command on as many hosts as necessary. + +

                Run the command on as many hosts as necessary. Designate one of them as the trusted host (TH) using ntp-keygen with the -T option and configure -it to synchronize from reliable Internet servers. -Then configure the other hosts to synchronize to the TH directly or indirectly. +it to synchronize from reliable Internet servers. +Then configure the other hosts to synchronize to the TH directly or indirectly. A certificate trail is created when Autokey asks the immediately ascendant host towards the TH to sign its certificate, which is then -provided to the immediately descendant host on request. +provided to the immediately descendant host on request. All group hosts should have acyclic certificate trails ending on the TH. -

                -

                The host key is used to encrypt the cookie when required and so must be -RSA type. -By default, the host key is also the sign key used to encrypt signatures. + +

                The host key is used to encrypt the cookie when required and so must be +RSA type. +By default, the host key is also the sign key used to encrypt signatures. A different sign key can be assigned using the -S option -and this can be either RSA or DSA type. +and this can be either RSA or DSA type. By default, the signature message digest type is MD5, but any combination of sign key type and message digest type supported by the OpenSSL library can be specified using the -c option. -

                -

                The rules say cryptographic media should be generated with proventic + +

                The rules say cryptographic media should be generated with proventic filestamps, which means the host should already be synchronized before -this program is run. +this program is run. This of course creates a chicken-and-egg problem -when the host is started for the first time. +when the host is started for the first time. Accordingly, the host time should be set by some other means, such as eyeball-and-wristwatch, at -least so that the certificate lifetime is within the current year. +least so that the certificate lifetime is within the current year. After that and when the host is synchronized to a proventic source, the certificate should be re-generated. -

                -

                Additional information on trusted groups and identity schemes is on the + +

                Additional information on trusted groups and identity schemes is on the Autokey Public-Key Authentication page. -

                -
                + +
                +


                -
                -

                -Next: , Previous: , Up: Description  

                +
                - -

                1.2 Invoking ntp-keygen

                - - +

                Invoking ntp-keygen

                +

                -

                This program generates cryptographic data files used by the NTPv4 -authentication and identification schemes. -It generates MD5 key files used in symmetric key cryptography. +

                This program generates cryptographic data files used by the NTPv4 +authentication and identification schemes. +It generates MD5 key files used in symmetric key cryptography. In addition, if the OpenSSL software library has been installed, it generates keys, certificate and identity files used in public key -cryptography. +cryptography. These files are used for cookie encryption, digital signature and challenge/response identification algorithms compatible with the Internet standard security infrastructure. -

                -

                All files are in PEM-encoded printable ASCII format, + +

                All files are in PEM-encoded printable ASCII format, so they can be embedded as MIME attachments in mail to other sites -and certificate authorities. +and certificate authorities. By default, files are not encrypted. -

                -

                When used to generate message digest keys, the program produces a file + +

                When used to generate message digest keys, the program produces a file containing ten pseudo-random printable ASCII strings suitable for the -MD5 message digest algorithm included in the distribution. +MD5 message digest algorithm included in the distribution. If the OpenSSL library is installed, it produces an additional ten hex-encoded random bit strings suitable for the SHA1 and other message -digest algorithms. +digest algorithms. The message digest keys file must be distributed and stored -using secure means beyond the scope of NTP itself. +using secure means beyond the scope of NTP itself. Besides the keys used for ordinary NTP associations, additional keys can be defined as passwords for the ntpq(1ntpqmdoc) and ntpdc(1ntpdcmdoc) utility programs. -

                -

                The remaining generated files are compatible with other OpenSSL -applications and other Public Key Infrastructure (PKI) resources. + +

                The remaining generated files are compatible with other OpenSSL +applications and other Public Key Infrastructure (PKI) resources. Certificates generated by this program are compatible with extant industry practice, although some users might find the interpretation of -X509v3 extension fields somewhat liberal. +X509v3 extension fields somewhat liberal. However, the identity keys are probably not compatible with anything other than Autokey. -

                -

                Some files used by this program are encrypted using a private password. + +

                Some files used by this program are encrypted using a private password. The -p option specifies the password for local encrypted files and the -q -option the password for encrypted files sent to remote sites. +option the password for encrypted files sent to remote sites. If no password is specified, the host name returned by the Unix gethostname() function, normally the DNS name of the host is used. -

                -

                The + +

                The pw option of the crypto configuration command specifies the read -password for previously encrypted local files. -This must match the local password used by this program. -If not specified, the host name is used. +password for previously encrypted local files. +This must match the local password used by this program. +If not specified, the host name is used. Thus, if files are generated by this program without password, they can be read back by ntpd without password but only on the same host. -

                -

                Normally, encrypted files for each host are generated by that host and + +

                Normally, encrypted files for each host are generated by that host and used only by that host, although exceptions exist as noted later on -this page. +this page. The symmetric keys file, normally called ntp.keys, is usually installed in -/etc. +/etc. Other files and links are usually installed in -/usr/local/etc, +/usr/local/etc, which is normally in a shared filesystem in -NFS-mounted networks and cannot be changed by shared clients. +NFS-mounted networks and cannot be changed by shared clients. The location of the keys directory can be changed by the keysdir -configuration command in such cases. +configuration command in such cases. Normally, this is in -/etc. -

                -

                This program directs commentary and error messages to the standard +/etc. + +

                This program directs commentary and error messages to the standard error stream stderr and remote files to the standard output stream stdout -where they can be piped to other applications or redirected to files. +where they can be piped to other applications or redirected to files. The names used for generated files and links all begin with the string ntpkey and include the file type, generating host and filestamp, as described in the -“Cryptographic Data Files” +Cryptographic Data Files section below. -

                -

                1.2.1 Running the Program

                + +
                Running the Program
                +

                To test and gain experience with Autokey concepts, log in as root and change to the keys directory, usually -/usr/local/etc +/usr/local/etc When run for the first time, or if all files with names beginning with ntpkey have been removed, use the ntp-keygen command without arguments to generate a default RSA host key and matching RSA-MD5 certificate with expiration -date one year hence. +date one year hence. If run again without options, the program uses the existing keys and parameters and generates only a new certificate with new expiration date one year hence. -

                -

                Run the command on as many hosts as necessary. + +

                Run the command on as many hosts as necessary. Designate one of them as the trusted host (TH) using ntp-keygen with the -T -option and configure it to synchronize from reliable Internet servers. +option and configure it to synchronize from reliable Internet servers. Then configure the other hosts to synchronize to the TH directly or -indirectly. +indirectly. A certificate trail is created when Autokey asks the immediately ascendant host towards the TH to sign its certificate, which is then -provided to the immediately descendant host on request. +provided to the immediately descendant host on request. All group hosts should have acyclic certificate trails ending on the TH. -

                -

                The host key is used to encrypt the cookie when required and so must be -RSA type. + +

                The host key is used to encrypt the cookie when required and so must be +RSA type. By default, the host key is also the sign key used to encrypt -signatures. +signatures. A different sign key can be assigned using the -S -option and this can be either RSA or DSA type. +option and this can be either RSA or DSA type. By default, the signature message digest type is MD5, but any combination of sign key type and message digest type supported by the OpenSSL library can be specified using the -c -option. +option. The rules say cryptographic media should be generated with proventic filestamps, which means the host should already be synchronized before -this program is run. +this program is run. This of course creates a chicken-and-egg problem -when the host is started for the first time. +when the host is started for the first time. Accordingly, the host time should be set by some other means, such as eyeball-and-wristwatch, at -least so that the certificate lifetime is within the current year. +least so that the certificate lifetime is within the current year. After that and when the host is synchronized to a proventic source, the certificate should be re-generated. -

                -

                Additional information on trusted groups and identity schemes is on the -“Autokey Public-Key Authentication” -page. -

                +

                Additional information on trusted groups and identity schemes is on the +Autokey Public-Key Authentication +page. -

                The +

                The ntpd(1ntpdmdoc) configuration command crypto pw password -specifies the read password for previously encrypted files. +specifies the read password for previously encrypted files. The daemon expires on the spot if the password is missing -or incorrect. +or incorrect. For convenience, if a file has been previously encrypted, the default read password is the name of the host running -the program. +the program. If the previous write password is specified as the host name, these files can be read by that host with no explicit password. -

                -

                File names begin with the prefix +

                File names begin with the prefix ntpkey_ and end with the postfix _hostname.filestamp, @@ -413,7 +386,7 @@ where is the owner name, usually the string returned by the Unix gethostname() routine, and filestamp -is the NTP seconds when the file was generated, in decimal digits. +is the NTP seconds when the file was generated, in decimal digits. This both guarantees uniqueness and simplifies maintenance procedures, since all files can be quickly removed by a @@ -422,99 +395,100 @@ command or all files generated at a specific time can be removed by a rm *filestamp -command. +command. To further reduce the risk of misconfiguration, the first two lines of a file contain the file name and generation date and time as comments. -

                -

                All files are installed by default in the keys directory -/usr/local/etc, + +

                All files are installed by default in the keys directory +/usr/local/etc, which is normally in a shared filesystem -in NFS-mounted networks. +in NFS-mounted networks. The actual location of the keys directory and each file can be overridden by configuration commands, -but this is not recommended. +but this is not recommended. Normally, the files for each host are generated by that host and used only by that host, although exceptions exist as noted later on this page. -

                -

                Normally, files containing private values, + +

                Normally, files containing private values, including the host key, sign key and identification parameters, are permitted root read/write-only; -while others containing public values are permitted world readable. +while others containing public values are permitted world readable. Alternatively, files containing private values can be encrypted and these files permitted world readable, -which simplifies maintenance in shared file systems. +which simplifies maintenance in shared file systems. Since uniqueness is insured by the hostname and file name extensions, the files for a NFS server and dependent clients can all be installed in the same shared directory. -

                -

                The recommended practice is to keep the file name extensions + +

                The recommended practice is to keep the file name extensions when installing a file and to install a soft link from the generic names specified elsewhere on this page -to the generated files. +to the generated files. This allows new file generations to be activated simply -by changing the link. +by changing the link. If a link is present, ntpd follows it to the file name -to extract the filestamp. +to extract the filestamp. If a link is not present, ntpd(1ntpdmdoc) -extracts the filestamp from the file itself. +extracts the filestamp from the file itself. This allows clients to verify that the file and generation times -are always current. +are always current. The ntp-keygen program uses the same timestamp extension for all files generated at one time, so each generation is distinct and can be readily recognized in monitoring data. -

                -

                1.2.1.1 Running the program

                + +
                Running the program
                +

                The safest way to run the ntp-keygen -program is logged in directly as root. +program is logged in directly as root. The recommended procedure is change to the keys directory, usually -/usr/local/etc, -then run the program. +/usr/local/etc, +then run the program. When run for the first time, or if all ntpkey files have been removed, the program generates a RSA host key file and matching RSA-MD5 certificate file, -which is all that is necessary in many cases. +which is all that is necessary in many cases. The program also generates soft links from the generic names -to the respective files. +to the respective files. If run again, the program uses the same host key file, but generates a new certificate file and link. -

                -

                The host key is used to encrypt the cookie when required and so must be RSA type. -By default, the host key is also the sign key used to encrypt signatures. + +

                The host key is used to encrypt the cookie when required and so must be RSA type. +By default, the host key is also the sign key used to encrypt signatures. When necessary, a different sign key can be specified and this can be -either RSA or DSA type. +either RSA or DSA type. By default, the message digest type is MD5, but any combination of sign key type and message digest type supported by the OpenSSL library can be specified, including those using the MD2, MD5, SHA, SHA1, MDC2 -and RIPE160 message digest algorithms. +and RIPE160 message digest algorithms. However, the scheme specified in the certificate must be compatible -with the sign key. +with the sign key. Certificates using any digest algorithm are compatible with RSA sign keys; however, only SHA and SHA1 certificates are compatible with DSA sign keys. -

                -

                Private/public key files and certificates are compatible with -other OpenSSL applications and very likely other libraries as well. + +

                Private/public key files and certificates are compatible with +other OpenSSL applications and very likely other libraries as well. Certificates or certificate requests derived from them should be compatible with extant industry practice, although some users might find -the interpretation of X509v3 extension fields somewhat liberal. +the interpretation of X509v3 extension fields somewhat liberal. However, the identification parameter files, although encoded as the other files, are probably not compatible with anything other than Autokey. -

                -

                Running the program as other than root and using the Unix + +

                Running the program as other than root and using the Unix su command to assume root may not work properly, since by default the OpenSSL library looks for the random seed file .rnd -in the user home directory. +in the user home directory. However, there should be only one .rnd, most conveniently @@ -522,119 +496,119 @@ in the root directory, so it is convenient to define the $RANDFILE environment variable used by the OpenSSL library as the path to /.rnd. -

                -

                Installing the keys as root might not work in NFS-mounted + +

                Installing the keys as root might not work in NFS-mounted shared file systems, as NFS clients may not be able to write -to the shared keys directory, even as root. +to the shared keys directory, even as root. In this case, NFS clients can specify the files in another directory such as -/etc +/etc using the keysdir -command. +command. There is no need for one client to read the keys and certificates of other clients or servers, as these data are obtained automatically by the Autokey protocol. -

                -

                Ordinarily, cryptographic files are generated by the host that uses them, + +

                Ordinarily, cryptographic files are generated by the host that uses them, but it is possible for a trusted agent (TA) to generate these files -for other hosts; however, in such cases files should always be encrypted. +for other hosts; however, in such cases files should always be encrypted. The subject name and trusted name default to the hostname -of the host generating the files, but can be changed by command line options. +of the host generating the files, but can be changed by command line options. It is convenient to designate the owner name and trusted name -as the subject and issuer fields, respectively, of the certificate. +as the subject and issuer fields, respectively, of the certificate. The owner name is also used for the host and sign key files, while the trusted name is used for the identity files. -

                -

                All files are installed by default in the keys directory -/usr/local/etc, +

                All files are installed by default in the keys directory +/usr/local/etc, which is normally in a shared filesystem -in NFS-mounted networks. +in NFS-mounted networks. The actual location of the keys directory and each file can be overridden by configuration commands, -but this is not recommended. +but this is not recommended. Normally, the files for each host are generated by that host and used only by that host, although exceptions exist as noted later on this page. -

                -

                Normally, files containing private values, + +

                Normally, files containing private values, including the host key, sign key and identification parameters, are permitted root read/write-only; -while others containing public values are permitted world readable. +while others containing public values are permitted world readable. Alternatively, files containing private values can be encrypted and these files permitted world readable, -which simplifies maintenance in shared file systems. +which simplifies maintenance in shared file systems. Since uniqueness is insured by the hostname and file name extensions, the files for a NFS server and dependent clients can all be installed in the same shared directory. -

                -

                The recommended practice is to keep the file name extensions + +

                The recommended practice is to keep the file name extensions when installing a file and to install a soft link from the generic names specified elsewhere on this page -to the generated files. +to the generated files. This allows new file generations to be activated simply -by changing the link. +by changing the link. If a link is present, ntpd follows it to the file name -to extract the filestamp. +to extract the filestamp. If a link is not present, ntpd(1ntpdmdoc) -extracts the filestamp from the file itself. +extracts the filestamp from the file itself. This allows clients to verify that the file and generation times -are always current. +are always current. The ntp-keygen program uses the same timestamp extension for all files generated at one time, so each generation is distinct and can be readily recognized in monitoring data. -

                -

                1.2.1.2 Running the program

                + +
                Running the program
                +

                The safest way to run the ntp-keygen -program is logged in directly as root. +program is logged in directly as root. The recommended procedure is change to the keys directory, usually -/usr/local/etc, -then run the program. +/usr/local/etc, +then run the program. When run for the first time, or if all ntpkey files have been removed, the program generates a RSA host key file and matching RSA-MD5 certificate file, -which is all that is necessary in many cases. +which is all that is necessary in many cases. The program also generates soft links from the generic names -to the respective files. +to the respective files. If run again, the program uses the same host key file, but generates a new certificate file and link. -

                -

                The host key is used to encrypt the cookie when required and so must be RSA type. -By default, the host key is also the sign key used to encrypt signatures. + +

                The host key is used to encrypt the cookie when required and so must be RSA type. +By default, the host key is also the sign key used to encrypt signatures. When necessary, a different sign key can be specified and this can be -either RSA or DSA type. +either RSA or DSA type. By default, the message digest type is MD5, but any combination of sign key type and message digest type supported by the OpenSSL library can be specified, including those using the MD2, MD5, SHA, SHA1, MDC2 -and RIPE160 message digest algorithms. +and RIPE160 message digest algorithms. However, the scheme specified in the certificate must be compatible -with the sign key. +with the sign key. Certificates using any digest algorithm are compatible with RSA sign keys; however, only SHA and SHA1 certificates are compatible with DSA sign keys. -

                -

                Private/public key files and certificates are compatible with -other OpenSSL applications and very likely other libraries as well. + +

                Private/public key files and certificates are compatible with +other OpenSSL applications and very likely other libraries as well. Certificates or certificate requests derived from them should be compatible with extant industry practice, although some users might find -the interpretation of X509v3 extension fields somewhat liberal. +the interpretation of X509v3 extension fields somewhat liberal. However, the identification parameter files, although encoded as the other files, are probably not compatible with anything other than Autokey. -

                -

                Running the program as other than root and using the Unix + +

                Running the program as other than root and using the Unix su command to assume root may not work properly, since by default the OpenSSL library looks for the random seed file .rnd -in the user home directory. +in the user home directory. However, there should be only one .rnd, most conveniently @@ -642,73 +616,73 @@ in the root directory, so it is convenient to define the $RANDFILE environment variable used by the OpenSSL library as the path to /.rnd. -

                -

                Installing the keys as root might not work in NFS-mounted + +

                Installing the keys as root might not work in NFS-mounted shared file systems, as NFS clients may not be able to write -to the shared keys directory, even as root. +to the shared keys directory, even as root. In this case, NFS clients can specify the files in another directory such as -/etc +/etc using the keysdir -command. +command. There is no need for one client to read the keys and certificates of other clients or servers, as these data are obtained automatically by the Autokey protocol. -

                -

                Ordinarily, cryptographic files are generated by the host that uses them, + +

                Ordinarily, cryptographic files are generated by the host that uses them, but it is possible for a trusted agent (TA) to generate these files -for other hosts; however, in such cases files should always be encrypted. +for other hosts; however, in such cases files should always be encrypted. The subject name and trusted name default to the hostname -of the host generating the files, but can be changed by command line options. +of the host generating the files, but can be changed by command line options. It is convenient to designate the owner name and trusted name -as the subject and issuer fields, respectively, of the certificate. +as the subject and issuer fields, respectively, of the certificate. The owner name is also used for the host and sign key files, -while the trusted name is used for the identity files. -seconds. +while the trusted name is used for the identity files. +seconds. seconds. -

                -

                s Trusted Hosts and Groups + +

                s Trusted Hosts and Groups Each cryptographic configuration involves selection of a signature scheme and identification scheme, called a cryptotype, as explained in the -‘Authentication Options’ +Authentication Options section of -ntp.conf(5). +ntp.conf(5). The default cryptotype uses RSA encryption, MD5 message digest -and TC identification. +and TC identification. First, configure a NTP subnet including one or more low-stratum trusted hosts from which all other hosts derive synchronization -directly or indirectly. +directly or indirectly. Trusted hosts have trusted certificates; -all other hosts have nontrusted certificates. +all other hosts have nontrusted certificates. These hosts will automatically and dynamically build authoritative -certificate trails to one or more trusted hosts. +certificate trails to one or more trusted hosts. A trusted group is the set of all hosts that have, directly or indirectly, -a certificate trail ending at a trusted host. +a certificate trail ending at a trusted host. The trail is defined by static configuration file entries or dynamic means described on the -‘Automatic NTP Configuration Options’ +Automatic NTP Configuration Options section of ntp.conf(5). -

                -

                On each trusted host as root, change to the keys directory. + +

                On each trusted host as root, change to the keys directory. To insure a fresh fileset, remove all ntpkey -files. +files. Then run ntp-keygen -T -to generate keys and a trusted certificate. +to generate keys and a trusted certificate. On all other hosts do the same, but leave off the -T -flag to generate keys and nontrusted certificates. +flag to generate keys and nontrusted certificates. When complete, start the NTP daemons beginning at the lowest stratum -and working up the tree. +and working up the tree. It may take some time for Autokey to instantiate the certificate trails throughout the subnet, but setting up the environment is completely automatic. -

                -

                If it is necessary to use a different sign key or different digest/signature + +

                If it is necessary to use a different sign key or different digest/signature scheme than the default, run ntp-keygen with the @@ -718,8 +692,8 @@ option, where is either RSA or -DSA. -The most often need to do this is when a DSA-signed certificate is used. +DSA. +The most often need to do this is when a DSA-signed certificate is used. If it is necessary to use a different certificate scheme than the default, run ntp-keygen @@ -727,137 +701,138 @@ with the -c scheme option and selected scheme -as needed. +as needed. f ntp-keygen is run again without these options, it generates a new certificate using the same scheme and sign key. -

                -

                After setting up the environment it is advisable to update certificates -from time to time, if only to extend the validity interval. + +

                After setting up the environment it is advisable to update certificates +from time to time, if only to extend the validity interval. Simply run ntp-keygen with the same flags as before to generate new certificates -using existing keys. +using existing keys. However, if the host or sign key is changed, ntpd(1ntpdmdoc) -should be restarted. +should be restarted. When ntpd(1ntpdmdoc) -is restarted, it loads any new files and restarts the protocol. +is restarted, it loads any new files and restarts the protocol. Other dependent hosts will continue as usual until signatures are refreshed, at which time the protocol is restarted. -

                -

                1.2.1.3 Identity Schemes

                + +
                Identity Schemes
                +

                As mentioned on the Autonomous Authentication page, -the default TC identity scheme is vulnerable to a middleman attack. +the default TC identity scheme is vulnerable to a middleman attack. However, there are more secure identity schemes available, including PC, IFF, GQ and MV described on the -"Identification Schemes" +"Identification Schemes" page (maybe available at -http://www.eecis.udel.edu/%7emills/keygen.html). +http://www.eecis.udel.edu/%7emills/keygen.html). These schemes are based on a TA, one or more trusted hosts -and some number of nontrusted hosts. +and some number of nontrusted hosts. Trusted hosts prove identity using values provided by the TA, while the remaining hosts prove identity using values provided -by a trusted host and certificate trails that end on that host. +by a trusted host and certificate trails that end on that host. The name of a trusted host is also the name of its sugroup -and also the subject and issuer name on its trusted certificate. +and also the subject and issuer name on its trusted certificate. The TA is not necessarily a trusted host in this sense, but often is. -

                -

                In some schemes there are separate keys for servers and clients. + +

                In some schemes there are separate keys for servers and clients. A server can also be a client of another server, -but a client can never be a server for another client. +but a client can never be a server for another client. In general, trusted hosts and nontrusted hosts that operate as both server and client have parameter files that contain -both server and client keys. +both server and client keys. Hosts that operate only as clients have key files that contain only client keys. -

                -

                The PC scheme supports only one trusted host in the group. + +

                The PC scheme supports only one trusted host in the group. On trusted host alice run ntp-keygen -P -p password to generate the host key file -ntpkey_RSAkey_alice.filestamp +ntpkey_RSAkey_alice.filestamp and trusted private certificate file -ntpkey_RSA-MD5_cert_alice.filestamp. +ntpkey_RSA-MD5_cert_alice.filestamp. Copy both files to all group hosts; -they replace the files which would be generated in other schemes. +they replace the files which would be generated in other schemes. On each host bob install a soft link from the generic name -ntpkey_host_bob +ntpkey_host_bob to the host key file and soft link -ntpkey_cert_bob -to the private certificate file. +ntpkey_cert_bob +to the private certificate file. Note the generic links are on bob, but point to files generated -by trusted host alice. +by trusted host alice. In this scheme it is not possible to refresh either the keys or certificates without copying them to all other hosts in the group. -

                -

                For the IFF scheme proceed as in the TC scheme to generate keys + +

                For the IFF scheme proceed as in the TC scheme to generate keys and certificates for all group hosts, then for every trusted host in the group, -generate the IFF parameter file. +generate the IFF parameter file. On trusted host alice run ntp-keygen -T -I -p password to produce her parameter file -ntpkey_IFFpar_alice.filestamp, -which includes both server and client keys. +ntpkey_IFFpar_alice.filestamp, +which includes both server and client keys. Copy this file to all group hosts that operate as both servers and clients and install a soft link from the generic -ntpkey_iff_alice -to this file. +ntpkey_iff_alice +to this file. If there are no hosts restricted to operate only as clients, -there is nothing further to do. +there is nothing further to do. As the IFF scheme is independent of keys and certificates, these files can be refreshed as needed. -

                -

                If a rogue client has the parameter file, it could masquerade -as a legitimate server and present a middleman threat. + +

                If a rogue client has the parameter file, it could masquerade +as a legitimate server and present a middleman threat. To eliminate this threat, the client keys can be extracted -from the parameter file and distributed to all restricted clients. +from the parameter file and distributed to all restricted clients. After generating the parameter file, on alice run ntp-keygen -e -and pipe the output to a file or mail program. -Copy or mail this file to all restricted clients. +and pipe the output to a file or mail program. +Copy or mail this file to all restricted clients. On these clients install a soft link from the generic -ntpkey_iff_alice -to this file. +ntpkey_iff_alice +to this file. To further protect the integrity of the keys, each file can be encrypted with a secret password. -

                -

                For the GQ scheme proceed as in the TC scheme to generate keys + +

                For the GQ scheme proceed as in the TC scheme to generate keys and certificates for all group hosts, then for every trusted host -in the group, generate the IFF parameter file. +in the group, generate the IFF parameter file. On trusted host alice run ntp-keygen -T -G -p password to produce her parameter file -ntpkey_GQpar_alice.filestamp, -which includes both server and client keys. +ntpkey_GQpar_alice.filestamp, +which includes both server and client keys. Copy this file to all group hosts and install a soft link from the generic -ntpkey_gq_alice -to this file. +ntpkey_gq_alice +to this file. In addition, on each host bob install a soft link from generic -ntpkey_gq_bob -to this file. +ntpkey_gq_bob +to this file. As the GQ scheme updates the GQ parameters file and certificate at the same time, keys and certificates can be regenerated as needed. -

                -

                For the MV scheme, proceed as in the TC scheme to generate keys -and certificates for all group hosts. + +

                For the MV scheme, proceed as in the TC scheme to generate keys +and certificates for all group hosts. For illustration assume trish is the TA, alice one of several trusted hosts -and bob one of her clients. +and bob one of her clients. On TA trish run ntp-keygen -V n @@ -866,143 +841,113 @@ where n is the number of revokable keys (typically 5) to produce the parameter file -ntpkeys_MVpar_trish.filestamp +ntpkeys_MVpar_trish.filestamp and client key files -ntpkeys_MVkeyd_trish.filestamp +ntpkeys_MVkeyd_trish.filestamp where d is the key number (0 < d < -n). +n). Copy the parameter file to alice and install a soft link from the generic -ntpkey_mv_alice -to this file. +ntpkey_mv_alice +to this file. Copy one of the client key files to alice for later distribution -to her clients. -It doesn’t matter which client key file goes to alice, -since they all work the same way. -Alice copies the client key file to all of her cliens. +to her clients. +It doesn't matter which client key file goes to alice, +since they all work the same way. +Alice copies the client key file to all of her cliens. On client bob install a soft link from generic -ntpkey_mvkey_bob -to the client key file. +ntpkey_mvkey_bob +to the client key file. As the MV scheme is independent of keys and certificates, these files can be refreshed as needed. -

                -

                1.2.1.4 Command Line Options

                -
                -
                -c scheme
                -

                Select certificate message digest/signature encryption scheme. + +

                Command Line Options
                + +
                +
                -c scheme
                Select certificate message digest/signature encryption scheme. The scheme can be one of the following: . Cm RSA-MD2 , RSA-MD5 , RSA-SHA , RSA-SHA1 , RSA-MDC2 , RSA-RIPEMD160 , DSA-SHA , or -DSA-SHA1. +DSA-SHA1. Note that RSA schemes must be used with a RSA sign key and DSA -schemes must be used with a DSA sign key. +schemes must be used with a DSA sign key. The default without this option is -RSA-MD5. -

                -
                -d
                -

                Enable debugging. -This option displays the cryptographic data produced in eye-friendly billboards. -

                -
                -e
                -

                Write the IFF client keys to the standard output. -This is intended for automatic key distribution by mail. -

                -
                -G
                -

                Generate parameters and keys for the GQ identification scheme, -obsoleting any that may exist. -

                -
                -g
                -

                Generate keys for the GQ identification scheme -using the existing GQ parameters. -If the GQ parameters do not yet exist, create them first. -

                -
                -H
                -

                Generate new host keys, obsoleting any that may exist. -

                -
                -I
                -

                Generate parameters for the IFF identification scheme, -obsoleting any that may exist. -

                -
                -i name
                -

                Set the suject name to -name. +RSA-MD5. +

                -d
                Enable debugging. +This option displays the cryptographic data produced in eye-friendly billboards. +
                -e
                Write the IFF client keys to the standard output. +This is intended for automatic key distribution by mail. +
                -G
                Generate parameters and keys for the GQ identification scheme, +obsoleting any that may exist. +
                -g
                Generate keys for the GQ identification scheme +using the existing GQ parameters. +If the GQ parameters do not yet exist, create them first. +
                -H
                Generate new host keys, obsoleting any that may exist. +
                -I
                Generate parameters for the IFF identification scheme, +obsoleting any that may exist. +
                -i name
                Set the suject name to +name. This is used as the subject field in certificates -and in the file name for host and sign keys. -

                -
                -M
                -

                Generate MD5 keys, obsoleting any that may exist. -

                -
                -P
                -

                Generate a private certificate. -By default, the program generates public certificates. -

                -
                -p password
                -

                Encrypt generated files containing private data with +and in the file name for host and sign keys. +

                -M
                Generate MD5 keys, obsoleting any that may exist. +
                -P
                Generate a private certificate. +By default, the program generates public certificates. +
                -p password
                Encrypt generated files containing private data with password -and the DES-CBC algorithm. -

                -
                -q
                -

                Set the password for reading files to password. -

                -
                -S [RSA | DSA]
                -

                Generate a new sign key of the designated type, -obsoleting any that may exist. -By default, the program uses the host key as the sign key. -

                -
                -s name
                -

                Set the issuer name to -name. +and the DES-CBC algorithm. +

                -q
                Set the password for reading files to password. +
                -S [RSA | DSA]
                Generate a new sign key of the designated type, +obsoleting any that may exist. +By default, the program uses the host key as the sign key. +
                -s name
                Set the issuer name to +name. This is used for the issuer field in certificates -and in the file name for identity files. -

                -
                -T
                -

                Generate a trusted certificate. -By default, the program generates a non-trusted certificate. -

                -
                -V nkeys
                -

                Generate parameters and keys for the Mu-Varadharajan (MV) identification scheme. -

                +and in the file name for identity files. +
                -T
                Generate a trusted certificate. +By default, the program generates a non-trusted certificate. +
                -V nkeys
                Generate parameters and keys for the Mu-Varadharajan (MV) identification scheme.
                - -

                1.2.1.5 Random Seed File

                + +
                Random Seed File
                +

                All cryptographically sound key generation schemes must have means to randomize the entropy seed used to initialize the internal pseudo-random number generator used -by the library routines. -The OpenSSL library uses a designated random seed file for this purpose. +by the library routines. +The OpenSSL library uses a designated random seed file for this purpose. The file must be available when starting the NTP daemon and ntp-keygen -program. +program. If a site supports OpenSSL or its companion OpenSSH, it is very likely that means to do this are already available. -

                -

                It is important to understand that entropy must be evolved + +

                It is important to understand that entropy must be evolved for each generation, for otherwise the random number sequence -would be predictable. +would be predictable. Various means dependent on external events, such as keystroke intervals, -can be used to do this and some systems have built-in entropy sources. +can be used to do this and some systems have built-in entropy sources. Suitable means are described in the OpenSSL software documentation, but are outside the scope of this page. -

                -

                The entropy seed used by the OpenSSL library is contained in a file, + +

                The entropy seed used by the OpenSSL library is contained in a file, usually called .rnd, which must be available when starting the NTP daemon or the ntp-keygen -program. +program. The NTP daemon will first look for the file using the path specified by the randfile subcommand of the crypto -configuration command. +configuration command. If not specified in this way, or when starting the ntp-keygen program, @@ -1010,54 +955,54 @@ the OpenSSL library will look for the file using the path specified by the .Ev RANDFILE environment variable in the user home directory, -whether root or some other user. +whether root or some other user. If the .Ev RANDFILE environment variable is not present, the library will look for the .rnd -file in the user home directory. +file in the user home directory. If the file is not available or cannot be written, the daemon exits with a message to the system log and the program exits with a suitable error message. -

                -

                1.2.1.6 Cryptographic Data Files

                -

                All other file formats begin with two lines. + +

                Cryptographic Data Files
                + +

                All other file formats begin with two lines. The first contains the file name, including the generated host name -and filestamp. -The second contains the datestamp in conventional Unix date format. +and filestamp. +The second contains the datestamp in conventional Unix date format. Lines beginning with # are considered comments and ignored by the ntp-keygen program and ntpd(1ntpdmdoc) -daemon. +daemon. Cryptographic values are encoded first using ASN.1 rules, then encrypted if necessary, and finally written PEM-encoded printable ASCII format preceded and followed by MIME content identifier lines. -

                -

                The format of the symmetric keys file is somewhat different -than the other files in the interest of backward compatibility. + +

                The format of the symmetric keys file is somewhat different +than the other files in the interest of backward compatibility. Since DES-CBC is deprecated in NTPv4, the only key format of interest -is MD5 alphanumeric strings. +is MD5 alphanumeric strings. Following hte heard the keys are entered one per line in the format -

                -
                keyno type key
                -
                -

                where +

                     keyno type key
                +
                +

                where keyno is a positive integer in the range 1-65,535, type is the string MD5 defining the key format and key is the key itself, -which is a printable ASCII string 16 characters or less in length. +which is a printable ASCII string 16 characters or less in length. Each character is chosen from the 93 printable characters in the range 0x21 through 0x7f excluding space and the -‘#’ +# character. -

                -

                Note that the keys used by the + +

                Note that the keys used by the ntpq(1ntpqmdoc) and ntpdc(1ntpdcmdoc) @@ -1065,21 +1010,21 @@ programs are checked against passwords requested by the programs and entered by hand, so it is generally appropriate to specify these keys in human readable ASCII format. -

                -

                The + +

                The ntp-keygen program generates a MD5 symmetric keys file -ntpkey_MD5key_hostname.filestamp. +ntpkey_MD5key_hostname.filestamp. Since the file contains private shared keys, it should be visible only to root and distributed by secure means -to other subnet hosts. +to other subnet hosts. The NTP daemon loads the file -ntp.keys, +ntp.keys, so ntp-keygen -installs a soft link from this name to the generated file. +installs a soft link from this name to the generated file. Subsequently, similar soft links must be installed by manual -or automated means on the other subnet hosts. +or automated means on the other subnet hosts. While this file is not used with the Autokey Version 2 protocol, it is needed to authenticate some remote configuration commands used by the @@ -1087,85 +1032,59 @@ used by the and ntpdc(1ntpdcmdoc) utilities. -

                -

                This section was generated by AutoGen, -using the agtexi-cmd template and the option descriptions for the ntp-keygen program. + +

                This section was generated by AutoGen, +using the agtexi-cmd template and the option descriptions for the ntp-keygen program. This software is released under the NTP license, <http://ntp.org/license>. -

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

                -Next: , Up: ntp-keygen Invocation  

                + + + + - -

                1.2.2 ntp-keygen help/usage (--help)

                - - -

                This is the automatically generated usage text for ntp-keygen. -

                -

                The text printed is the same whether selected with the help option -(--help) or the more-help option (--more-help). more-help will print -the usage text by passing it through a pager program. + +

                ntp-keygen help/usage (--help)

                + +

                +This is the automatically generated usage text for ntp-keygen. + +

                The text printed is the same whether selected with the help option +(--help) or the more-help option (--more-help). more-help will print +the usage text by passing it through a pager program. more-help is disabled on platforms without a working fork(2) function. The PAGER environment variable is -used to select the program, defaulting to more. Both will exit +used to select the program, defaulting to more. Both will exit with a status code of 0. -

                -
                +
                ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.8p9
                 Usage:  ntp-keygen [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
                   Flg Arg Option-Name    Description
                @@ -1214,674 +1133,679 @@ The following option preset mechanisms are supported:
                  - examining environment variables named NTP_KEYGEN_*
                 
                 Please send bug reports to:  <http://bugs.ntp.org, bugs@ntp.org>
                -
                - -
                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                + + - -

                1.2.3 imbits option (-b)

                - - -

                This is the “identity modulus bits” option. -This option takes a number argument imbits. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                The number of bits in the identity modulus. The default is 256. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                + +

                imbits option (-b)

                + +

                +This is the “identity modulus bits” option. +This option takes a number argument imbits. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                The number of bits in the identity modulus. The default is 256. +

                - -

                1.2.4 certificate option (-c)

                - - -

                This is the “certificate scheme” option. -This option takes a string argument scheme. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                scheme is one of + +

                certificate option (-c)

                + +

                +This is the “certificate scheme” option. +This option takes a string argument scheme. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                scheme is one of RSA-MD2, RSA-MD5, RSA-SHA, RSA-SHA1, RSA-MDC2, RSA-RIPEMD160, DSA-SHA, or DSA-SHA1. -

                -

                Select the certificate message digest/signature encryption scheme. + +

                Select the certificate message digest/signature encryption scheme. Note that RSA schemes must be used with a RSA sign key and DSA schemes must be used with a DSA sign key. The default without -this option is RSA-MD5. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                +this option is RSA-MD5. + - -

                1.2.5 cipher option (-C)

                - - -

                This is the “privatekey cipher” option. -This option takes a string argument cipher. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                Select the cipher which is used to encrypt the files containing + +

                cipher option (-C)

                + +

                +This is the “privatekey cipher” option. +This option takes a string argument cipher. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                Select the cipher which is used to encrypt the files containing private keys. The default is three-key triple DES in CBC mode, -equivalent to "-C des-ede3-cbc". The openssl tool lists ciphers -available in "openssl -h" output. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                +equivalent to "-C des-ede3-cbc". The openssl tool lists ciphers +available in "openssl -h" output. + - -

                1.2.6 id-key option (-e)

                - - -

                This is the “write iff or gq identity keys” option. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                Write the IFF or GQ client keys to the standard output. This is -intended for automatic key distribution by mail. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                + +

                id-key option (-e)

                + +

                +This is the “write iff or gq identity keys” option. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                Write the IFF or GQ client keys to the standard output. This is +intended for automatic key distribution by mail. +

                - -

                1.2.7 gq-params option (-G)

                - - -

                This is the “generate gq parameters and keys” option. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                Generate parameters and keys for the GQ identification scheme, -obsoleting any that may exist. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                + +

                gq-params option (-G)

                + +

                +This is the “generate gq parameters and keys” option. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                Generate parameters and keys for the GQ identification scheme, +obsoleting any that may exist. +

                - -

                1.2.8 host-key option (-H)

                - - -

                This is the “generate rsa host key” option. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                Generate new host keys, obsoleting any that may exist. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                + +

                host-key option (-H)

                + +

                +This is the “generate rsa host key” option. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                Generate new host keys, obsoleting any that may exist. +

                - -

                1.2.9 iffkey option (-I)

                - - -

                This is the “generate iff parameters” option. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                Generate parameters for the IFF identification scheme, obsoleting -any that may exist. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                + +

                iffkey option (-I)

                + +

                +This is the “generate iff parameters” option. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                Generate parameters for the IFF identification scheme, obsoleting +any that may exist. +

                - -

                1.2.10 ident option (-i)

                - - -

                This is the “set autokey group name” option. -This option takes a string argument group. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                Set the optional Autokey group name to name. This is used in + +

                ident option (-i)

                + +

                +This is the “set autokey group name” option. +This option takes a string argument group. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                Set the optional Autokey group name to name. This is used in the file name of IFF, GQ, and MV client parameters files. In that role, the default is the host name if this option is not provided. The group name, if specified using -i/--ident or -using -s/--subject-name following an ’}' character, +using -s/--subject-name following an '}' character, is also a part of the self-signed host certificate's subject and -issuer names in the form host

                crypto ident’ or ’server ident’ configuration in -ntpd’s configuration file. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                +issuer names in the form host +

                'crypto ident' or 'server ident' configuration in +ntpd's configuration file. +

                +


                +Next: , +Previous: ntp-keygen ident, +Up: ntp-keygen Invocation +
                - -

                1.2.11 lifetime option (-l)

                - - -

                This is the “set certificate lifetime” option. -This option takes a number argument lifetime. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                Set the certificate expiration to lifetime days from now. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                + +

                lifetime option (-l)

                + +

                +This is the ``set certificate lifetime'' option. +This option takes a number argument lifetime. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                Set the certificate expiration to lifetime days from now. +

                - -

                1.2.12 md5key option (-M)

                - - -

                This is the “generate md5 keys” option. -Generate MD5 keys, obsoleting any that may exist. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                + +

                md5key option (-M)

                + +

                +This is the ``generate md5 keys'' option. +Generate MD5 keys, obsoleting any that may exist. +

                - -

                1.2.13 modulus option (-m)

                - - -

                This is the “modulus” option. -This option takes a number argument modulus. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                The number of bits in the prime modulus. The default is 512. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                + +

                modulus option (-m)

                + +

                +This is the ``modulus'' option. +This option takes a number argument modulus. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                The number of bits in the prime modulus. The default is 512. +

                - -

                1.2.14 pvt-cert option (-P)

                - - -

                This is the “generate pc private certificate” option. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                Generate a private certificate. By default, the program generates -public certificates. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                + +

                pvt-cert option (-P)

                + +

                +This is the ``generate pc private certificate'' option. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                Generate a private certificate. By default, the program generates +public certificates. +

                - -

                1.2.15 password option (-p)

                - - -

                This is the “local private password” option. -This option takes a string argument passwd. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                Local files containing private data are encrypted with the + +

                password option (-p)

                + +

                +This is the ``local private password'' option. +This option takes a string argument passwd. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                Local files containing private data are encrypted with the DES-CBC algorithm and the specified password. The same password -must be specified to the local ntpd via the "crypto pw password" +must be specified to the local ntpd via the "crypto pw password" configuration command. The default password is the local -hostname. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                +hostname. + - -

                1.2.16 export-passwd option (-q)

                - - -

                This is the “export iff or gq group keys with password” option. -This option takes a string argument passwd. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                Export IFF or GQ identity group keys to the standard output, -encrypted with the DES-CBC algorithm and the specified password. + +

                export-passwd option (-q)

                + +

                +This is the ``export iff or gq group keys with password'' option. +This option takes a string argument passwd. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                Export IFF or GQ identity group keys to the standard output, +encrypted with the DES-CBC algorithm and the specified password. The same password must be specified to the remote ntpd via the -"crypto pw password" configuration command. See also the option -–id-key (-e) for unencrypted exports. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                +"crypto pw password" configuration command. See also the option +--id-key (-e) for unencrypted exports. + - -

                1.2.17 sign-key option (-S)

                - - -

                This is the “generate sign key (rsa or dsa)” option. -This option takes a string argument sign. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                Generate a new sign key of the designated type, obsoleting any + +

                sign-key option (-S)

                + +

                +This is the ``generate sign key (rsa or dsa)'' option. +This option takes a string argument sign. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                Generate a new sign key of the designated type, obsoleting any that may exist. By default, the program uses the host key as the -sign key. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                +sign key. + - -

                1.2.18 subject-name option (-s)

                - - -

                This is the “set host and optionally group name” option. -This option takes a string argument host@group. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                Set the Autokey host name, and optionally, group name specified -following an ’}' character. The host name is used in the file + +

                subject-name option (-s)

                + +

                +This is the ``set host and optionally group name'' option. +This option takes a string argument host@group. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                Set the Autokey host name, and optionally, group name specified +following an '}' character. The host name is used in the file name of generated host and signing certificates, without the group name. The host name, and if provided, group name are used -in host

                fields. Specifying ’-s

                leaving the host name unchanged while appending

                subject and issuer fields, as with -i group. The group name, or +in host +

                fields. Specifying '-s +

                leaving the host name unchanged while appending +

                subject and issuer fields, as with -i group. The group name, or if not provided, the host name are also used in the file names -of IFF, GQ, and MV client parameter files. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                +of IFF, GQ, and MV client parameter files. +
                - -

                1.2.19 trusted-cert option (-T)

                - - -

                This is the “trusted certificate (tc scheme)” option. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                Generate a trusted certificate. By default, the program generates -a non-trusted certificate. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                + +

                trusted-cert option (-T)

                + +

                +This is the ``trusted certificate (tc scheme)'' option. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                Generate a trusted certificate. By default, the program generates +a non-trusted certificate. +

                - -

                1.2.20 mv-params option (-V)

                - - -

                This is the “generate <num> mv parameters” option. -This option takes a number argument num. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                Generate parameters and keys for the Mu-Varadharajan (MV) -identification scheme. -


                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                + +

                mv-params option (-V)

                + +

                +This is the ``generate <num> mv parameters'' option. +This option takes a number argument num. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                Generate parameters and keys for the Mu-Varadharajan (MV) +identification scheme. +

                - -

                1.2.21 mv-keys option (-v)

                - - -

                This is the “update <num> mv keys” option. -This option takes a number argument num. -

                -

                This option has some usage constraints. It: -

                  -
                • must be compiled in by defining AUTOKEY during the compilation. -
                - -

                This option has no ‘doc’ documentation. -

                - -
                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                + +

                mv-keys option (-v)

                + +

                +This is the ``update <num> mv keys'' option. +This option takes a number argument num. + +

                This option has some usage constraints. It: +

                  +
                • must be compiled in by defining AUTOKEY during the compilation. +
                + +

                This option has no doc documentation. + +

                - -

                1.2.22 presetting/configuring ntp-keygen

                + +

                presetting/configuring ntp-keygen

                Any option that is not marked as not presettable may be preset by -loading values from configuration ("rc" or "ini") files, and values from environment variables named NTP-KEYGEN and NTP-KEYGEN_<OPTION_NAME>. <OPTION_NAME> must be one of -the options listed above in upper case and segmented with underscores. +loading values from configuration ("rc" or "ini") files, and values from environment variables named NTP-KEYGEN and NTP-KEYGEN_<OPTION_NAME>. <OPTION_NAME> must be one of +the options listed above in upper case and segmented with underscores. The NTP-KEYGEN variable will be tokenized and parsed like the command line. The remaining variables are tested for existence and their values are treated like option arguments. -

                - -

                libopts will search in 2 places for configuration files: -

                  -
                • $HOME -
                • $PWD -
                -

                The environment variables HOME, and PWD -are expanded and replaced when ntp-keygen runs. -For any of these that are plain files, they are simply processed. -For any that are directories, then a file named .ntprc is searched for + +

                libopts will search in 2 places for configuration files: +

                  +
                • $HOME +
                • $PWD +
                + The environment variables HOME, and PWD +are expanded and replaced when ntp-keygen runs. +For any of these that are plain files, they are simply processed. +For any that are directories, then a file named .ntprc is searched for within that directory and processed. -

                -

                Configuration files may be in a wide variety of formats. + +

                Configuration files may be in a wide variety of formats. The basic format is an option name followed by a value (argument) on the same line. Values may be separated from the option name with a colon, equal sign or simply white space. Values may be continued across multiple lines by escaping the newline with a backslash. -

                -

                Multiple programs may also share the same initialization file. + +

                Multiple programs may also share the same initialization file. Common options are collected at the top, followed by program specific segments. The segments are separated by lines like: -

                -
                [NTP-KEYGEN]
                -
                -

                or by -

                -
                <?program ntp-keygen>
                -
                -

                Do not mix these styles within one configuration file. -

                -

                Compound values and carefully constructed string values may also be +

                    [NTP-KEYGEN]
                +
                +

                or by +

                    <?program ntp-keygen>
                +
                +

                Do not mix these styles within one configuration file. + +

                Compound values and carefully constructed string values may also be specified using XML syntax: -

                -
                <option-name>
                -   <sub-opt>...&lt;...&gt;...</sub-opt>
                -</option-name>
                -
                -

                yielding an option-name.sub-opt string value of -

                -
                "...<...>..."
                -
                -

                AutoOpts does not track suboptions. You simply note that it is a +

                    <option-name>
                +       <sub-opt>...&lt;...&gt;...</sub-opt>
                +    </option-name>
                +
                +

                yielding an option-name.sub-opt string value of +

                    "...<...>..."
                +
                +

                AutoOpts does not track suboptions. You simply note that it is a hierarchicly valued option. AutoOpts does provide a means for searching the associated name/value pair list (see: optionFindValue). -

                -

                The command line options relating to configuration and/or usage help are: -

                - -

                version (-)

                + +

                The command line options relating to configuration and/or usage help are: + +

                version (-)

                Print the program version to standard out, optionally with licensing information, then exit 0. The optional argument specifies how much licensing -detail to provide. The default is to print just the version. The licensing infomation may be selected with an option argument. +detail to provide. The default is to print just the version. The licensing infomation may be selected with an option argument. Only the first letter of the argument is examined: -

                -
                -
                version
                -

                Only print the version. This is the default. -

                -
                copyright
                -

                Name the copyright usage licensing terms. -

                -
                verbose
                -

                Print the full copyright usage licensing terms. -

                + +
                +
                version
                Only print the version. This is the default. +
                copyright
                Name the copyright usage licensing terms. +
                verbose
                Print the full copyright usage licensing terms.
                -
                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                +
                +


                +Next: , +Previous: ntp-keygen config, +Up: ntp-keygen Invocation +
                - -

                1.2.23 ntp-keygen exit status

                + +

                ntp-keygen exit status

                One of the following exit values will be returned: -

                -
                0 (EXIT_SUCCESS)
                -

                Successful program execution. -

                -
                1 (EXIT_FAILURE)
                -

                The operation failed or the command syntax was not valid. -

                -
                66 (EX_NOINPUT)
                -

                A specified configuration file could not be loaded. -

                -
                70 (EX_SOFTWARE)
                -

                libopts had an internal operational error. Please report -it to autogen-users@lists.sourceforge.net. Thank you. -

                +
                +
                0 (EXIT_SUCCESS)
                Successful program execution. +
                1 (EXIT_FAILURE)
                The operation failed or the command syntax was not valid. +
                66 (EX_NOINPUT)
                A specified configuration file could not be loaded. +
                70 (EX_SOFTWARE)
                libopts had an internal operational error. Please report +it to autogen-users@lists.sourceforge.net. Thank you.
                -
                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                + - -

                1.2.24 ntp-keygen Usage

                -
                - -
                -

                -Next: , Previous: , Up: ntp-keygen Invocation  

                + +

                ntp-keygen Usage

                + +
                +


                +Next: , +Previous: ntp-keygen Usage, +Up: ntp-keygen Invocation +
                - -

                1.2.25 ntp-keygen Notes

                -
                - -
                -

                -Previous: , Up: ntp-keygen Invocation  

                + +

                ntp-keygen Notes

                + +
                +


                +Previous: ntp-keygen Notes, +Up: ntp-keygen Invocation +
                - -

                1.2.26 ntp-keygen Bugs

                - -
                - -
                -

                -Next: , Previous: , Up: Top  

                + +

                ntp-keygen Bugs

                + +
                +


                +Next: , +Previous: Running the Program, +Up: Top +
                - -

                1.3 Random Seed File

                + + +

                Random Seed File

                All cryptographically sound key generation schemes must have means to randomize the entropy seed used to initialize the internal -pseudo-random number generator used by the OpenSSL library routines. +pseudo-random number generator used by the OpenSSL library routines. If a site supports ssh, it is very likely that means to do this are -already available. +already available. The entropy seed used by the OpenSSL library is contained in a file, usually called .rnd, which must be available when starting the ntp-keygen program or ntpd daemon. -

                -

                The OpenSSL library looks for the file using the path specified by the + +

                The OpenSSL library looks for the file using the path specified by the RANDFILE environment variable in the user home directory, whether root -or some other user. +or some other user. If the RANDFILE environment variable is not present, the library looks for the .rnd file in the user home -directory. +directory. Since both the ntp-keygen program and ntpd daemon must run as root, the logical place to put this file is in /.rnd or -/root/.rnd. +/root/.rnd. If the file is not available or cannot be written, the program exits with a message to the system log. -

                -
                - -
                -

                -Previous: , Up: Top  

                + +
                +


                +Previous: Random Seed File, +Up: Top +
                - -

                1.4 Cryptographic Data Files

                + + +

                Cryptographic Data Files

                File and link names are in the form ntpkey_key_name.fstamp, where key is the key or parameter type, name is the host or group name and -fstamp is the filestamp (NTP seconds) when the file was created). +fstamp is the filestamp (NTP seconds) when the file was created). By convention, key names in generated file names include both upper and lower case characters, while key names in generated link names include only lower case characters. The filestamp is not used in generated link names. -

                -

                The key name is a string defining the cryptographic key type. + +

                The key name is a string defining the cryptographic key type. Key types include public/private keys host and sign, certificate cert -and several challenge/response key types. +and several challenge/response key types. By convention, client files used for challenges have a par subtype, as in the IFF challenge IFFpar, while server files for responses have a key subtype, as in the GQ response GQkey. -

                -

                All files begin with two nonencrypted lines. The first line contains -the file name in the format ntpkey_key_host.fstamp. -The second line contains the datestamp in conventional Unix date format. + +

                All files begin with two nonencrypted lines. The first line contains +the file name in the format ntpkey_key_host.fstamp. +The second line contains the datestamp in conventional Unix date format. Lines beginning with # are ignored. -

                -

                The remainder of the file contains cryptographic data encoded first + +

                The remainder of the file contains cryptographic data encoded first using ASN.1 rules, then encrypted using the DES-CBC algorithm with given password and finally written in PEM-encoded printable ASCII text preceded and followed by MIME content identifier lines. -

                -

                The format of the symmetric keys file, ordinarily named ntp.keys, + +

                The format of the symmetric keys file, ordinarily named ntp.keys, is somewhat different than the other files in the interest of backward -compatibility. +compatibility. Ordinarily, the file is generated by this program, but it can be constructed and edited using an ordinary text editor. -

                -
                -
                # ntpkey_MD5key_hms.local.3564038757
                -# Sun Dec  9 02:45:57 2012
                -
                - 1 MD5 "]!ghT%O;3)WJ,/Nc:>I  # MD5 key
                - 2 MD5 lu+H^tF46BKR-6~pV_5  # MD5 key
                - 3 MD5 :lnoVsE%Yz*avh%EtNC  # MD5 key
                - 4 MD5 |fdZrf0sF~;w-i^V  # MD5 key
                - 5 MD5 IyAG>O"y"LmCRS!*bHC  # MD5 key
                - 6 MD5 ">e\A>hT/661ri52,,H  # MD5 key
                - 7 MD5 c9x=M'CfLxax9v)PV-si  # MD5 key
                - 8 MD5 E|=jvFVov?Bn|Ev=&aK\  # MD5 key
                - 9 MD5 T!c4UT&`(m$+m+B6,`Q0  # MD5 key
                -10 MD5 JVF/1=)=IFbHbJQz..Cd  # MD5 key
                -11 SHA1 6dea311109529e436c2b4fccae9bc753c16d1b48  # SHA1 key
                -12 SHA1 7076f373d86c4848c59ff8046e49cb7d614ec394  # SHA1 key
                -13 SHA1 5f48b1b60591eb01b7cf1d33b7774f08d20262d3  # SHA1 key
                -14 SHA1 eed5ab9d9497319ec60cf3781d52607e76720178  # SHA1 key
                -15 SHA1 f283562611a04c964da8126296f5f8e58c3f85de  # SHA1 key
                -16 SHA1 1930da171297dd63549af50b29449de17dcf341f  # SHA1 key
                -17 SHA1 fee892110358cd4382322b889869e750db8e8a8f  # SHA1 key
                -18 SHA1 b5520c9fadd7ad3fd8bfa061c8821b65d029bb37  # SHA1 key
                -19 SHA1 8c74fb440ec80f453ec6aaa62b9baed0ab723b92  # SHA1 key
                -20 SHA1 6bc05f734306a189326000970c19b3910f403795  # SHA1 key
                -
                - -

                Figure 1. Typical Symmetric Key File -

                -

                Figure 1 shows a typical symmetric keys file used by the reference -implementation. + +

                    # ntpkey_MD5key_hms.local.3564038757
                +    # Sun Dec  9 02:45:57 2012
                +    
                +     1 MD5 "]!ghT%O;3)WJ,/Nc:>I  # MD5 key
                +     2 MD5 lu+H^tF46BKR-6~pV_5  # MD5 key
                +     3 MD5 :lnoVsE%Yz*avh%EtNC  # MD5 key
                +     4 MD5 |fdZrf0sF~^V  # MD5 key
                +     5 MD5 IyAG>O"y"LmCRS!*bHC  # MD5 key
                +     6 MD5 ">e\A  # MD5 key
                +     7 MD5 c9x=M'CfLxax9v)PV-si  # MD5 key
                +     8 MD5 E|=jvFVov?Bn|Ev=&aK\  # MD5 key
                +     9 MD5 T!c4UT&`(m$+m+B6,`Q0  # MD5 key
                +    10 MD5 JVF/1=)=IFbHbJQz..Cd  # MD5 key
                +    11 SHA1 6dea311109529e436c2b4fccae9bc753c16d1b48  # SHA1 key
                +    12 SHA1 7076f373d86c4848c59ff8046e49cb7d614ec394  # SHA1 key
                +    13 SHA1 5f48b1b60591eb01b7cf1d33b7774f08d20262d3  # SHA1 key
                +    14 SHA1 eed5ab9d9497319ec60cf3781d52607e76720178  # SHA1 key
                +    15 SHA1 f283562611a04c964da8126296f5f8e58c3f85de  # SHA1 key
                +    16 SHA1 1930da171297dd63549af50b29449de17dcf341f  # SHA1 key
                +    17 SHA1 fee892110358cd4382322b889869e750db8e8a8f  # SHA1 key
                +    18 SHA1 b5520c9fadd7ad3fd8bfa061c8821b65d029bb37  # SHA1 key
                +    19 SHA1 8c74fb440ec80f453ec6aaa62b9baed0ab723b92  # SHA1 key
                +    20 SHA1 6bc05f734306a189326000970c19b3910f403795  # SHA1 key
                +
                +

                Figure 1. Typical Symmetric Key File + +

                Figure 1 shows a typical symmetric keys file used by the reference +implementation. Each line of the file contains three fields, first an integer between 1 and 65534, inclusive, representing the key identifier -used in the server and peer configuration commands. +used in the server and peer configuration commands. Next is the key type for the message digest algorithm, which in the absence of the OpenSSL library must be MD5 to designate the MD5 message digest -algorithm. +algorithm. If the OpenSSL library is installed, the key type can be any -message digest algorithm supported by that library. +message digest algorithm supported by that library. However, if compatibility with FIPS 140-2 is required, the key type must be either -SHA or SHA1. +SHA or SHA1. The key type can be changed using an ASCII text editor. -

                -

                An MD5 key consists of a printable ASCII string less than or equal to -16 characters and terminated by whitespace or a # character. + +

                An MD5 key consists of a printable ASCII string less than or equal to +16 characters and terminated by whitespace or a # character. An OpenSSL key consists of a hex-encoded ASCII string of 40 characters, which is truncated as necessary. -

                -

                Note that the keys used by the ntpq and ntpdc programs are + +

                Note that the keys used by the ntpq and ntpdc programs are checked against passwords requested by the programs and entered by hand, so it is generally appropriate to specify these keys in human readable ASCII format. -

                -

                The ntp-keygen program generates a MD5 symmetric keys file -ntpkey_MD5key_hostname.filestamp. + +

                The ntp-keygen program generates a MD5 symmetric keys file +ntpkey_MD5key_hostname.filestamp. Since the file contains private shared keys, it should be visible only to root and distributed by -secure means to other subnet hosts. +secure means to other subnet hosts. The NTP daemon loads the file ntp.keys, so ntp-keygen -installs a soft link from this name to the generated file. +installs a soft link from this name to the generated file. Subsequently, similar soft links must be installed by -manual or automated means on the other subnet hosts. +manual or automated means on the other subnet hosts. While this file is not used with the Autokey Version 2 protocol, it is needed to authenticate some remote configuration commands used by the ntpq and ntpdc utilities. -


                - + - - diff --git a/util/ntp-keygen.man.in b/util/ntp-keygen.man.in index ef1fe8368..223cb6f01 100644 --- a/util/ntp-keygen.man.in +++ b/util/ntp-keygen.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntp-keygen @NTP_KEYGEN_MS@ "02 Jan 2017" "ntp (4.2.8p9)" "User Commands" +.TH ntp-keygen @NTP_KEYGEN_MS@ "21 Mar 2017" "ntp (4.2.8p10-win-beta1)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-aIa4lT/ag-jKa4jT) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:38 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:33:49 AM by AutoGen 5.18.5 .\" From the definitions ntp-keygen-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/util/ntp-keygen.mdoc.in b/util/ntp-keygen.mdoc.in index 86f18902a..b0f080b0b 100644 --- a/util/ntp-keygen.mdoc.in +++ b/util/ntp-keygen.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 2 2017 +.Dd March 21 2017 .Dt NTP_KEYGEN @NTP_KEYGEN_MS@ User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntp-keygen-opts.mdoc) .\" -.\" It has been AutoGen-ed January 2, 2017 at 12:05:35 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed March 21, 2017 at 09:33:50 AM by AutoGen 5.18.5 .\" From the definitions ntp-keygen-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME