Tx - I don't understand the output though - other than the inconsistency
of results doesn't look good.


Code:
--------------------
    
  
  tc@PCP-XLR-LMS:~$ cat /etc/sysconfig/ntpserver
  pool.ntp.org
  
  tc@PCP-XLR-LMS:~$ sudo /usr/sbin/ntpd -n -d -p pool.ntp.org
  ntpd: 'pool.ntp.org' is 213.199.225.30
  ntpd: sending query to 213.199.225.30
  ntpd: timed out waiting for 213.199.225.30, reach 0x00, next query in 2s
  ntpd: 'pool.ntp.org' is 213.199.225.30
  ntpd: sending query to 213.199.225.30
  ntpd: reply from 213.199.225.30: offset:-0.424035 delay:0.070126 status:0x24 
strat:2 refid:0xe2e73250 rootdelay:0.000946 reach:0x01
  ntpd: sending query to 213.199.225.30
  ntpd: timed out waiting for 213.199.225.30, reach 0x02, next query in 1s
  ntpd: sending query to 213.199.225.30
  ntpd: timed out waiting for 213.199.225.30, reach 0x04, next query in 1s
  ntpd: sending query to 213.199.225.30
  ntpd: timed out waiting for 213.199.225.30, reach 0x08, next query in 33s
  ntpd: sending query to 213.199.225.30
  ntpd: reply from 213.199.225.30: offset:-0.432834 delay:0.054538 status:0x24 
strat:2 refid:0xe2e73250 rootdelay:0.000946 reach:0x11
  ntpd: sending query to 213.199.225.30
  ntpd: reply from 213.199.225.30: offset:-0.437635 delay:0.046222 status:0x24 
strat:2 refid:0xe2e73250 rootdelay:0.000946 reach:0x23
  ntpd: sending query to 213.199.225.30
  ntpd: reply from 213.199.225.30: offset:-0.388145 delay:0.048512 status:0x24 
strat:2 refid:0xe2e73250 rootdelay:0.000946 reach:0x47
  ntpd: sending query to 213.199.225.30
  ntpd: timed out waiting for 213.199.225.30, reach 0x8e, next query in 32s
  ^C
  
  
  tc@PCP-XLR-LMS:~$ sudo /usr/sbin/ntpd -n -d -p pool.ntp.org
  ntpd: 'pool.ntp.org' is 162.159.200.123
  ntpd: sending query to 162.159.200.123
  ntpd: reply from 162.159.200.123: offset:-0.300064 delay:0.020605 status:0x24 
strat:3 refid:0x1308150a rootdelay:0.009415 reach:0x01
  ntpd: sending query to 162.159.200.123
  ntpd: reply from 162.159.200.123: offset:-0.301307 delay:0.017879 status:0x24 
strat:3 refid:0x1308150a rootdelay:0.009415 reach:0x03
  ntpd: sending query to 162.159.200.123
  ntpd: reply from 162.159.200.123: offset:-0.294214 delay:0.029378 status:0x24 
strat:3 refid:0x1308150a rootdelay:0.009018 reach:0x07
  ntpd: sending query to 162.159.200.123
  ntpd: reply from 162.159.200.123: offset:-0.300830 delay:0.013769 status:0x24 
strat:3 refid:0x1308150a rootdelay:0.009033 reach:0x0f
  ntpd: sending query to 162.159.200.123
  ntpd: reply from 162.159.200.123: offset:-0.296452 delay:0.019446 status:0x24 
strat:3 refid:0x1308150a rootdelay:0.009415 reach:0x1f
  ntpd: sending query to 162.159.200.123
  ntpd: reply from 162.159.200.123: offset:-0.247953 delay:0.017223 status:0x24 
strat:3 refid:0x1308150a rootdelay:0.009400 reach:0x3f
  ntpd: sending query to 162.159.200.123
  ntpd: reply from 162.159.200.123: offset:-0.200265 delay:0.012802 status:0x24 
strat:3 refid:0x1308150a rootdelay:0.009003 reach:0x7f
  ntpd: sending query to 162.159.200.123
  ntpd: reply from 162.159.200.123: offset:-0.148144 delay:0.016637 status:0x24 
strat:3 refid:0x1308150a rootdelay:0.009003 reach:0xff
  ^C
  
  
  I then tried the -q option to quit after clock is set, and it seems to 
complete successfully some of the time.
  
  
  tc@PCP-XLR-LMS:~$ sudo /usr/sbin/ntpd -n -q -d -p pool.ntp.org
  ntpd: 'pool.ntp.org' is 185.121.25.166
  ntpd: sending query to 185.121.25.166
  ntpd: reply from 185.121.25.166: offset:-0.423938 delay:0.010900 status:0x24 
strat:2 refid:0x62d6c755 rootdelay:0.002914 reach:0x01
  ntpd: sending query to 185.121.25.166
  ntpd: reply from 185.121.25.166: offset:-0.423505 delay:0.010532 status:0x24 
strat:2 refid:0x62d6c755 rootdelay:0.002914 reach:0x03
  
  tc@PCP-XLR-LMS:~$ sudo /usr/sbin/ntpd -n -q -d -p pool.ntp.org
  ntpd: 'pool.ntp.org' is 193.150.34.2
  ntpd: sending query to 193.150.34.2
  Alarm clock
  
  tc@PCP-XLR-LMS:~$ sudo /usr/sbin/ntpd -n -q -d -p pool.ntp.org
  ntpd: 'pool.ntp.org' is 193.150.34.2
  ntpd: sending query to 193.150.34.2
  ntpd: reply from 193.150.34.2: offset:-0.429285 delay:0.011036 status:0x24 
strat:3 refid:0x82875c43 rootdelay:0.006012 reach:0x01
  ntpd: sending query to 193.150.34.2
  ntpd: reply from 193.150.34.2: offset:-0.429648 delay:0.010419 status:0x24 
strat:3 refid:0x82875c43 rootdelay:0.006012 reach:0x03
  
  tc@PCP-XLR-LMS:~$ sudo /usr/sbin/ntpd -n -q -d -p pool.ntp.org
  ntpd: 'pool.ntp.org' is 193.150.34.2
  ntpd: sending query to 193.150.34.2
  Alarm clock
  
  tc@PCP-XLR-LMS:~$ sudo /usr/sbin/ntpd -n -q -d -p pool.ntp.org
  ntpd: 'pool.ntp.org' is 185.83.169.27
  ntpd: sending query to 185.83.169.27
  Alarm clock
  
--------------------


I'm mystified by the "alarm clock" responses! 
https://dev.archive.openwrt.org/ticket/14541.html seems to imply that
it's some form of timeout but I don't understand it.

Can anyone decode it?


------------------------------------------------------------------------
mr-b's Profile: http://forums.slimdevices.com/member.php?userid=10044
View this thread: http://forums.slimdevices.com/showthread.php?t=112335

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to