how to use ntp in busybox
Michael D. Setzer II
mikes at kuentos.guam.net
Mon Nov 23 05:11:06 UTC 2015
Not sure if this would do what you want, but I've used it with busybox setup.
http://doolittle.icarus.com/ntpclient/
On 22 Nov 2015 at 20:50, Isaac Dunham wrote:
Date sent: Sun, 22 Nov 2015 20:50:29 -0800
From: Isaac Dunham <ibid.ag at gmail.com>
To: "Wei, Catherine" <Catherine.Wei at arris.com>
Subject: Re: how to use ntp in busybox
Copies to: "busybox at busybox.net" <busybox at busybox.net>
> On Mon, Nov 23, 2015 at 01:40:29AM +0000, Wei, Catherine wrote:
> > Hi:
> > In our system, we're considering if we could use ntp in busybox to
> > replace the ntp supported by ntp.org, which has large footprint, so I'm
> > doing some investigation about ntp in busybox recently but I met some
> > problems. I found that there's only ntpd in busybox, no ntpdate and ntpq.
> > In our current system, we have a ntp wrapper to control ntp
> > behavior based on our requirement. We use ntpdate to sync time when
> > system is started, and we use ntpq to monitor and control the ntpd
> > behavior. For example:
> > 1. After ntpdate synced time, use ntpq to enable ntp.
> > 2. When we add our own ntp server to the server list, we will use
> > something like this "ntpq -c "keyid id" -c "passwd pwd" -c ":config
> > server 10.172.1.1 minpoll 3 maxpoll 4 burst"
> >
> > I don't know if there's some tools related to ntpq in busybox, so
> > we can remove the current ntp in our system and use ntpd in busybox.
> > Appreciate your quick response, thank you very much.
> >
>
> Busybox ntp does not support any runtime configuration; ntpq corresponds
> to unimplemented functionality.
>
> ntpdate is not provided, but equivalent behavior can be obtained with
> ntpd -q -p PEER [-p PEER2 ...]
>
> OpenNTPD, from which Busybox ntpd came, provides an "ntpctl" command,
> but it's misnamed: it only displays information from ntpd.
>
> You might get further looking at NTPsec.
>
>
> HTH,
> Isaac Dunham
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
+----------------------------------------------------------+
Michael D. Setzer II - Computer Science Instructor
Guam Community College Computer Center
mailto:mikes at kuentos.guam.net
mailto:msetzerii at gmail.com
http://www.guam.net/home/mikes
Guam - Where America's Day Begins
G4L Disk Imaging Project maintainer
http://sourceforge.net/projects/g4l/
+----------------------------------------------------------+
http://setiathome.berkeley.edu (Original)
Number of Seti Units Returned: 19,471
Processing time: 32 years, 290 days, 12 hours, 58 minutes
(Total Hours: 287,489)
BOINC at HOME CREDITS
ROSETTA 37089233.578828 | SETI 68076311.344292
ABC 16613838.513356 | EINSTEIN 78981331.546694
More information about the busybox
mailing list