What's new

ntpMerlin ntpMerlin - NTP Daemon for AsusWRT Merlin

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

I have 384.8_2 on a U86. Since updating to 1.3.0, I need to manually do "ntpmerlin startup" after a reboot or it does not show up in the GUI Tools menu. How can I make this be handled automatically after a reboot?
Check /jffs/scripts/services-start

Which other scripts are you running?
 
Check /jffs/scripts/services-start

Which other scripts are you running?
Here's that script.

#!/bin/sh

RC='/opt/etc/init.d/rc.unslung'

i=30
until [ -x "$RC" ] ; do
i=$(($i-1))
if [ "$i" -lt 1 ] ; then
logger "Could not start Entware"
exit
fi
sleep 1
done
$RC start
/jffs/scripts/ntpmerlin startup # ntpMerlin

I see that it's there, but do not know why it does not work.

Other scripts: Skynet, Stubby.
 
Check that it is executable.

I also notice that's the older way of starting entware, i thought that got moved to post-mount long ago (maybe that's a Diversion only thing)
 
Check that it is executable.

I also notice that's the older way of starting entware, i thought that got moved to post-mount long ago (maybe that's a Diversion only thing)
It is executable, I just checked. I'm not running Diversion. In this case, what do I need to do to start Entware differently?
 
Jack, a request. Showing a more prominent line horizontally through the zero (0) line would make seeing offset variations more clearly. Thanks for the consideration.

screenshot-router-asus-com-8443-2019-05-15-10-04-54.png
 
what would cause no stats to be reported on the graphs page?
 
It was a browser issue cancel that. :oops::rolleyes: jack is back.
 
I had to switch back to ntpmerlin, I like the customizability and the graphs for translating accuracy. Also, I love the new uiDivStats as well. Cannot run without these graphs mang @Jack Yaz
 
I've been running ntpMerlin for a while and when I check "ntpq -pn" all of the peers listed have a blank tally code. Nothing is identified with a "*" as the primary reference (or any other symbol.) But, when I check "ntpq -c rl" there is a refid peer set. Is this normal? Thanks!
 
I've been running ntpMerlin for a while and when I check "ntpq -pn" all of the peers listed have a blank tally code. Nothing is identified with a "*" as the primary reference (or any other symbol.) But, when I check "ntpq -c rl" there is a refid peer set. Is this normal? Thanks!
What you describe is not normal.

NTP_tally_codes.png

Code:
# ntpq -pn
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*192.168.50.230  .GPS.            1 u    3    8  377    0.559    0.092   0.038
+192.168.50.200  .GPS.            1 u   49   64  377    0.789   -0.532   0.338
 
What you describe is not normal.

I thought it was abnormal, but I'm not sure what to do about it. Currently:

Code:
# ntpq -pn
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 173.71.69.215   .INIT.          16 u    - 1024    0    0.000    0.000   0.000
 173.255.206.154 132.163.96.3     2 u  49y  128  377   35.988   -5.240   0.002
 204.11.201.10   216.218.254.202  2 u  49y  128  377   72.320   -7.322   5.033
 206.108.0.131   .PTP0.           1 u  49y  128  377   31.178    5.298   0.000
 140.82.7.153    200.98.196.212   2 u  49y  128  377   18.656    5.015   0.000
 205.206.70.2    206.108.0.131    2 u  49y  128  203   78.781  -12.677   0.002
 129.6.15.28     .NIST.           1 u  49y  128  377   12.657   -4.779   0.912
 129.6.15.29     .NIST.           1 u  49y  128  377   13.893   -5.265   3.215
 199.188.48.60   130.207.244.240  2 u  49y  128  377   31.680   -7.279   0.002

# ntpq -c rl
associd=0 status=0028 leap_none, sync_unspec, 2 events, no_sys_peer,
version="ntpd 4.2.8p12@1.3728-o Fri Mar 22 21:45:59 UTC 2019 (1)",
processor="armv7l", system="Linux/2.6.36.4brcmarm", leap=00, stratum=2,
precision=-19, rootdelay=14.138, rootdisp=955.163, refid=129.6.15.29,
reftime=e08a94a2.749a7326  Sat, May 18 2019 14:26:42.455,
clock=e08a969e.f4e849b0  Sat, May 18 2019 14:35:10.956, peer=0, tc=7,
mintc=3, offset=-5.265314, frequency=15.103, sys_jitter=0.000000,
clk_jitter=4.714, clk_wander=1.132

# ntptime
ntp_gettime() returns code 0 (OK)
  time e08a9733.323c31e0  Sat, May 18 2019 14:37:39.196, (.196231260),
  maximum error 1280201 us, estimated error 4713 us, TAI offset 0
ntp_adjtime() returns code 0 (OK)
  modes 0x0 (),
  offset -1474.638 us, frequency 15.103 ppm, interval 1 s,
  maximum error 1280201 us, estimated error 4713 us,
  status 0x2001 (PLL,NANO),
  time constant 7, precision 0.001 us, tolerance 500 ppm,
 
I thought it was abnormal, but I'm not sure what to do about it. Currently:

