Linux / Unix‎ > ‎

ntp

Check NTP status : 

ntpdc -c sysinfo
system peer:          0.0.0.0
system peer mode:     unspec
leap indicator:       11
stratum:              16
precision:            -20
root distance:        0.00000 s
root dispersion:      14.05795 s
reference ID:         [73.78.73.84]
reference time:       00000000.00000000  Thu, Feb  7 2036  7:28:16.000
system flags:         auth monitor ntp kernel stats
jitter:               0.000000 s
stability:            0.000 ppm
broadcastdelay:       0.003998 s
authdelay:            0.000000 s


See how far cloeck is from ref :
cat /var/lib/ntp/ntp.drift
37.323


Show synchronization status with all peers : 
ntpq -p 
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 213.152.31.67   .INIT.          16 u    - 1024    0    0.000    0.000   0.000


Force immediate  resync : 
/etc/init.d/ntp stop
ntpdate -u time.nomblot.org
/etc/init.d/ntp start


Comments