This is an old revision of the document!


NTP

Config:

/etc/ntp.conf

Commands:

ntptrace                  #Show sync stats
watch -n1 -d ntptrace     #Show continiously sync stats
ntpq -p                   #NTP query program
ntpq -pn                  #NTP query program. showing IP instead of DNS name

“offset”:

Shows timedifference between reference time (timeserver) and system time (OS)

“jitter”:

Indicates the magnitude of the fluctuations between individual time comparisons

(worst case) Example:

[root@testsap ~]# ntpq -pn
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*10.200.1.11     192.168.47.125    4 u  652 1024  377    0.545    0.944   1.939
+10.200.1.12     192.168.47.126    5 u  705 1024  377    0.469    1.579   3.187
+10.200.1.13     192.168.47.12     6 u  592 1024  377    0.342    2.999  22.494

Check from a Linux-Client:

vi /etc/ntp.conf          #Select NTP-server you want to check
date -s "1974-01-04"
date --set="2 OCT 2006 18:00:00"
date +%T -s "20:46:05"
service ntpd restart
systemctl restart ntpd.service
date
timedatectl set-timezone Europe/Berlin
timedatectl 
dpkg-reconfigure tzdata 
linux/ntp.1560953860.txt.gz · Last modified: 2019/06/19 16:17 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki