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

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] questions] status information after ntpd -q

2014-02-04 Thread Karel Sandler
on remark 4 : protostats instead of clockstats do work. Clockstats do work, but you should have a clock (refclock). -- 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 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: # ntpd -q

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 time as a

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

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

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

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

2014-02-04 Thread joeri delvoy
hello Karel, thanks, but i do not understand your remark: on my device i have an rtc. do you mean i have to make a link in the config to /dev/rtc? (and what about a refclock on a pc?) ___ questions mailing list questions@lists.ntp.org

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 st...@ntp.org 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] questions] status information after ntpd -q

2014-02-04 Thread joeri delvoy
Hello Karel, you can disreguard my question regarding reference clocks. As stated in my first post , i need a ntpd command to be able to synchronize to a server with immediate response on the status of the command, so a hardware peace like a reference clock is definitely not part of my client

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

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

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

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

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

[ntp:questions] sntp status word or exit status

2014-02-04 Thread joeri delvoy
When using sntp, is there a status word available somewhere from which i can translate what the exact error is? I have f.e. the following output on the terminal: ...is not authentic. Will discard it. and Received no useable packet from ... However, i prefer polling a status word (like in

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

2014-02-04 Thread William Unruh
On 2014-02-04, joeri delvoy boterhoeks...@gmail.com wrote: hello Karel, thanks, but i do not understand your remark: on my device i have an rtc. do you mean i have to make a link in the config to /dev/rtc? (and what about a refclock on a pc?) A refclock is an external source of direct UTC

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? http://www.eecis.udel.edu/~mills/ntp/html/sntp.html -- E-Mail Sent to this address blackl...@anitech-systems.com will be added to the

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/stable

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? http://www.eecis.udel.edu/~mills/ntp/html/sntp.html Those pages are

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

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? http://www.eecis.udel.edu/~mills/ntp/html/sntp.html Those pages are a) slightly out of date, and

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?