1 /* -*- Mode
: Text
-*- */
3 autogen definitions options
;
5 #include autogen
-version.def
9 prog
-title
= "standard SNTP program";
11 argument
= 'hostname-or-IP ...';
15 config
-header
= "config.h";
33 descrip
= "Force IPv4 DNS name resolution";
35 Force DNS resolution of following host names on the command line
36 to the IPv4 namespace.
44 descrip
= "Force IPv6 DNS name resolution";
46 Force DNS resolution of following host names on the command line
47 to the IPv6 namespace.
55 descrip
= "Normal verbose";
57 Diagnostic messages for non
-fatal errors and a limited amount of
58 tracing should be written to standard error. Fatal ones always
59 produce a diagnostic. This option should be set when there is a
60 suspected problem with the server
, network or the source.
68 arg
-name
= "file-name";
69 descrip
= "KoD history filename";
71 Modifies the filename to be used to persist the history of KoD
72 responses received from servers. The default is
82 descrip
= "Logging with syslog";
84 When this option is set all logging will be done using syslog.
92 arg
-name
= "file-name";
94 descrip
= "Log to specified logfile";
96 This option causes the client to write log messages to the specified
104 flags
-cant
= adjtime
;
105 descrip
= "Set (step) the time with settimeofday()";
114 descrip
= "Set (slew) the time with adjtime()";
122 descrip
= "Use broadcasts to the address specified for synchronisation";
124 arg
-name
= "broadcast-address";
126 If specified SNTP will listen to the specified broadcast address
127 for NTP broadcasts. The default maximum wait time
,
128 68 seconds
, can be modified with
-t.
135 descrip
= "Specify the number of seconds to wait for broadcasts";
137 arg
-name
= "seconds";
140 When waiting for a broadcast packet SNTP will wait the number
141 of seconds specified before giving up. Default
68 seconds.
146 name
= authentication
;
148 descrip
= "Enable authentication with the key auth-keynumber";
150 arg
-name
= "auth-keynumber";
152 This option enables authentication using the key specified in this option
's argument.
153 The argument of this option is the keyid, a number specified in the keyfile as this
154 key's identifier. See the keyfile
option (-k
) for more details.
161 descrip
= "Specify a keyfile. SNTP will look in this file for the key specified with -a";
163 arg
-name
= "file-name";
165 This option specifies the keyfile. SNTP will search for the key specified with
-a keyno in this
166 file. Key files follow the following format
:
170 Where keyid is a number identifying this key
171 keytype is one of the follow
:
172 S Key in
64 Bit hexadecimal number as specified in in the DES specification.
173 N Key in
64 Bit hexadecimal number as specified in the NTP standard.
174 A Key in a
1-to
-8 character ASCII string.
175 M Key in a
1-to
-8 character ASCII string using the MD5 authentication scheme.
177 For more information see ntp.
keys(5).
184 detail
= <<- _END_DETAIL
186 implements the Simple Network Time Protocol
, and is used
187 to query an NTP or SNTP server and either
190 set the local system
's time (given suitable privilege).
193 run interactively from the command line or as a
197 NTP and SNTP are defined by draft-ietf-ntp-ntpv4-proto-13, which
198 obsoletes RFC 4330 and RFC 1305.
201 prog-man-descrip = <<- _END_PROG_MAN_DESCRIP
203 can be used as a SNTP client to query a NTP or SNTP server and either display
204 the time or set the local system's
time (given suitable privilege
). It can be
205 run as an interactive command or in a
209 NTP (the Network Time Protocol
) and
SNTP (the Simple Network Time Protocol
)
210 are defined and described by
211 draft
-ietf
-ntp
-ntpv4
-proto
-13,
212 which should become a full RFC any month now.
215 The default is to write the estimated correct local date and
time (i.e. not
216 UTC
) to the standard output in a format like
217 .BR
"'1996 Oct 15 20:17:25.123 +4.567 +/- 0.089 secs'" ,
219 .B
"'+4.567 +/- 0.089 secs'"
220 indicates the local clock is
4.567 seconds behind the correct time
221 (so
4.567 seconds must be added to the local clock to get it to be correct
),
223 '1996 Oct 15 20:17:25.123'
224 is believed to be correct to within
227 _END_PROG_MAN_DESCRIP
;
229 man
-doc
= <<- _END_MAN_DOC
231 The simplest use of this program is as an unprivileged command to check the
232 current time and error in the local clock. For example
:
234 .B sntp ntpserver.somewhere
236 With suitable privilege
, it can be run as a command or in a
238 job to reset the local clock from a reliable server
, like the
242 commands. For example
:
244 .B sntp
-a ntpserver.somewhere
246 The program returns a zero exit
247 status for success
, and a non
-zero one otherwise.
249 Please report bugs to http
://bugs.ntp.org .