HP-UX Reference (11i v1 00/12) - 1M System Administration Commands N-Z (vol 4)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/naaagt.1m
________________________________________________________________
___ ___
n
ntpq(1M) ntpq(1M)
Control message commands result in one or more NTP mode 6 messages being sent to the server, and
cause the data returned to be printed in some format. Most commands currently implemented send a single
message and expect a single response. The current exceptions are the peers command, which will send a
preprogrammed series of messages to obtain the data it needs, and the mreadlist and mreadvar com-
mands, which will iterate over a range of associations. The supported control messages are listed below:
associations
Obtains and prints a list of association identifiers and peer status for in-spec peers of the server
being queried. The list is printed in columns. The first of these columns is an index numbering the
associations from 1 for internal use, the second column is the actual association identifier returned
by the server and the third column is the status word for the peer. This is followed by a number of
columns containing data decoded from the status word. Note that the data returned by the
associations command is cached internally in ntpq. The index is then of use when dealing
with stupid servers which use association identifiers which are hard for humans to type, in that for
any subsequent commands which require an association identifier as an argument, the form and
index may be used as an alternative.
clockvar [assocID][variable_name[=value[ ... ]][ ... ]]
cv [assocID ][variable_name[=value[ ... ]][ ... ]]
Requests that a list of the server’s clock variables be sent. Servers which have a radio clock or
other external synchronization will respond positively to this. If the association identifier is omitted
or zero the request is for the variables of the
system clock and will generally get a positive
response from all servers with a clock. If the server treats the clocks as pseudo-peers, then more
than one clock connected at once, referencing the appropriate peer association ID will show the
variables of a particular clock. Omitting the variable list will cause the server to return a default
variable display.
lassociations
Obtains and prints a list of association identifiers and peer status for all associations for which the
server is maintaining state. This command differs from the associations command only for
servers which retain state for out-of-spec client associations (i.e., fuzzballs). Such associations are
normally omitted from the display when the associations command is used, but are included
in the output of lassociations.
lpassociations
Print data for all associations, including out-of-spec client associations, from the internally cached
list of associations. This command differs from
passociations command only when dealing
with fuzzballs.
lpeers
Similar to peers command, except a summary of all associations for which the server is main-
taining state is printed. This can produce a much longer list of peers from fuzzball servers.
mreadlist assocID assocID
mrl assocID assocID
Similar to the readlist command, except the query is done for each range of (nonzero) associa-
tion IDs. This range is determined from the association list cached by the most recent associations
command.
mreadvar assocID assocID [variable_name
[=value][ ... ]]
mrv assocID assocID [variable_name[=value][ ... ]]
Similar to the readvar command, except the query is done for each range of (nonzero) associa-
tion IDs. This range is determined from the association list cached by the most recent associations
command.
opeers
An old form of the peers command with the reference ID replaced by the local interface address.
passociations
Prints association data concerning in-spec peers from the internally cached list of associations. This
command performs identically to the associations except that it displays the internally
stored data rather than making a new query.
peers Obtains a list of in-spec peers of the server, along with a summary of each peer’s state. Summary
information includes the address of the remote peer, the reference ID (0.0.0.0 if the refID is
unknown), the stratum of the remote peer, the type of the peer (local, unicast, multicast or
HP-UX Release 11i: December 2000 − 3 − Section 1M−−605
___
___