Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ntpdate issue ....

On 04/04/15 17:03, Takahiro HAYASHI wrote:

On 2015/04/05 04:28, William A. Mahaffey III wrote:

.... I use a combination of ntpdate & adjtime to maintain time on my LAN. Here is output from my incumbent time server:

[root@athloncube:/etc, Sat Apr 04, 02:21 PM] 1002 # ntpdate -q fly.hiwaay.net | awk '{printf $6 " "}' -374.785763, time [root@athloncube:/etc, Sat Apr 04, 02:21 PM] 1002 # uname -a Linux athloncube #1 SMP Wed Nov 23 13:07:52 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@athloncube:/etc, Sat Apr 04, 02:23 PM] 1003 #

& from my RPi, hopefully soon to replace the incumbent:

rpi # date
Sat Apr  4 14:30:17 UTC 2015
rpi # ntpdate -q fly.hiwaay.net | awk '{printf $6 " "}'
17326.729876, time rpi #

man of ntpdate says:
 -q      Query only - don't set the clock.

Try run without -q.

Remember, I am skewing the time myself before setting it w/ adjtime. I add an offset (375 sec.), *then* call adjtime to get my desired local LAN time. If I wanted std. time, I wouldn't need any of this .... ahhhh .... *crap* at all. It is only my desire to have my LAN reflect slightly fast time (like I have all my clocks set) that necessitate the extra complexity :-/ .... To recap, I get (NTP stratum 3) time from my ISP via ntpdate, add 375 sec., then call adjtime to set that time. then run ntpd as an undisciplined local clock to serve the rest of the LAN ....

rpi # date
Sat Apr  4 14:30:31 UTC 2015
rpi # uname -a
NetBSD rpi 7.0_BETA NetBSD 7.0_BETA (RPI.201503272230Z) evbarm

Note that netbsd-7 does not support ds323[12] (current does).

Ahhhhh .... good to know. Any idea when that will make it into NetBSD-7 ?

rpi #

i.e. the value provided by ntpdate on the RPi looks wrong to me. The -375-ish sec. value from the incumbent is correct. Please advise & do not hesitate to ask for any more info req'd. TIA & keep up the good work.


	William A. Mahaffey III


	"The M1 Garand is without doubt the finest implement of war
	 ever devised by man."
                           -- Gen. George S. Patton Jr.

Home | Main Index | Thread Index | Old Index