Daily Grind

システム開発関連の忘備録です

NTPの同期間隔

/etc/ntp.confでntpサーバの指定に「iburst」をつける
最短で更新してくれるらしい

server 192.168.8.XXX iburst

■NTP が機能していることを確認するのは以下。

[ec2-user ~]$ ntpstat
synchronised to NTP server (64.246.132.14) at stratum 2
   time correct to within 99 ms

■NTP サーバーが認識しているピアとその状態の概要を表示するには、ntpq -p コマンドを使用します。

[ec2-user ~]$ ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
+lttleman.deekay 204.9.54.119     2 u   15  128  377   88.649    5.946   6.876
-bittorrent.tomh 91.189.94.4      3 u  133  128  377  182.673    8.001   1.278
*ntp3.junkemailf 216.218.254.202  2 u   68  128  377   29.377    4.726  11.887
+tesla.selinc.co 149.20.64.28     2 u   31  128  377   28.586   -1.215   1.435