Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NTP checks for config, status and time #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

braz
Copy link
Contributor

@braz braz commented Jan 21, 2015

Added a new section to capture NTP details for configuration, status and the time details if it is running.

braz added 2 commits January 21, 2015 15:15
Added a new section to capture NTP details for configuration, status and the time details if it is running.
Hi Kev,

Whilst ntptime isn't exactly the same it does indicate that NTP is on / running  with the code 0 (OK).

Here's the sample output from TSPROJ-612 for just ntptime.

[ec2-user@ip-10-36-183-212 ~]$ ntptime
ntp_gettime() returns code 0 (OK)
  time d9e34c90.948f42c8  Tue, Nov  3 2015 10:09:04.580, (.580311333),
  maximum error 1005015 us, estimated error 53 us, TAI offset 0
ntp_adjtime() returns code 0 (OK)
  modes 0x0 (),
  offset 91.282 us, frequency -25.108 ppm, interval 1 s,
  maximum error 1005015 us, estimated error 53 us,
  status 0x2001 (PLL,NANO),
  time constant 6, precision 0.001 us, tolerance 500 ppm,
@braz
Copy link
Contributor Author

braz commented Nov 3, 2015

Hi Kev,

Added ntptime which is a good enough check to see if NTP is on/off.

Thanks
Eoin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants