Changes between Initial Version and Version 1 of NIntp


Ignore:
Timestamp:
Oct 22, 2019, 12:48:08 PM (6 years ago)
Author:
Suren A. Chilingaryan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NIntp

    v1 v1  
     1== NTP Configuration ==
     2 * Download and unzip packages
     3 * Install software
     4{{{
     5     opkg install *.ipk
     6}}}
     7 * Edit /etc/ntp.conf as described bellow
     8 * Restart service after editing configuration
     9{{{
     10    /etc/init.d/ntpd restart
     11}}}
     12 * Synchronization takes some time. Check status in about 10 minutes
     13
     14== Configuration Files ==
     15 * /etc/ntp.conf
     16{{{
     17driftfile /var/lib/ntp/drift
     18server 141.52.8.18              # Replace it with internal NTP server
     19server 127.127.1.0
     20fudge 127.127.1.0 stratum 14
     21restrict default
     22}}}
     23
     24== Check Status ==
     25 * ntpq -c rv
     26  * 'offset' field gives the current offset from the server in milliseconds
     27
     28{{{
     29associd=0 status=0618 leap_none, sync_ntp, 1 event, no_sys_peer,
     30version="ntpd 4.2.6p5@1.2349 Mon Feb 29 15:53:06 UTC 2016 (2)",
     31processor="armv7l", system="Linux/3.14.46-rt46-ni-3.5.0f0", leap=00,
     32stratum=3, precision=-20, rootdelay=11.507, rootdisp=56.695,
     33refid=141.52.8.18,
     34reftime=e15974f3.391383ab  Tue, Oct 22 2019 12:30:43.222,
     35clock=e159773f.c358b9d9  Tue, Oct 22 2019 12:40:31.763, peer=35314, tc=7,
     36mintc=3, offset=0.134, frequency=-1.954, sys_jitter=0.000,
     37clk_jitter=0.046, clk_wander=0.015
     38}}}
     39 * ntpq -pn (offset also included here)
     40
     41{{{
     42     remote           refid      st t when poll reach   delay   offset  jitter
     43==============================================================================
     44*141.52.8.18     36.224.68.195    2 u   19  128  377    0.231    0.134   0.034
     45 127.127.1.0     .LOCL.          14 l  44m   64    0    0.000    0.000   0.000
     46}}}
     47
     48== Documentation ==
     49 * [https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kFymSAE&l=en-US NI instructions]
     50
     51== List of packages ==
     52 * ntp
     53{{{
     54ntp_4.2.6p5-r6.0.9_cortexa9-vfpv3.ipk
     55ntpdate_4.2.6p5-r6.0.9_cortexa9-vfpv3.ipk
     56ntp-utils_4.2.6p5-r6.0.9_cortexa9-vfpv3.ipk
     57ntp-tickadj_4.2.6p5-r6.0.9_cortexa9-vfpv3.ipk
     58libbsd0_0.7.0-r0.11_cortexa9-vfpv3.ipk
     59libevent_2.0.21-r1.14_cortexa9-vfpv3.ipk
     60}}}
     61 * mc
     62{{{
     63mc_4.8.12-r0.10_cortexa9-vfpv3.ipk
     64ncurses-terminfo_5.9-r15.1.129_cortexa9-vfpv3.ipk
     65libncurses5_5.9-r15.1.129_cortexa9-vfpv3.ipk
     66libncursesw5_5.9-r15.1.129_cortexa9-vfpv3.ipk
     67}}}
     68