xStack® DGS-3620 Series Layer 3 Managed Stackable Gigabit Switch CLI Reference Guide
876
76-6 config ntp control key
Description
This command is used to specify the key ID for the NTP control message which uses the standard
protocol defined in RFC 1305. The ntpq utility program is used to monitor NTP daemon operations
and determine performance. It uses the standard NTP mode 6 control message formats defined in
Appendix B of RFC 1305. The same formats are used in NTPv4, although some of the variable
names have changed and new ones added. The description used here is for the NTPv4 variables.
The program can be run either in interactive mode or controlled using command line arguments.
Requests to read and write arbitrary variables can be assembled, with raw and pretty-printed
output options being available. The ntpq can also obtain and print a list of peers in a common
format by sending multiple queries to the server.
If one or more request options are included in the command line when ntpq is executed, each of
the requests will be sent to the NTP servers running on each of the hosts given as command line
arguments, or on localhost by default. If no request options are given, ntpq will attempt to read
commands from the standard input and execute these on the NTP server running on the first host
given on the command line, again defaulting to localhost when no other host is specified. Ntpq will
prompt for commands if the standard input is a terminal device.
Ntpq uses NTP mode 6 packets to communicate with the NTP server, and hence can be used to
query any compatible server on the network which permits it. Note that since NTP is a UDP
protocol this communication will be somewhat unreliable, especially over large distances in terms
of network topology.
Format
config ntp control_key [<key_id> | clear]
Parameters
<key_id> - Enter the key ID to be used here.
clear - Specifies to remove the control key.
Restriction
Only Administrators, Operators and Power Users can issue this command.
Examples
To configure the NTP control key:
DGS-3620-28PC:admin# config ntp control_key 42
Command: config ntp control_key 42
Success.