Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.sai.msu.su/~er/xntp/miscopt.html
Дата изменения: Unknown Дата индексирования: Sat Dec 22 01:48:21 2007 Кодировка: Поисковые слова: п р п р п р п |
broadcastdelay seconds
trap host_address [ port port_number ] [
interface interface_address ]
setvar variable [ default ]
name = value
is
followed by the default
keyword, the variable will be
listed as part of the default system variables (ntpq rv
command). 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 setvar
mechanism.
sys_var_list
holds the
names of all system variables. The peer_var_list
holds the
names of all peer variables and the clock_var_list
holds
the names of the reference clock variables.
logfile logfile
syslog
facility.
logconfig configkeyword
syslog
facility or the alternate
logfile
log file. By default, all output is turned on. All
configkeyword
keywords can be prefixed with
=
, +
and -
, where =
sets the syslogmask
, +
adds and -
removes messages. syslog messages
can be controlled in four
classes (, peer
, sys
and 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 statistics
keyword. 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
allprefix
can be used instead of a message class. A message
class may also be followed by the all
keyword to
enable/disable all messages of the respective message class.
logconfig = syncstatus +sysevents
xntpd
and 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
xntpdc
(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 leapwarning
and leapindication
variables have a slightly different encoding than the usual leap bits
interpretation:
00
01/10
11
LEAP_NOWARNING
is passed on).