Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

ntpd configuration

3 réponses
Avatar
pawel.cern
Hi,

I have simple ntpd server which takes time from only one reference
clock source. Clock source may fail. In such case reference clock
plugin returns CEVNT_FAULT to ntpd. The goal is to stop delivering
time to clients in such case (sounds weird, but I need exactly such
behavior). Unfortunately when situation mentioned happens, ntpd still
answers queries delivering approximated time. Do you know what extra
options / settings I need?

Paul

3 réponses

Avatar
Fabien LE LEZ
Wrong newsgroup. fr.* are French-speaking newsgroups.
Try the comp.os.linux.* newsgroups. Maybe comp.os.linux.setup?
Avatar
Sergio
Le Tue, 27 Mar 2012 19:33:33 +0200, Fabien LE LEZ a écrit :

Wrong newsgroup. fr.* are French-speaking newsgroups. Try the
comp.os.linux.* newsgroups. Maybe comp.os.linux.setup?



...or pl.comp.os.linux.* (he seems to write from poland).

--
Serge http://leserged.online.fr/
Mon blog: http://cahierdesergio.free.fr/
Soutenez le libre: http://www.framasoft.org
Avatar
Philippe Naudin
Le mer. 28 mars 2012 05:24:18 CEST, Sergio a écrit:

Le Tue, 27 Mar 2012 19:33:33 +0200, Fabien LE LEZ a écrit :

> Wrong newsgroup. fr.* are French-speaking newsgroups. Try the
> comp.os.linux.* newsgroups. Maybe comp.os.linux.setup?

...or pl.comp.os.linux.* (he seems to write from poland).



Bah... fcolc est bien calme en ce moment, on devrait plutôt remercier
le visiteur occasionnel. Ici, sans horloge externe :

read -a NTP <<< $(/usr/sbin/ntpdc -np 127.0.0.1 2>&1 | tail -1)

grep -q "No route to host" <<< "${NTP[*]}" && echo 'Paniiique !'

[ "0${NTP[4]}" -eq 0 ] && echo "Serveur présent mais inaccessible"

[ -n "${NTP[6]%.*}" ] && [ "${NTP[6]%.*}" -gt 0 ]
&& echo "Serveur présent, mais client pas à l'heure"

... et il est trop tard pour chercher à améliorer les tests.

Bonne nuit,


--
Philippe Naudin