[email protected] writes: > > > $ for j in $(for i in 0 1 2 3;do host $i.us.pool.ntp.org;done|cut -d ' ' > > -f4|sort -u|grep '^[0-9]');do ntpdate -dp1 $j|egrep > > '^server|^stratum|^offset';done > > I would make one alteration: > Instead of ntpdate -dp1, use ntpdate -qp1. Or run both. > > Using -d gives you the precision, which is handy, although they are all prett > y close together. Using -q gives you the delay, which helps to find servers c > loser to your location. At least I've always thought it was best (for a strat > um 3 server) to use servers with the least lag/delay. On the flip side, I kno > w NTP at large needs some inter-region action as well, so perhaps the delay s > hould be ignored, as NTP compensates for that anyway?
How about using sntp instead of ntpdate? % sntp max-e0 sntp [email protected] Thu May 5 07:49:16 UTC 2016 (9) 2016-08-25 10:55:41.078851 (+0800) -66.859299 +/- 44.581731 max-e0 10.66.1.53 s1 no-leap % H _______________________________________________ pool mailing list [email protected] http://lists.ntp.org/listinfo/pool