Code:
# ntpq -pn
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 173.71.69.215   .INIT.          16 u    - 1024    0    0.000    0.000   0.000
 173.255.206.154 132.163.96.3     2 u  49y  128  377   35.988   -5.240   0.002
 204.11.201.10   216.218.254.202  2 u  49y  128  377   72.320   -7.322   5.033
 206.108.0.131   .PTP0.           1 u  49y  128  377   31.178    5.298   0.000
 140.82.7.153    200.98.196.212   2 u  49y  128  377   18.656    5.015   0.000
 205.206.70.2    206.108.0.131    2 u  49y  128  203   78.781  -12.677   0.002
 129.6.15.28     .NIST.           1 u  49y  128  377   12.657   -4.779   0.912
 129.6.15.29     .NIST.           1 u  49y  128  377   13.893   -5.265   3.215
 199.188.48.60   130.207.244.240  2 u  49y  128  377   31.680   -7.279   0.002

# ntpq -c rl
associd=0 status=0028 leap_none, sync_unspec, 2 events, no_sys_peer,
version="ntpd 4.2.8p12@1.3728-o Fri Mar 22 21:45:59 UTC 2019 (1)",
processor="armv7l", system="Linux/2.6.36.4brcmarm", leap=00, stratum=2,
precision=-19, rootdelay=14.138, rootdisp=955.163, refid=129.6.15.29,
reftime=e08a94a2.749a7326  Sat, May 18 2019 14:26:42.455,
clock=e08a969e.f4e849b0  Sat, May 18 2019 14:35:10.956, peer=0, tc=7,
mintc=3, offset=-5.265314, frequency=15.103, sys_jitter=0.000000,
clk_jitter=4.714, clk_wander=1.132

# ntptime
ntp_gettime() returns code 0 (OK)
  time e08a9733.323c31e0  Sat, May 18 2019 14:37:39.196, (.196231260),
  maximum error 1280201 us, estimated error 4713 us, TAI offset 0
ntp_adjtime() returns code 0 (OK)
  modes 0x0 (),
  offset -1474.638 us, frequency 15.103 ppm, interval 1 s,
  maximum error 1280201 us, estimated error 4713 us,
  status 0x2001 (PLL,NANO),
  time constant 7, precision 0.001 us, tolerance 500 ppm,
no_sys_peer suggests you have the pool command

Maybe the following lines in /jffs/configs/ntp.conf for you are different? The "restrict source" line allows pool peers when using the recommended restrictive defaults.
Code:
#
restrict default limited kod nomodify notrap nopeer noquery # restrictive default IPv4
restrict -6 default limited kod nomodify notrap nopeer noquery # restrictive default IPv6
restrict source nomodify notrap noquery # required for pool directive if using restrictive default permissions
restrict 127.0.0.1 # permissive localhost IPv4
restrict -6 ::1 # permissive localhost IPv6
#
https://kb.meinbergglobal.com/kb/time_sync/ntp/ntp_status_checks
http://doc.ntp.org/current-stable/decode.html#sys
 
Last edited:
no_sys_peer suggests you have the pool command

Maybe the following lines in /jffs/configs/ntp.conf for you are different? The "restrict source" line allows pool peers when using the recommended restrictive defaults.

I didn't modify those lines in the default config. This is my ntp.conf:

Code:
# replace the following time servers to the ones close to you
# see http://support.ntp.org/bin/view/Servers/NTPPoolServers

server 0.us.pool.ntp.org iburst
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org

server 0.north-america.pool.ntp.org iburst
server 1.north-america.pool.ntp.org
server 2.north-america.pool.ntp.org
server 3.north-america.pool.ntp.org

server time-a-g.nist.gov
server time-b-g.nist.gov
#server time-c-g.nist.gov
#server time-d-g.nist.gov
#server time-e-g.nist.gov

interface ignore wildcard
interface listen br0

logfile /opt/var/spool/ntp/ntp.log
driftfile /opt/var/spool/ntp/ntp.drift
#leapfile /opt/var/spool/ntp/leap-seconds.list # https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list

restrict default limited kod nomodify notrap nopeer noquery # restrictive default IPv4
restrict -6 default limited kod nomodify notrap nopeer noquery # restrictive default IPv6
restrict source nomodify notrap noquery # required for pool directive if using restrictive default permissions
restrict 127.0.0.1 # permissive localhost IPv4
restrict -6 ::1 # permissive localhost IPv6

disable auth stats
 
I didn't modify those lines in the default config. This is my ntp.conf:

Code:
# replace the following time servers to the ones close to you
# see http://support.ntp.org/bin/view/Servers/NTPPoolServers

server 0.us.pool.ntp.org iburst
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org

server 0.north-america.pool.ntp.org iburst
server 1.north-america.pool.ntp.org
server 2.north-america.pool.ntp.org
server 3.north-america.pool.ntp.org

server time-a-g.nist.gov
server time-b-g.nist.gov
#server time-c-g.nist.gov
#server time-d-g.nist.gov
#server time-e-g.nist.gov

interface ignore wildcard
interface listen br0

logfile /opt/var/spool/ntp/ntp.log
driftfile /opt/var/spool/ntp/ntp.drift
#leapfile /opt/var/spool/ntp/leap-seconds.list # https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list

restrict default limited kod nomodify notrap nopeer noquery # restrictive default IPv4
restrict -6 default limited kod nomodify notrap nopeer noquery # restrictive default IPv6
restrict source nomodify notrap noquery # required for pool directive if using restrictive default permissions
restrict 127.0.0.1 # permissive localhost IPv4
restrict -6 ::1 # permissive localhost IPv6

disable auth stats
It might be that you have too many servers in your conf?
Pool will manage the number to be about eight.
Comment out your eight pool servers and use:
Code:
pool north-america.pool.ntp.org iburst
server time-a-g.nist.gov iburst
server time-b-g.nist.gov iburst
The pool will include the two NIST servers which are close to you along with six servers from the pool.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top