Technical data
Configuring and Managing NTP
12.8 NTP Utilities
In requests to the server to read variables, the =value portion is ignored
and can be omitted. The NTPQ program maintains an internal list in which
data to be included in control messages can be assembled and sent using the
readlist
and
writelist
commands. The
addvars
command allows variables
and their optional values to be added to the list. If more than one variable
is to be added, the list should be separated by commas and should not
contain blank spaces. The
rmvars
command can be used to remove individual
variables from the list, while the
clearlist
command removes all variables
from the list.
•
authenticate yes | no
By default, NTPQ does not authenticate requests unless they are
write requests. The
authenticate yes
command causes NTPQ to send
authentication with all requests it makes. Authenticated requests cause some
servers to handle requests slightly differently. To prevent any mishap, do a
peer display before turning on authentication.
•
cooked
Reformats variables that are recognized by the server. Variables that NTPQ
does not recognize are marked with a trailing question mark (?).
•
debug more | less | no
Adjusts level of NTPQ debugging. The default is
debug no
.
•
help
Displays the list of NTPQ interactive commands. This is the same as question
mark (?).
•
host [host-name]
Sets the host to which future queries will be sent; host-name may be either a
host name or an Internet address. If host-name is not specified, the current
host is used.
•
hostnames yes | no
If
yes
is specified, displays host names in information displays. If
no
is
specified, displays Internet addresses instead. The default is
hostnames yes
.
The default can be modified using the command line option
-n
.
•
key-ID n
Specifies the key ID number to be used to authenticate configuration requests.
This must correspond to a key ID number the server has been configured to
use for this purpose (see Section 10.7.2).
•
keytype md5 | des
Sets the authentication key to either MD5 or DES. Only MD5 is supported in
this implementation.
•
ntpversion 1 | 2 | 3
Sets the NTP version number that NTPQ claims in packets. Default is 3.
Mode 6 control messages (and modes, for that matter) did not exist in NTP
version 1.
Configuring and Managing NTP 12–23