Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

NTP server on CentOS 7 or Network Time Protocol Server

NTP alarm


NTP statusntpq -p


Code Block
titlentpd -p
[root@128t-5 t128]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 x.x.x.x           y.y.y.y       4 u  684 1024    7    0.518   -0.117   1.365
 x.x.y.x           z.z.z.z       3 u  685 1024    7   11.860   -0.753   1.472


StopĀ 


Stop + resync and start nptd demon



Code Block
titlestop and start
systemctl stop ntpd
ntpdate x.x.x.x
( or ntpdate x.x.y.x )
systemctl start ntpd
ntpq -p


look for theĀ *


Code Block
titlenptq -p
[root@128t-5 t128]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
* x.x.x.x           y.y.y.y       4 u    5   64   17    1.074    0.873   0.417
 x.x.y.x           z.z.z.z        3 u    3   64   17   12.374    0.235   0.468




...