You are here: Administration & Maintenance Manual > Appliance Administration > NTP and Drift Correction > Example Using Simple NTP

Example Using Simple NTP

The following is an example of using simple or standard (non-secured) NTP on Luna SA. We recommend that you use secure NTP, instead. This example is provided for comparison.

Simple NTP:

Enable NTP:

[kuso] lunash:>sysc ntp enable

NTP is enabled

Shutting down ntpd: [FAILED]

Starting ntpd: [ OK ]

Please wait to see the result ......

NTP is running

===========================================================

NTP Associations Status:

ind assID status conf reach auth condition last_event cnt

===========================================================

1 186 9014 yes yes none reject reachable 1

===========================================================

Please look at the ntp log to see any potential problem.

Command Result : 0 (Success)

Add an NTP server:

[kuso] lunash:>sysc ntp addserver ntp.cpsc.ucalgary.ca

NTP server 'server ntp.cpsc.ucalgary.ca' added.

WARNING !! Server 'ntp.cpsc.ucalgary.ca' added without authentication.

NTP is enabled

Shutting down ntpd: [ OK ]

Starting ntpd: [ OK ]

Please wait to see the result ......

NTP is running

===========================================================

NTP Associations Status:

ind assID status conf reach auth condition last_event cnt

===========================================================

1 64241 9014 yes yes none reject reachable 1

2 64242 9014 yes yes none reject reachable 1

===========================================================

Please look at the ntp log to see any potential problem.

Command Result : 0 (Success)

[kuso] lunash:>

 

It might take a few minutes to synchronize. If it is checked immediately you will, most likely, get an error:

 

[kuso] lunash:>sysc ntp status

NTP is running

NTP is enabled

Peers:

==============================================================================

remote refid st t when poll reach delay offset jitter

==============================================================================

LOCAL(0) .LOCL. 10 l 34 64 3 0.000 0.000 0.001

time4.cpsc.ucal 10.10.0.22 2 u 35 64 3 47.625 -37958. 6.158

==============================================================================

Associations:

==============================================================================

ind assID status conf reach auth condition last_event cnt

===========================================================

1 64241 9014 yes yes none reject reachable 1

2 64242 9014 yes yes none reject reachable 1

==============================================================================

NTP Time:

==============================================================================

ntp_gettime() returns code 5 (ERROR)

time ccceb621.3118b000 Wed, Nov 19 2008 10:58:25.191, (.191783),

maximum error 51216 us, estimated error 16 us

ntp_adjtime() returns code 5 (ERROR)

modes 0x0 (),

offset 0.000 us, frequency 0.000 ppm, interval 4 s,

maximum error 51216 us, estimated error 16 us,

status 0x40 (UNSYNC),

time constant 0, precision 1.000 us, tolerance 512 ppm,

pps frequency 0.000 ppm, stability 512.000 ppm, jitter 200.000 us,

intervals 0, jitter exceeded 0, stability exceeded 0, errors 0.

==============================================================================

Command Result : 0 (Success)

 

It takes a few minutes to synchronize - note below that the estimated errors are now zero:

 

[kuso] lunash:>sysc ntp status

NTP is running

NTP is enabled

Peers:

==============================================================================

remote refid st t when poll reach delay offset jitter

==============================================================================

LOCAL(0) .LOCL. 10 l 46 64 377 0.000 0.000 0.001

*time4.cpsc.ucal 10.10.0.22 2 u 44 64 377 47.936 -37995. 27.368

==============================================================================

Associations:

==============================================================================

ind assID status conf reach auth condition last_event cnt

===========================================================

1 64241 9014 yes yes none reject reachable 1

2 64242 9614 yes yes none sys.peer reachable 1

==============================================================================

NTP Time:

==============================================================================

ntp_gettime() returns code 0 (OK)

time ccceb7ae.5f9ff000 Wed, Nov 19 2008 11:05:02.373, (.373534),

maximum error 1072493 us, estimated error 0 us

ntp_adjtime() returns code 0 (OK)

modes 0x0 (),

offset 0.000 us, frequency 0.000 ppm, interval 4 s,

maximum error 1072493 us, estimated error 0 us,

status 0x1 (PLL),

time constant 2, precision 1.000 us, tolerance 512 ppm,

pps frequency 0.000 ppm, stability 512.000 ppm, jitter 200.000 us,

intervals 0, jitter exceeded 0, stability exceeded 0, errors 0.

==============================================================================

Command Result : 0 (Success)

[kuso] lunash:>

 

 

See Also