0 оценок0% нашли этот документ полезным (0 голосов)
202 просмотров2 страницы
Ntpd configuration file contains configuration options. Time server, symmetric active peers and broadcast / multicast modes can be set. Statistics files can be generated.
Ntpd configuration file contains configuration options. Time server, symmetric active peers and broadcast / multicast modes can be set. Statistics files can be generated.
Авторское право:
Attribution Non-Commercial (BY-NC)
Доступные форматы
Скачайте в формате PDF, TXT или читайте онлайн в Scribd
Ntpd configuration file contains configuration options. Time server, symmetric active peers and broadcast / multicast modes can be set. Statistics files can be generated.
Авторское право:
Attribution Non-Commercial (BY-NC)
Доступные форматы
Скачайте в формате PDF, TXT или читайте онлайн в Scribd
Time Servers: Modes Enable Statistics Collection: server <ip/hostname> [options] enable stats IANA assigned NTP multicast address: Symmetric Active Peers: 224.0.1.1 (IPv4) / ff05::101 (IPv6) Select statistics files to be generated: peer <ip/hostname> [options] stats [space separated list of stats] Send out broadcast/multicast packets: [options] can be one or more of the broadcast <bcast/mcast ip> [options] List of availabile stats: following flags: clockstats clock statistics [options] can be cryptostats crypto public key stats initial burst, speed up autokey, key n ( see left) iburst loopstats loop filter statistics initial synchronization ttl Time To Live, number of peerstats peer statistics max.router hops the rawstats raw timestamps info minpoll x change minimum or packets should be sysstats ntpd statistics maxpoll x maximum polling interval to forwarded (default=127) 2^x seconds: Select where to create statistics files: 4=16s, 5=32s, 6=64s, Listen to NTP broadcast packets: statsdir <directory path> 7=128s, 8=256s, 9=512s, broadcastclient [novolley] 10=1024s, 11=2048s, 12=4096s, 13=8192s, novolley do not measure network Filename management: 14=16384s, 15=32768s, filegen <name> [file fname] [type 16=65536s, 17=131072s delay (uni-directional mode) ftype] [link | nolink] [enable | disable] prefer preferred source name is the name of the stats Listen to NTP multicast packets multicastclient <mcast ip> type (e.g. clockstats) key n use symmetric key fname fixed part of filename number n ftype can be either none=single plain file autokey use autokey with this source Useful Weblinks pid=process id in the filename noselect only monitor, never use as day/week/month/year=one http://www.ntp.org - Official NTP Website sync source http://support.ntp.org/ - Support Web file per day/week/... http://www.meinberg.de - Meinberg Website age=new file every 24hrs true always consider this source http://www.time-server-monitor.com - free NTP link create hardlink to current being a truechimer Monitor Utlility file NTP Cheat Sheet : Command/File Reference ntpd ntpq Key File Format Command Line Options Command Line Options /etc/ntp.keys: <n> M <passphrase> -a require crypto auth for ntpq [options] <hostname> bcast, mcast and peers n key id do not require auth (!) passphrase key passphrase -A If no <hostname> is specified, -b enable broadcastclient localhost will be used. -c cfgfile use cfgfile as config file Statistics Files Format -d debugging mode -c „x y“ run ntpq command x /var/log/peerstats: mjd sec.frac paddr status offs delay disp rmsjitter -D level debugging level with parameter(s) y /var/log/clockstats: -f driftfile specify drift file name (multiple -c's are ok!) mjd sec.frac caddr timecode -n do not resolve hostnames -g allow big initial timestep -p show status billboard /var/log/loopstats: mjd sec.frac offs freq rmsjitter alandev clkdconst -i jaildir chroot to jaildir /var/log/sysstats: -k keyfile specify key file name mjd sec.frac uptime pr pp cver pver bver acden -l logfile specify log file name Command Reference badlen badauth rexc -L do not listen to virtual command (short form) [pars]: mjd Mod. Julian Date peers show status billboard IPs (default: listen) sec.frac seconds/fractions since midnight associations (as) paddr/caddr peer / clock address -n do not fork process show list of associations status peer status in hex (stay in foreground) with id and their status offs,delay,disp offset, delay, dispersion in s -p pidfile specify process ID file readvars (rv) [assoc] rmsjitter RMS jitter in s timecode last received timecode from clock -q exit after first sync show peer vars for freq frequency offset (PPM) -r bdelay specify broadcast delay association assoc (or the alandev Alan Deviation (PPM) ntpd instance sysvars if clkdconst Clock Discipline Time Constant -s statsdirspecify statsdir empty) uptime time in hours since last restart -t key specify a trusted key clockvars (cv) [assoc] # of packets received: pr, pp received/processed -U ifupd specify interface update show clock vars for cver,pver,bver current, prev or bad version interval association assoc acden denied access keyid n use key n for queries badlen bad length/format -x step threshold = 600s badauth bad authentication (instead of 128ms) passwd ask for key (password) rexec rate exceeded timeout x set timeout for replies to x milliseconds NTP Cheat Sheet v1.0 – (c)opyright 2008 by Meinberg Funkuhren GmbH & Co. KG - www.meinberg.de