ntpq state

03/05/2009 - 19:40 von Helmut Schneider | Report spam
Hi,

# ntpq -c "host localhost" -c rv
current host set to localhost
assID=0 statusf4 leap_none, sync_lf_clock, 15 events,
event_peer/strat_chg,
version="ntpd 4.2.4p5-a Fri Jan 16 01:56:19 UTC 2009 (1)",
processor="i386", system="FreeBSD/7.1-RELEASE-p5", leap, stratum=1,
precision=-19, rootdelay=0.000, rootdispersionG9.981, peer472,
refidÜFa, reftime=cda85500.1a830613 Sun, May 3 2009 19:38:08.103,
poll=6, clock=cda8555e.0c33d84e Sun, May 3 2009 19:39:42.047, state=4,
offset=-35.677, frequency=-45.456, jitter=1.789, noise=3.625,
stability=0.397, tai=0
#

Was bedeutet "state=4"? Ich denke "in sync", aber wo kann ich Genaueres
nachlesen?

Danke und Gruß, Helmut

No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn
 

Lesen sie die antworten

#1 mlelstv
04/05/2009 - 08:10 | Warnen spam
"Helmut Schneider" writes:

# ntpq -c "host localhost" -c rv
current host set to localhost
assID=0 statusf4 leap_none, sync_lf_clock, 15 events,
event_peer/strat_chg,
version="ntpd 4.2.4p5-a Fri Jan 16 01:56:19 UTC 2009 (1)",
processor="i386", system="FreeBSD/7.1-RELEASE-p5", leap, stratum=1,
precision=-19, rootdelay=0.000, rootdispersionG9.981, peer472,
refidÜFa, reftime=cda85500.1a830613 Sun, May 3 2009 19:38:08.103,
poll=6, clock=cda8555e.0c33d84e Sun, May 3 2009 19:39:42.047, state=4,
offset=-35.677, frequency=-45.456, jitter=1.789, noise=3.625,
stability=0.397, tai=0
#

Was bedeutet "state=4"? Ich denke "in sync", aber wo kann ich Genaueres
nachlesen?



In ntpd/ntp_loopfilter.c:

/*
* Clock discipline state machine. This is used to control the
* synchronization behavior during initialization and following a
* timewarp.
*
* State < step > step Comments
* * NSET FREQ step, FREQ no ntp.drift
*
* FSET SYNC step, SYNC ntp.drift
*
* FREQ if (mu < 900) if (mu < 900) set freq
* ignore ignore
* else else
* freq, SYNC freq, step, SYNC
*
* SYNC SYNC if (mu < 900) adjust phase/freq
* ignore
* else
* SPIK
*
* SPIK SYNC step, SYNC set phase
*/
#define S_NSET 0 /* clock never set */
#define S_FSET 1 /* frequency set from the drift file */
#define S_SPIK 2 /* spike detected */
#define S_FREQ 3 /* frequency mode */
#define S_SYNC 4 /* clock synchronized */

Michael van Elst
Internet:
"A potential Snark may lurk in every tree."

Ähnliche fragen