[ntp:questions] status information after ntpd -q

2014-02-03 Thread joeri delvoy
Hello, i would like to use the command "ntpd -q" to synchronize with a server once, but i need some feedback from the command about the status. I receive the server name and configuration (like if authentication is to be used, and the according keys) from the user of my program, so i need to be a

Re: [ntp:questions] status information after ntpd -q

2014-02-03 Thread Charles Swiger
Hi-- On Feb 3, 2014, at 2:58 AM, joeri delvoy wrote: > i would like to use the command "ntpd -q" to synchronize with a server once, > but i need some feedback from the command about the status. ntpd was designed and is intended to run all of the time as a daemon, but you can do what you've asked

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread joeri delvoy
Hello Chuck, thanks for your answers already. I've experimented some more, and have extra remarks: 4. when i try to enable stats with the following config, ntp does not generate the stats: content of the ntp.conf: statsdir /var/log/ntpstats/ filegen clockstats file clockstats type pid enable (ty

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread joeri delvoy
on the above remark 4 i forgot to mention the line "statistics clockstats" in the ntp.conf file ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread joeri delvoy
on remark 4 : protostats instead of clockstats do work. ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread Sanal, Arjun (NSN - IN/Bangalore)
>> i would like to use the command "ntpd -q" to synchronize with a server once, >> but i need some feedback from the command about the status. > > ntpd was designed and is intended to run all of the time as a daemon, > but you can do what you've asked for by setting explicit logging path like: > >

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread Miroslav Lichvar
On Tue, Feb 04, 2014 at 10:29:29AM +, Sanal, Arjun (NSN - IN/Bangalore) wrote: > > >> i would like to use the command "ntpd -q" to synchronize with a server > >> once, > >> but i need some feedback from the command about the status. > > > > ntpd was designed and is intended to run all of the

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread joeri delvoy
additionally on remark 6: next to the status word 8024 there is the event message code 84 in my protostats. I do not find an explanation in http://doc.ntp.org/4.2.6p2/decode.html about the event message code 84. ___ questions mailing list questions@lis

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread joeri delvoy
6. since the logfile of the ntpd command does not give info on the status of the command, i'm trying to use the stats to get my info: in the protostats i do not understand what the status word means: i have a status word 8024 next to the message "reachable". (it is not clear from the docs http://d

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread joeri delvoy
7. when you specify wrong configuration, the ntpd -q process hangs. How do i specify a timeout? sudo ntpd -q -c /etc/ntp.conf -l /tmp/ntp_logfile.txt -n and in my config file i have added a keyId (key 1) next to my server : the keyId is a none-existing reference, and there is no valid reference t

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread Harlan Stenn
Just to ask, why are you using ntpd -q instead of sntp (from ntp-dev)? -- Harlan Stenn http://networktimefoundation.org - be a member! ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread Karel Sandler
and what about a refclock on a pc? Clockstats do work for a server stratum-1. In this case you should have a refclock, for example GPS. -- Karel ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread Karels Sandler
and what about a refclock on a pc? Clockstats do work for a servers stratum-1. In this case, you should have a refclock, for example GPS. -- Karel ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread joeri delvoy
because ntpdate (which i use now) is depricated and has no possibility to pass a key for authentication (if applicable, configurable by the user) , and should be replaced by ntpd, and therefore i ended up at ntpd. I don't know sntp and don't know if is serves my needs to synchronise once and ge

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread joeri delvoy
the docs (http://doc.ntp.org/4.2.6p2/sntp.html) mention exit status, but i do not see a link towards a list of exit codes. If i use sntp, where can i find the following info: > server unreachable > server timeout > authentication failed > wrong key/keysfile

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread joeri delvoy
sntp is known on my PC (Ubuntu), but when i install the ntp-dev package on my device (ntp-dev_4.2.6p3-r1.6_armv5te.ipk), it seems not to contain the sntp command. ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/question

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread joeri delvoy
nevermind, it seems to be part of the ntp-utils, not of the ntp-dev. ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread joeri delvoy
does sntp force the time of the system clock automatically when run as root, or do you need to add an optional parameter to do so? ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread joeri delvoy
the reason why i ask this, is because if i execute the sntp command several times, the offset remains around -621 : 4 Feb 15:25:33 sntp[19682]: Started sntp 2014-02-04 15:25:33.880851 (+) -621.641757 +/- 0.053009 secs 4 Feb 15:28:24 sntp[19727]: Started sntp 2014-02-04 15:28:24.620626 (+000

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread David Lord
joeri delvoy wrote: does sntp force the time of the system clock automatically when run as root, or do you need to add an optional parameter to do so? You need the descriptions for the exact ntpd release for your platform. eg. NetBSD-6 i386, ntp-dev-4.2.7p410 By default sntp displays the cloc

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread joeri delvoy
regarding the options of the sntp: -t Num timeoutSpecify the number of seconds to wait for broadcasts Can this also be used as a timeout if no response is coming when using unicast? (in the docs http://www.eecis.udel.edu/~mills/ntp/html/sntp.html there is a uctimeout specified, but that o

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread E-Mail Sent to this address will be added to the BlackLists
joeri delvoy wrote: > does sntp force the time of the system clock automatically when run as root, > or do you need to add an optional parameter to do so? -- E-Mail Sent to this address will be added to the BlackLists. __

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread Harlan Stenn
joeri delvoy writes: > sntp is known on my PC (Ubuntu), but when i install the ntp-dev package on my > device (ntp-dev_4.2.6p3-r1.6_armv5te.ipk), it seems not to contain the sntp > command. That's not the ntp-dev branch. ntp-dev numbers have an odd "minor number". 4.2.6 is an even number/stabl

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread Harlan Stenn
joeri delvoy writes: > nevermind, it seems to be part of the ntp-utils, not of the ntp-dev. You want sntp from ntp-dev (4.2.7), not from 4.2.6. H ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread Harlan Stenn
E-Mail Sent to this address will be added to the BlackLists writes: > joeri delvoy wrote: > > does sntp force the time of the system clock automatically when run as root > , > > or do you need to add an optional parameter to do so? > > Those

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread David Lord
joeri delvoy wrote: the reason why i ask this, is because if i execute the sntp command several times, the offset remains around -621 : 4 Feb 15:25:33 sntp[19682]: Started sntp 2014-02-04 15:25:33.880851 (+) -621.641757 +/- 0.053009 secs 4 Feb 15:28:24 sntp[19727]: Started sntp 2014-02-04

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread E-Mail Sent to this address will be added to the BlackLists
Harlan Stenn wrote: > BlackLists writes: >> joeri delvoy wrote: >>> does sntp force the time of the system clock automatically when run as root >> , >>> or do you need to add an optional parameter to do so? >> >> > > Those pages are a) slightly

Re: [ntp:questions] status information after ntpd -q

2014-02-04 Thread Harlan Stenn
E-Mail Sent to this address will be added to the BlackLists writes: > Harlan Stenn wrote: > > BlackLists writes: > >> joeri delvoy wrote: > >>> does sntp force the time of the system clock automatically when run as ro > ot > >> , > >>> or do you need to add an optional parameter to do so? > >> > >

Re: [ntp:questions] status information after ntpd -q

2014-02-05 Thread joeri delvoy
Hello Harlan, my package is coming from : http://feeds.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv5te/base/ I don't see an 4.2.7 there, and would not know where to get a correct version of 4.2.7 which is suitable for my environment, nor i do know how to build such a package myself.

Re: [ntp:questions] status information after ntpd -q

2014-02-06 Thread joeri delvoy
Hello Harlan, i'm one step further, but struggling again: 1. i downloaded the source code from ntp.org 2. did a cross-compile for arm with .././configure --target=arm --build=amd64 --prefix=/tmp/ntp/ --program-prefix=armv5te 3. instead of "make install" i need to wrap the code into a ipk package,

Re: [ntp:questions] status information after ntpd -q

2014-02-06 Thread joeri delvoy
I took a look into the older ipk package ntp-utils, and saw that only /usr/bin/sntp and /usr/bin/ntp-keygen is present in the ipk file, so i decided to just copy the newly generated sntp onto my device in /usr/bin. But when i try to start it, i get the following error: /usr/bin/sntp: line 7: syn

Re: [ntp:questions] status information after ntpd -q

2014-02-06 Thread Harlan Stenn
joeri delvoy writes: > Hello Harlan, > > i'm one step further, but struggling again: > 1. i downloaded the source code from ntp.org > 2. did a cross-compile for arm with .././configure --target=arm --build=amd64 > --prefix=/tmp/ntp/ --program-prefix=armv5te > 3. instead of "make install" i need t

Re: [ntp:questions] status information after ntpd -q

2014-02-06 Thread E-Mail Sent to this address will be added to the BlackLists
Harlan Stenn wrote:> BlackLists writes: >> Harlan Stenn wrote: >>> BlackLists writes: joeri delvoy wrote: > does sntp force the time of the system clock automatically > when run as root, > or do you need to add an optional parameter to do so?

Re: [ntp:questions] status information after ntpd -q

2014-02-07 Thread joeri delvoy
hello Harlan, who do i need to contact when i have trouble with the compilation of the code i downloaded from ntp.org? Because when i try to run the sntp that was produced , i get line 7: syntax error: "(" unexpected and also my config.log contains fatal errors: conftest.c:12:28: fatal error:

Re: [ntp:questions] status information after ntpd -q

2014-02-07 Thread David Woolley
On 07/02/14 15:33, joeri delvoy wrote: and also my config.log contains fatal errors: It should do. Config runs lots of test compilations to find out what works and what doesn't. I suspect the non-existent header file is testing whether it can detect when headers really are missing.

Re: [ntp:questions] status information after ntpd -q

2014-02-07 Thread William Unruh
On 2014-02-07, joeri delvoy wrote: > hello Harlan, > > who do i need to contact when i have trouble with the compilation of the code > i downloaded from ntp.org? > > Because when i try to run the sntp that was produced , i get > line 7: syntax error: "(" unexpected That suggests it is a bash sc

Re: [ntp:questions] status information after ntpd -q

2014-02-07 Thread David Taylor
On 07/02/2014 15:33, joeri delvoy wrote: hello Harlan, who do i need to contact when i have trouble with the compilation of the code i downloaded from ntp.org? [] You could try the Hackers mailing list: hack...@lists.ntp.org http://lists.ntp.org/listinfo/hackers What OS? -- Cheers, David We

Re: [ntp:questions] status information after ntpd -q

2014-02-07 Thread William Unruh
On 2014-02-07, William Unruh wrote: > On 2014-02-07, joeri delvoy wrote: >> hello Harlan, >> >> who do i need to contact when i have trouble with the compilation of the >> code i downloaded from ntp.org? >> >> Because when i try to run the sntp that was produced , i get >> line 7: syntax error:

Re: [ntp:questions] status information after ntpd -q

2014-02-07 Thread Steve Kostecke
On 2014-02-07, William Unruh wrote: > Some developement package missing from your computer? You tell us > nothing about the operating system, the computer architecture or > anything else. The OP has provided some clues in previous articles. e.g. in 2c03f8a3-ebc9-4f45-a7de-75b843554...@googlegr

Re: [ntp:questions] status information after ntpd -q

2014-02-07 Thread Harlan Stenn
joeri delvoy writes: > hello Harlan, > > who do i need to contact when i have trouble with the compilation of the code > i downloaded from ntp.org? You can ask here, or you can ask on freenode IRC on the #ntp or #ntp-dev channels, or you can open a bug report. > Because when i try to run the sn

Re: [ntp:questions] status information after ntpd -q

2014-02-07 Thread Harlan Stenn
David Taylor writes: > On 07/02/2014 15:33, joeri delvoy wrote: > > hello Harlan, > > > > who do i need to contact when i have trouble with the compilation of the co > de i downloaded from ntp.org? > [] > > You could try the Hackers mailing list: > > hack...@lists.ntp.org > http://lists.ntp.org/l

Re: [ntp:questions] status information after ntpd -q

2014-02-08 Thread Steve Kostecke
On 2014-02-08, Harlan Stenn wrote: >> What OS? See my analysis in slrnlfaa3b.nh4.koste...@stasis.kostecke.net > ... and are you cross-compiling? See the OP's build command-line in ca8a8da9-9082-436a-ad61-8ce62e147...@googlegroups.com -- Steve Kostecke NTP Public Services Project - http://s

Re: [ntp:questions] status information after ntpd -q

2014-02-08 Thread William Unruh
On 2014-02-08, Steve Kostecke wrote: > On 2014-02-08, Harlan Stenn wrote: > >>> What OS? > > See my analysis in slrnlfaa3b.nh4.koste...@stasis.kostecke.net Surely the OP should be telling us this, not you trying, who knows how successfully, to guess it. > >> ... and are you cross-compiling? >

Re: [ntp:questions] status information after ntpd -q

2014-02-09 Thread Steve Kostecke
On 2014-02-08, William Unruh wrote: > On 2014-02-08, Steve Kostecke wrote: > >> On 2014-02-08, Harlan Stenn wrote: >> What OS? >> >> See my analysis in slrnlfaa3b.nh4.koste...@stasis.kostecke.net > > Surely the OP should be telling us this, not you trying, who knows how > successfully, to

Re: [ntp:questions] status information after ntpd -q

2014-02-11 Thread joeri delvoy
Hello, just to be clear about how i compile the source code: 1. when i try out the program on my PC (Ubuntu) the code works just fine: > ./configure in the downloaded ntp-4.2.7p418 folder > then : make install DESTDIR=/tmp/ntp > within /tmp/ntp/usr/local/bin/ i can execute the sntp program witho

Re: [ntp:questions] status information after ntpd -q

2014-02-11 Thread joeri delvoy
system info: Linux rtuserver 2.6.32 #21 Fri Apr 6 11:50:35 CEST 2012 armv5tejl unknown and i don't think these header files matter, because they do not exist on my Ubuntu PC either , and there the compiled code works just fine. ___ questions mailing li

Re: [ntp:questions] status information after ntpd -q

2014-02-11 Thread David Taylor
On 11/02/2014 08:37, joeri delvoy wrote: Hello, just to be clear about how i compile the source code: 1. when i try out the program on my PC (Ubuntu) the code works just fine: ./configure in the downloaded ntp-4.2.7p418 folder then : make install DESTDIR=/tmp/ntp within /tmp/ntp/usr/local/bin/

Re: [ntp:questions] status information after ntpd -q

2014-02-11 Thread joeri delvoy
i installed it via: sudo apt-get install gcc-arm-linux-gnueabi but i did not specify it somewhere. Normally you have a parameter CROSS_COMPILE=arm-linux-gnueabi on the commandline, but since i used the configure of ntp, i did not know where to put that option.

Re: [ntp:questions] status information after ntpd -q

2014-02-11 Thread David Taylor
On 11/02/2014 10:48, joeri delvoy wrote: i installed it via: sudo apt-get install gcc-arm-linux-gnueabi but i did not specify it somewhere. Normally you have a parameter CROSS_COMPILE=arm-linux-gnueabi on the commandline, but since i used the configure of ntp, i did not know where to put that

Re: [ntp:questions] status information after ntpd -q

2014-02-11 Thread joeri delvoy
i have tried sevaral parameters, but i keep on getting the same error: ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- CC=arm-linux-gnueabi-gcc-4.7 CFLAGS=-I/usr/lib/gcc-cross/arm-linux-gnueabi/4.7.3/include ./configure --target=arm --build=x86_64 --host=arm --with-yielding_select=no and i get the err

Re: [ntp:questions] status information after ntpd -q

2014-02-11 Thread joeri delvoy
i have the feeling that there are files cached, because even if i remove the test in the configure script where i get the above error, and i run the above configure line again, i still get the yielding-error (and the error is not present anymore in the configure script) _

Re: [ntp:questions] status information after ntpd -q

2014-02-11 Thread David Woolley
On 11/02/14 08:42, joeri delvoy wrote: system info: Linux rtuserver 2.6.32 #21 Fri Apr 6 11:50:35 CEST 2012 armv5tejl unknown and i don't think these header files matter, because they do not exist on my Ubuntu PC either , and there the compiled code works just fine. They do matter. If nonexi

Re: [ntp:questions] status information after ntpd -q

2014-02-11 Thread Harlan Stenn
joeri delvoy writes: > Hello, > > just to be clear about how i compile the source code: > > 1. when i try out the program on my PC (Ubuntu) the code works just fine: >> ./configure in the downloaded ntp-4.2.7p418 folder >> then : make install DESTDIR=/tmp/ntp >> within /tmp/ntp/usr/local/bin/ i

Re: [ntp:questions] status information after ntpd -q

2014-02-11 Thread Harlan Stenn
Much more useful for everybody if the cross-compile information at: http://support.ntp.org/Dev/Cross-compilingNTP is kept complete and up-to-date. -- Harlan Stenn http://networktimefoundation.org - be a member! ___ questions mailing list questions@l

Re: [ntp:questions] status information after ntpd -q

2014-02-11 Thread William Unruh
On 2014-02-11, David Woolley wrote: > On 11/02/14 08:42, joeri delvoy wrote: >> system info: >> Linux rtuserver 2.6.32 #21 Fri Apr 6 11:50:35 CEST 2012 armv5tejl unknown >> >> and i don't think these header files matter, because they do not exist on my >> Ubuntu PC either , and there the compiled

Re: [ntp:questions] status information after ntpd -q

2014-02-11 Thread Harlan Stenn
joeri delvoy writes: > i have the feeling that there are files cached, because even if i > remove the test in the configure script where i get the above error, > and i run the above configure line again, i still get the > yielding-error (and the error is not present anymore in the configure > scrip

Re: [ntp:questions] status information after ntpd -q

2014-02-12 Thread David Woolley
On 12/02/14 01:06, William Unruh wrote: Surely you will agree that listing these are errors in the log file is at the very least confusing. There should at least be a warning message in the log saying the above. The configure log is full of errors. It works out what is available by compil

Re: [ntp:questions] status information after ntpd -q

2014-02-12 Thread joeri delvoy
even with the recommandation of http://support.ntp.org/Dev/Cross-compilingNTP , whenever i use the "--host" parameter, i get this with-yielding error. ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions

Re: [ntp:questions] status information after ntpd -q

2014-02-12 Thread Harlan Stenn
joeri delvoy writes: > > even with the recommandation of > http://support.ntp.org/Dev/Cross-compilingNTP, whenever i use the > "--host" parameter, i get this with-yielding error. OK, I'm traveling today. Somebody is going to have to find that autoconf macro and do some debugging with it. It is