You are not logged in.

#26 2014-03-02 17:51:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: [SOLVED] I am unable to connect to the Public Time Server

Okay, lets look at ntp.  Fire up ntpdc and issue the following commands inside the ntpdc shell: iostats, sysstats, dmpeers.

ewaller$@$odin ~ 1002 %ntpdc
ntpdc> sysstats
time since restart:     58374
time since reset:       58374
packets received:       330
packets processed:      321
current version:        321
previous version:       0
declined:               0
access denied:          0
bad length or format:   0
bad authentication:     0
rate exceeded:          0
ntpdc> iostats
time since reset:     58392
receive buffers:      10
free receive buffers: 9
used receive buffers: 0
low water refills:    1
dropped packets:      0
ignored packets:      0
received packets:     331
packets sent:         346
packets not sent:     0
interrupts handled:   2113
received by int:      2113
ntpdc> dmpeers
     remote           local      st poll reach  delay   offset    disp
=======================================================================
.lttleman.deekay 192.168.1.2      2 1024  377 0.06622 -0.006178 0.12300
.lithium.constan 192.168.1.2      2 1024  377 0.08096 -0.006326 0.12383
*tock.usshc.com  192.168.1.2      1 1024  367 0.06819 -0.003712 0.13165
ntpdc> 

Edit:  Here is my /etc/ntp.conf file.  What does your look like?

ewaller$@$odin ~ 1001 %cat /etc/ntp.conf 
# With the default settings below, ntpd will only synchronize your clock.
#
# For details, see:
# - the ntp.conf man page
# - http://support.ntp.org/bin/view/Support/GettingStarted
# - https://wiki.archlinux.org/index.php/Network_Time_Protocol_daemon

# Associate to public NTP pool servers; see http://www.pool.ntp.org/
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org

# Only allow read-only access from localhost
restrict default noquery nopeer
restrict 127.0.0.1
restrict ::1

# Location of drift file
driftfile /var/lib/ntp/ntp.drift
ewaller$@$odin ~ 1002 %

Last edited by ewaller (2014-03-02 17:53:54)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#27 2014-03-02 17:58:09

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] I am unable to connect to the Public Time Server

I think the US/Pacific zoneinfo is deprecated.  You should be using /usr/share/zoneinfo/America/Los_Angeles.

The only reason I know this is because someone I know was using this as well, and I looked into why I wasn't using it.  So after a bit of searching I found information that this has been ditched in favor of the Continent/City types.

Offline

#28 2014-03-02 18:03:56

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

Re: [SOLVED] I am unable to connect to the Public Time Server

For ntpdc:

karnvorbeefrage ~ $ ntpdc
ntpdc> sysstats
time since restart:     1174
time since reset:       1174
packets received:       95
packets processed:      92
current version:        92
previous version:       0
declined:               0
access denied:          0
bad length or format:   0
bad authentication:     0
rate exceeded:          0
ntpdc> iostats
time since reset:     1187
receive buffers:      10
free receive buffers: 9
used receive buffers: 0
low water refills:    1
dropped packets:      0
ignored packets:      0
received packets:     96
packets sent:         95
packets not sent:     0
interrupts handled:   139
received by int:      139
ntpdc> dmpeers
     remote           local      st poll reach  delay   offset    disp
=======================================================================
.ccadmin.cycores 192.168.1.87     2   64  377 0.08510 -0.002962 0.07500
.yurizoku.tk     192.168.1.87     2   64  377 0.11322  0.002166 0.04985
*services.quadra 192.168.1.87     2   64  377 0.02528  0.001122 0.07190
 xen1.rack911.co 192.168.1.87     3   64  377 0.03850  0.003699 0.06694
ntpdc> 

For /etc/ntp.conf:

# With the default settings below, ntpd will only synchronize your clock.
#
# For details, see:
# - the ntp.conf man page
# - http://support.ntp.org/bin/view/Support/GettingStarted
# - https://wiki.archlinux.org/index.php/Network_Time_Protocol_daemon

# Associate to public NTP pool servers; see http://www.pool.ntp.org/
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org

# Only allow read-only access from localhost
restrict default noquery nopeer
restrict 127.0.0.1
restrict ::1

# Location of drift file
driftfile /var/lib/ntp/ntp.drift

edit:

lrwxrwxrwx 1 root root 39 Mar  2 10:06 /etc/localtime -> /usr/share/zoneinfo/America/Los_Angeles

Now set up to new format:

      Local time: Sun 2014-03-02 10:09:49 PST
  Universal time: Sun 2014-03-02 18:09:49 UTC
        RTC time: Sun 2014-03-02 18:09:49
        Timezone: America/Los_Angeles (PST, -0800)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: no
 Last DST change: DST ended at
                  Sun 2013-11-03 01:59:59 PDT
                  Sun 2013-11-03 01:00:00 PST
 Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2014-03-09 01:59:59 PST
                  Sun 2014-03-09 03:00:00 PDT

Last edited by KARNVORbeefRAGE (2014-03-02 18:10:27)


"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

#29 2014-03-02 18:24:41

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: [SOLVED] I am unable to connect to the Public Time Server

It looks like you are good to Go! 

ntpdc> dmpeers
     remote           local      st poll reach  delay   offset    disp
=======================================================================
.ccadmin.cycores 192.168.1.87     2   64  377 0.08510 -0.002962 0.07500
.yurizoku.tk     192.168.1.87     2   64  377 0.11322  0.002166 0.04985
*services.quadra 192.168.1.87     2   64  377 0.02528  0.001122 0.07190
 xen1.rack911.co 192.168.1.87     3   64  377 0.03850  0.003699 0.06694
ntpdc>

services.quadra is your source.
Here is your proof:

        Timezone: America/Los_Angeles (PST, -0800)
     NTP enabled: yes
NTP synchronized: yes

BTW: Howdy neighbor smile


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#30 2014-03-02 18:32:46

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

Re: [SOLVED] I am unable to connect to the Public Time Server

Howdy smile
Thanks for all the help, once againI apologize for all the troubles.


"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

Board footer

Powered by FluxBB