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
compiler-construction
sendgrid
image
coq
webpack
proxy
nullpointerexception
sharepoint-designer
packages
survey
installshield
pivotal-cloud-foundry
indesign
android-youtube-api
cloudkit
dax
mapserver
leiningen
seaborn
django-cms
firefox-webextensions
swingx
reverse-proxy
physics-engine
arabic
p-value
centos6.5
dynamic-featured-image
traffic
ping
kendo-datasource
lightswitch-2013
bosh
oracle-fusion-middleware
ioio
html5-fullscreen
ios5
plsql-psp
libraries
hilbert-curve
azure-ml
glew
ibpy
businessworks
sencha-touch-2.3
clean-architecture
veracode
gabor-filter
aurelia-validation
composite-key
feeds
np-complete
media-player
flutterwave
background-service
google-cdn
messenger
root-framework
google-feed-api
photobucket
xna-4.0
jms2
thredds
census
sonarqube5.1.2
bigbluebutton
npapi
modalpopup
google-style-guide
nsbutton
internet-connection
mysql-error-1062
balanced-payments
uv-mapping
.aspxauth
opcache
interface-orientation
multipage
newtonscript
hosts-file
stage
qt-jambi
self-extracting
jmock
dbal
ctp4
ugc
data-acquisition

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