Technical data

Configuring and Managing NTP
12.8 NTP Utilities
Table 12–5 describes the NTPDC options.
Table 12–5 NTPDC Options
Option Description
-c command
The command argument is interpreted as an interactive format
command and is added to the list of commands to be executed on
the specified hosts. Multiple
-c
options may be given.
-i
Forces NTPDC to operate in interactive mode.
-l
Obtains a list of peers that are known to the servers.
-n
Displays all host addresses in numeric format rather than converting
them to host names.
-p
Displays a list of the peers known to the server as well as a summary
of their state.
-s
Displays a list of the peers known to the server as well as a summary
of their state, but in a slightly different format than the
-p
option.
12.8.4 Querying the NTP Server with NTPQ
The NTPQ program allows you to query the NTP server about its current state
and request changes to that state. NTPQ can also obtain and display a list of
peers in a common format by sending multiple queries to the server.
The NTPQ program authenticates requests based on the key entry in the keys file
that is configured using the
controlkey
command, as described in Table 12–2.
The NTPQ program uses NTP mode 6 packets to communicate with the NTP
server; therefore, it is used to query any compatible server on the network.
Because NTP is a UDP protocol, this communication is somewhat unreliable over
long distances (in terms of network topology). The NTPQ program makes one
attempt to restransmit requests and times out requests if the remote host does
not respond within the expected amount of time. NTPQ displays time values in
milliseconds.
To run the NTPQ program, enter the following command:
$ RUN SYS$SYSTEM:TCPIP$NTPQ.EXE
At the NTPQ> prompt, enter commands using the following syntax:
command [options...]
The following commands allow you to query and set NTP server state information:
•?[command_keyword]
A question mark (?) by itself prints a list of all the command keywords known
to this version of NTPQ. A question mark followed by a command keyword
prints function and usage information about the command.
addvars variable_name[=value] [,...]
rmvars variable_name [,...]
clearvars
The data carried by NTP mode 6 messages consists of a list of items in the
form:
variable_name=value
12–22 Configuring and Managing NTP