associations |
Obtains and displays a list of association identifiers and peer statuses for in-spec peers of the server being queried. The list is displayed in columns. The first of these is an index numbering the associations from 1 for internal use, the second is the actual association identifier returned by the server and the third is the status word for the peer. This is followed by a number of columns containing data decoded from the status word.
The data returned by the associations command is cached internally in NTPQ. The index is then of use when dealing with servers that use association identifiers that are hard for humans to type, because for any subsequent commands that require an association identifier as an argument, the form and index can be used as an alternative. |
clockvar [ assocID ] [ variable_name [ = cv [ assocID ] [ variable_name [ = value [ ... ] ] [ ... ] |
Requests that a list of the server’s clock variables be sent. Servers that have a radio clock or other external synchronization respond positively to this. If the association identifier is omitted or has a value of zero, the request is for the variables of the system clock and generally gets a positive response from all servers with a clock. If the server treats clocks as pseudo-peers, so more than one clock can be connected at once, referencing the appropriate peer association ID shows the variables of a particular clock period. Omitting the variable list causes the server to return a default variable display. |
lassocations |
Obtains and displays a list of association identifiers and peer statuses for all associations for which the server is maintaining state. This command differs from the associations command only for servers that retain state for out-of-spec client associations ( such as fuzzballs). Such associations are normally omitted from the display when the associations command is used, but are included in the output of lassociations. |
lpassociations |
Displays data for all associations, including out-of-spec client associations, from the internally cached list of associations. This command differs from passociations only when dealing with fuzzball servers. |
lpeers |
Like R peers, except a summary of all associations for which the server is maintaining state is displayed. This can produce a much longer list of peers than fuzzball servers. |
mreadlist assocID assocID mrl assocID assocID |
Like the readlist command, except the query is done for each of a range of (nonzero) association 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 [ ... ] |
Like the readvar command, except the query is done for each of a range of (nonzero) association 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 |
Displays association data concerning in-spec peers from the internally cached list of associations. This command performs identically to the associations command except that it displays the internally stored data rather than making a new query. |
peers |
|
pstatus assocID |
Sends a read status request to the server for the given association. The names and values of the peer variables returned are printed. The status word from the header is displayed preceding the variables, both in hexadecimal and in simple english. |
readlist [ assocID ] rl [ assocID ] |
Requests that the values of the variables in the internal variable list be returned by the server. If the association ID is omitted or is 0, the variables are assumed to be system variables. Otherwise they are treated as peer variables. If the internal variable list is empty, a request is sent without data, which should induce the remote server to return a default display. |
readvar assocID variable_name [ = value ] [ ... ] rv assocID [ variable_name [ = value ] [ ... ] |
Requests that the values of the specified variables be returned by the server by sending a read variables request. If the association ID is omitted or is given as zero, the variables are system variables; otherwise, they are peer variables and the values returned are those of the corresponding peer. Omitting the variable list sends a request with no data that should induce the server to return a default display. |
rvi index |
Similar to rv with an association ID corresponding to this index. |
writevar assocID variable_name [ = value ] [ ... ] |
Similar to readvar request, except the specified variables are written instead of read. |
writelist [ assocID ] |
Similar to readlist request, except the internal list variables are written instead of read. |
showipconf |
Displays the IP addresses of the local machine along with the corresponding subnet broadcast addresses. |