status


How to read the ntptime status code?


From the NTP advanced configuration page there is the following text
windl#elf:~ > ntptime
ntp_gettime() returns code 0 (OK)
time bd6b9cf2.9c3c6c60 Thu, Sep 14 2000 20:52:34.610, (.610297702),
maximum error 3480 us, estimated error 0 us.
ntp_adjtime() returns code 0 (OK)
modes 0x0 (),
offset 1.658 us, frequency 17.346 ppm, interval 128 s,
maximum error 3480 us, estimated error 0 us,
status 0x2107 (PLL,PPSFREQ,PPSTIME,PPSSIGNAL,NANO),
time constant 6, precision 3.530 us, tolerance 496 ppm,
pps frequency 17.346 ppm, stability 0.016 ppm, jitter 1.378 us,
intervals 57, jitter exceeded 29, stability exceeded 0, errors 0.
Followed by The first thing you should look at is the status (0x2107 in our case). The magic words in parentheses explain the meaning of the individual bits.
They list 5 bit positions, but provide a 4 digit hex status code, which translates into 16 bits. Which are the bits that represent the keywords in parenthesis, and what do the other bits mean?
Here is list of the NTP status codes
STA_PLL 0x0001 enable PLL updates (rw)
STA_PPSFREQ 0x0002 enable PPS freq discipline (rw)
STA_PPSTIME 0x0004 enable PPS time discipline (rw)
STA_FLL 0x0008 select frequency-lock mode (rw)
STA_INS 0x0010 insert leap (rw)
STA_DEL 0x0020 delete leap (rw)
STA_UNSYNC 0x0040 clock unsynchronized (rw)
STA_FREQHOLD 0x0080 hold frequency (rw)
STA_PPSSIGNAL 0x0100 PPS signal present (ro)
STA_PPSJITTER 0x0200 PPS signal jitter exceeded (ro)
STA_PPSWANDER 0x0400 PPS signal wander exceeded (ro)
STA_PPSERROR 0x0800 PPS signal calibration error (ro)
STA_CLOCKERR 0x1000 clock hardware fault (ro)
STA_NANO 0x2000 resolution (0 = us, 1 = ns) (ro)
Source: ftp://ftp.ripe.net/test-traffic/ROOT/libDelay/Delay.h
From your listed example: status 0x2107 (PLL,PPSFREQ,PPSTIME,PPSSIGNAL,NANO).
Logically 'OR' the status bit codes together 0x0001 | 0x0002 | 0x0004 | 0x0100 | 0x2000 and result is 0x2107.
Some additional descriptions of the status codes are found here:
http://man7.org/linux/man-pages/man2/adjtimex.2.html

Related Links

How to read the ntptime status code?
Byobu custom status notifications are separated by two spaces
When does PL080 DMAC generate error interupt?
When i send a ZPL command to Zebra printer via serial port, it will return a message or not?
How can I get storm topology status via java code?
What does Ollydbg termination code 0 and 1 means?
How to find execution status of a service on Remote computer?
meaning of kannel status
UIStatusBarStyleBlackTranslucent does not work in iOS 6
DATASTAGE : Job status information for all jobs on DataStage 7.5
PSI - Statusing Web Service - Results not as expected
How to get skype status as number or text? mystatus.skype.com doesnt work
yahoo messenger status checker code?
a4j:commandLink working intermittently
Redmine, can't see new Issue Status
Is there a simple app for pinging a list of websites?

Categories

HOME
log4j
tizen
ngrx
vmware
adb
razor
electronics
node-pdfkit
rascal
qt-creator
nstableview
remote-access
percona
ghc
graphlab
footer
oracle-coherence
jqwidget
contextmenu
nodatime
jprofiler
grails3
immutable.js
physics-engine
jquery-ajaxq
wkwebview
sparse-matrix
selectedindexchanged
bpel
functor
contact-form
jspresso
hexo
wpf-controls
nxlog
midl
slick-3.0
websphere-mq-fte
avconv
xml-documentation
upstart
komodoedit
dds
darcs
tactic
media-player
namecoin
capacity
epson
spring-cache
redundancy
smart-table
topbeat
android-fonts
google-web-starter-kit
player
websitepanel
dataview
independentsoft
system.management
netmq
hsv
cannon.js
simple-framework
fouc
dukescript
nsight
oberon
pick
android-nested-fragment
relocation
internet-connection
concurrent-collections
html5-notifications
aqtime
soundtouch
dotnetnuke-5
flash-builder4.5
unc
libstdc++
first-responder
online-compilation
chrono
bubble-chart
osql
gcj
joyent
table-footer
mysql-error-1005
lang
xsdobjectgen
filtered-index
nhibernate.search
preference
rescale
defensive-programming
multiple-languages
django-notification

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App