Re: NTP on NonStop



On 11 Feb., 17:24, "Joachim Schmitz" <nospam.j...@xxxxxxxxxxxxxxxxxx>
wrote:
wbreidbach wrote:
On 11 Feb., 09:26, wbreidbach <wolfgang.breidb...@bv-
zahlungssysteme.de> wrote:
On 10 Feb., 18:10, "Joachim Schmitz" <nospam.j...@xxxxxxxxxxxxxxxxxx>
wrote:

wbreidbach wrote:
On 10 Feb., 15:11, "Joachim Schmitz"
<nospam.j...@xxxxxxxxxxxxxxxxxx> wrote:
wbreidbach wrote:
Has anybody tried to use the NonStop as NTP-client? I installed
the
4.2 version from ITUGLIB and everything works fine with one
exception: The clock is not corrected.
We are using an NTP server and ntpq -p says
remote refid st t when poll reach delay
offset jitter
===========================================================================­
=== 192.168.1.248 .GPS. 1 u 14 64 1 11.652
324213. 0.015
192.168.1.249 .GPS. 1 u 11 64 1 7.385
324215. 0.015

My config-file:

driftfile /var/log/ntp.drift
logfile /var/log/ntp.log
server 192.168.1.250
server 192.168.1.251
fudge 192.168.1.250 stratum 0
fudge 192.168.1.251 stratum 0

Did i miss something?

Hmm, this could mean that floss_adjtime() is not working properly?
Gets called in ntp-4.2.0/libntp/systime.c and
ntp-4.2.0/ntpdate/ntpdate.c floss_adjtime() uses SETSYSTEMCLOCK(),
it insists on the 2nd arg to be NULL and the 1st to be non-NULL.

Or the getitimer() replament in ntp-4.2.0/ntpd/ntp_timer.c and
ntp-4.2.0/ntpdate/ntpdate.c

Maybe this helps in debugging it?

bye, Jojo- Zitierten Text ausblenden -

- Zitierten Text anzeigen -

Meanwhile ntp has started correcting the time, maybe I had to be
more

Ah good, phew...

patient. But it seems the the clock corrections, 1 each second, are
very very small, so I see masses of "system time adjusted".

Initially, after coldload, you'd ned to set the time correctly using
ntpdate, then use nptd to keep it current

Just one thing that might be interesting: The config-file ntp.conf
should not be in /etc but in /usr/local/etc.

Hmm, as per the README_FLOSS and the source
ntp-4.2.0/include/ntp_config.h it should be in /usr/local/etc:
...
#ifndef CONFIG_FILE
# ifndef SYS_WINNT
#ifdef __TANDEM
# define CONFIG_FILE "/usr/local/etc/ntp.conf"
#else
# define CONFIG_FILE "/etc/ntp.conf"
#endif
# else /* SYS_WINNT */
# define CONFIG_FILE "%windir%\\system32\\drivers\\etc\\ntp.conf"
# define ALT_CONFIG_FILE "%windir%\\ntp.conf"
...

Are you saying it doesn't work that way?

Bye, Jojo- Zitierten Text ausblenden -

- Zitierten Text anzeigen -

ntpd works fine but the corrections are somewhat "homeopathic" with
very small doses.
Using ntpdate -b returns an error, either "bind() fails: Connection
reset by remote host" or "Memory fault".
Concerning the configfile: If you are looking for information in the
net, most people are referring to a configfile /etc/ntp.conf.

I am still working on the ntpdate thing.- Zitierten Text ausblenden -

- Zitierten Text anzeigen -

ntpd is running but it is flooding EMSLOG with "system time adjusted"
messages even having only a difference of 0.015 seconds to the ntp
server.

Is that what using SETSYSTEMCLOCK() gives us?

Bye, Jojo- Zitierten Text ausblenden -

- Zitierten Text anzeigen -

Yes, that is what I think. The problem is that it needs days to
correct 1 second.
.



Relevant Pages

  • Re: NTP on NonStop
    ... We are using an NTP server and ntpq -p says ... ntpd works fine but the corrections are somewhat "homeopathic" with ... Using ntpdate -b returns an error, ... Concerning the configfile: If you are looking for information in the ...
    (comp.sys.tandem)
  • Re: NTP on NonStop
    ... We are using an NTP server and ntpq -p says ... #ifndef CONFIG_FILE ... Using ntpdate -b returns an error, ... Concerning the configfile: If you are looking for information in the ...
    (comp.sys.tandem)
  • Re: NTP on NonStop
    ... We are using an NTP server and ntpq -p says ... ntpd works fine but the corrections are somewhat "homeopathic" with ... Using ntpdate -b returns an error, ... Concerning the configfile: If you are looking for information in the ...
    (comp.sys.tandem)
  • Re: ntp problem
    ... I set my server time to NTP server using the command ntpdate but when I ... to keep the time connected to NTP after the restart? ... posters clock setting is borked. ...
    (Fedora)
  • Re: time acuracy
    ... external ntp server. ... In my opinion it's about exactly as easy or simple to use ntpdate in a cron ... Nor is there any cpu/ram penalty by having ntpd running. ... server that is geographically close to you, ...
    (comp.unix.sco.misc)