trap host_address [ port port_number ] [ interface interface_address ]
setvar variable [ default ]
name = valueis followed by the
defaultkeyword, the variable will be listed as part of the default system variables (
ntpq rvcommand). These additional variables serve informational purposes only. They are not related to the protocol other that they can be listed. The known protocol variables will always override any variables defined via the
sys_var_listholds the names of all system variables. The
peer_var_listholds the names of all peer variables and the
clock_var_listholds the names of the reference clock variables.
syslogfacility or the alternate
logfilelog file. By default, all output is turned on. All
configkeywordkeywords can be prefixed with
syslog messagescan be controlled in four classes (,
sync). Within these classes four types of messages can be controlled.
info) control configuration information. Event messages (
events) control logging of events (reachability, synchronization, alarm conditions). Statistical output is controlled with the
statisticskeyword. The final message group is the status messages. This describes mainly the synchronizations status. Configuration keywords are formed by concatenating the message class with the event class. The
allprefixcan be used instead of a message class. A message class may also be followed by the
allkeyword to enable/disable all messages of the respective message class.
logconfig = syncstatus +sysevents
ntpdand the major system events. For a simple reference server, the following minimum message configuration could be useful:
logconfig = syncall +clockall
Most variables used by the NTP protocol can be examined with the
ntpdc (mode 7 messages) and the
ntpq (mode 6
messages). Currently, very few variables can be modified via mode 6
messages. These variables are either created with the
setvar directive or the leap warning bits. The leap warning
bits can be set in the
leapwarning variable up to one month
ahead. Both the
variables have a slightly different encoding than the usual leap bits
LEAP_NOWARNINGis passed on).