Re: ntp daemon.

2012-01-20 Thread Camaleón
On Wed, 18 Jan 2012 12:22:57 -0500, Joey L wrote:

 I have installed ntp server on my debian box. I am trying to sync with a
 public external time server. I have found a couple on the internet - but
 none seem to want to sync with me or my ntp daemon does not want to do
 it.
 
 I have entered the following in my /etc/ntp.conf file:
 
 server 0.us.pool.ntp.org
 server 1.us.pool.ntp.org
 server 2.us.pool.ntp.org
 server 3.us.pool.ntp.org

Is ntp daemon up and running?

/etc/init.d/ntp status

Also, check you logs:

su - -c grep ntp /var/log/syslog

 I ran ntpdate and I get this error message - 18 Jan 12:43:23
 ntpdate[26430]: no servers can be used, exiting

ntpdate is another/different program.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/jfc14j$rsl$1...@dough.gmane.org



Re: ntp daemon.

2012-01-20 Thread Syed Hasan Atizaz
thats true, however ntpdate does seems to work even after
ntpdate[26430]: no servers can be used, exiting. Server does sync
times correctly.

server 0.debian.pool.ntp.org
server 1.debian.pool.ntp.org
server 2.debian.pool.ntp.org



On Fri, Jan 20, 2012 at 8:27 PM, Camaleón noela...@gmail.com wrote:
 On Wed, 18 Jan 2012 12:22:57 -0500, Joey L wrote:

 I have installed ntp server on my debian box. I am trying to sync with a
 public external time server. I have found a couple on the internet - but
 none seem to want to sync with me or my ntp daemon does not want to do
 it.

 I have entered the following in my /etc/ntp.conf file:

 server 0.us.pool.ntp.org
 server 1.us.pool.ntp.org
 server 2.us.pool.ntp.org
 server 3.us.pool.ntp.org

 Is ntp daemon up and running?

 /etc/init.d/ntp status

 Also, check you logs:

 su - -c grep ntp /var/log/syslog

 I ran ntpdate and I get this error message - 18 Jan 12:43:23
 ntpdate[26430]: no servers can be used, exiting

 ntpdate is another/different program.

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jfc14j$rsl$1...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/canppwqstnsodoawqqvzbdhq2ppqktjnwlfocybj1wqunums...@mail.gmail.com



Re: ntp daemon.

2012-01-20 Thread Camaleón
On Sat, 21 Jan 2012 00:30:58 +0500, Syed Hasan Atizaz wrote:

 On Fri, Jan 20, 2012 at 8:27 PM, Camaleón noela...@gmail.com wrote:
 On Wed, 18 Jan 2012 12:22:57 -0500, Joey L wrote:

 I have installed ntp server on my debian box. I am trying to sync with
 a public external time server. I have found a couple on the internet -
 but none seem to want to sync with me or my ntp daemon does not want
 to do it.

 I have entered the following in my /etc/ntp.conf file:

 server 0.us.pool.ntp.org
 server 1.us.pool.ntp.org
 server 2.us.pool.ntp.org
 server 3.us.pool.ntp.org

 Is ntp daemon up and running?

 /etc/init.d/ntp status

 Also, check you logs:

 su - -c grep ntp /var/log/syslog

 I ran ntpdate and I get this error message - 18 Jan 12:43:23
 ntpdate[26430]: no servers can be used, exiting

 ntpdate is another/different program.

 thats true, however ntpdate does seems to work even after
 ntpdate[26430]: no servers can be used, exiting. Server does sync times
 correctly.
 
 server 0.debian.pool.ntp.org
 server 1.debian.pool.ntp.org
 server 2.debian.pool.ntp.org

I can't tell about ntpdate, I don't have it installed, I use the full ntp 
package and I run the service as daemon. If you need advice for setting 
up ntpdate read /usr/share/doc/ntpdate/README.Debian.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/jfcmam$rsl$2...@dough.gmane.org



Re: ntp daemon.

2012-01-19 Thread Balint Szigeti

Okay, at first we need to  ntp.conf.
Please run cat /etc/ntp.conf and paste here the results.
Check your firewall with 'iptables -L' command and also run this 
'netstat -tulpn|grep ntp'.

Please, paste here every command output.

Regards,
Balint




On 19/01/2012 02:53, Stefan Monnier wrote:

==
  server1.shellva .INIT.  16 u- 102400.0000.000   0.000
  mail.honeycomb. .INIT.  16 u- 102400.0000.000   0.000
  thor.netservice .INIT.  16 u- 102400.0000.000   0.000
  ntp.sunflower.c .INIT.  16 u- 102400.0000.000   0.000
  ntp2.Rescomp.Be .INIT.  16 u- 102400.0000.000   0.000
  voxl-nyc-15.ser .INIT.  16 u- 102400.0000.000   0.000
  xen1.rack911.co .INIT.  16 u- 102400.0000.000   0.000
  ntp1.Housing.Be .INIT.  16 u- 102400.0000.000   0.000
I do need that port 123 open on the router ?

The important thing to know is that NTP uses UDP rather than TCP.
E.g. machines from my university cannot use remote NTP servers because
all UDP traffic is filtered away (they do have local NTP server which
get synchronized with remote server, of course).

So you need outbound UDP port 123 open (inbound is only if you want
other machines to be able to synchronize with yours).


 Stefan





--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f17cda9.8080...@gmail.com



ntp daemon.

2012-01-18 Thread Joey L
I have installed ntp server on my debian box.
I am trying to sync with a public external time server.
I have found a couple on the internet - but none seem to want to sync
with me or my ntp daemon does not want to do it.

I have entered the following in my /etc/ntp.conf file:

server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org

I ran ntpdate and I get this error message -
18 Jan 12:43:23 ntpdate[26430]: no servers can be used, exiting


do not  know how to fix it - any ideas ??

thanks


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAK3ER7t=eNBP7C3vrU1p5woxgKFE2=j_dgfwofp-axwywij...@mail.gmail.com



Re: ntp daemon.

2012-01-18 Thread Balint Szigeti

On 18/01/2012 17:22, Joey L wrote:

I have installed ntp server on my debian box.
I am trying to sync with a public external time server.
I have found a couple on the internet - but none seem to want to sync
with me or my ntp daemon does not want to do it.

I have entered the following in my /etc/ntp.conf file:

server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org

I ran ntpdate and I get this error message -
18 Jan 12:43:23 ntpdate[26430]: no servers can be used, exiting


do not  know how to fix it - any ideas ??

thanks



try with these:
server 0.debian.pool.ntp.org iburst
server 1.debian.pool.ntp.org iburst
server 2.debian.pool.ntp.org iburst
server 3.debian.pool.ntp.org iburst


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f1702ad.6010...@gmail.com



Re: ntp daemon.

2012-01-18 Thread Balint Szigeti

On 18/01/2012 17:22, Joey L wrote:

I have installed ntp server on my debian box.
I am trying to sync with a public external time server.
I have found a couple on the internet - but none seem to want to sync
with me or my ntp daemon does not want to do it.

I have entered the following in my /etc/ntp.conf file:

server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org

I ran ntpdate and I get this error message -
18 Jan 12:43:23 ntpdate[26430]: no servers can be used, exiting


do not  know how to fix it - any ideas ??

thanks



oh, and the answer your question:
myhost:~# *ntpdate*
18 Jan 17:35:01 ntpdate[1400]: no servers can be used, exiting
myhost:~# *ntpdate 0.us.pool.ntp.org*
18 Jan 17:35:14 ntpdate[1401]: the NTP socket is in use, exiting

the ntpdate is required an argument.
ntpdate server
see in man ntpdate




Re: ntp daemon.

2012-01-18 Thread Joey L
thanks for the reply --- I just tried this server and get the following error:

ntpdate 0.debian.pool.ntp.org

18 Jan 13:31:23 ntpdate[27613]: no server suitable for synchronization found


thanks


On Wed, Jan 18, 2012 at 12:37 PM, Balint Szigeti balint.s...@gmail.com wrote:
 On 18/01/2012 17:22, Joey L wrote:

 I have installed ntp server on my debian box.
 I am trying to sync with a public external time server.
 I have found a couple on the internet - but none seem to want to sync
 with me or my ntp daemon does not want to do it.

 I have entered the following in my /etc/ntp.conf file:

 server 0.us.pool.ntp.org
 server 1.us.pool.ntp.org
 server 2.us.pool.ntp.org
 server 3.us.pool.ntp.org

 I ran ntpdate and I get this error message -
 18 Jan 12:43:23 ntpdate[26430]: no servers can be used, exiting


 do not  know how to fix it - any ideas ??

 thanks


 oh, and the answer your question:
 myhost:~# ntpdate
 18 Jan 17:35:01 ntpdate[1400]: no servers can be used, exiting
 myhost:~# ntpdate 0.us.pool.ntp.org
 18 Jan 17:35:14 ntpdate[1401]: the NTP socket is in use, exiting

 the ntpdate is required an argument.
 ntpdate server
 see in man ntpdate




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cak3er7u028bbbdyjzvfhjww3x519l_5id68rfnk_nxi32-y...@mail.gmail.com



Re: ntp daemon.

2012-01-18 Thread Balint Szigeti

On 18/01/2012 18:10, Joey L wrote:

no server suitable for synchronization found

check your firewall. the ntp serevice uses 123 port
and check this

ntpq -p


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f170cae.4000...@gmail.com



Re: ntp daemon.

2012-01-18 Thread Balint Szigeti

On 18/01/2012 18:10, Joey L wrote:

thanks for the reply --- I just tried this server and get the following error:

ntpdate 0.debian.pool.ntp.org

18 Jan 13:31:23 ntpdate[27613]: no server suitable for synchronization found


thanks


On Wed, Jan 18, 2012 at 12:37 PM, Balint Szigetibalint.s...@gmail.com  wrote:

On 18/01/2012 17:22, Joey L wrote:

I have installed ntp server on my debian box.
I am trying to sync with a public external time server.
I have found a couple on the internet - but none seem to want to sync
with me or my ntp daemon does not want to do it.

I have entered the following in my /etc/ntp.conf file:

server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org

I ran ntpdate and I get this error message -
18 Jan 12:43:23 ntpdate[26430]: no servers can be used, exiting


do not  know how to fix it - any ideas ??

thanks


oh, and the answer your question:
myhost:~# ntpdate
18 Jan 17:35:01 ntpdate[1400]: no servers can be used, exiting
myhost:~# ntpdate 0.us.pool.ntp.org
18 Jan 17:35:14 ntpdate[1401]: the NTP socket is in use, exiting

the ntpdate is required an argument.
ntpdateserver
see in man ntpdate





and you should try these:
http://www.pool.ntp.org/zone/europe


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f170d4f.5010...@gmail.com



Re: ntp daemon.

2012-01-18 Thread Joey L
I got this :

ntpq -p
ntpq: read: Connection refused


do i have to open special ports on the router for ntp to work ?

thanks
mhj

On Wed, Jan 18, 2012 at 1:19 PM, Balint Szigeti balint.s...@gmail.com wrote:
 On 18/01/2012 18:10, Joey L wrote:

 thanks for the reply --- I just tried this server and get the following
 error:

 ntpdate 0.debian.pool.ntp.org

 18 Jan 13:31:23 ntpdate[27613]: no server suitable for synchronization
 found


 thanks


 On Wed, Jan 18, 2012 at 12:37 PM, Balint Szigetibalint.s...@gmail.com
  wrote:

 On 18/01/2012 17:22, Joey L wrote:

 I have installed ntp server on my debian box.
 I am trying to sync with a public external time server.
 I have found a couple on the internet - but none seem to want to sync
 with me or my ntp daemon does not want to do it.

 I have entered the following in my /etc/ntp.conf file:

 server 0.us.pool.ntp.org
 server 1.us.pool.ntp.org
 server 2.us.pool.ntp.org
 server 3.us.pool.ntp.org

 I ran ntpdate and I get this error message -
 18 Jan 12:43:23 ntpdate[26430]: no servers can be used, exiting


 do not  know how to fix it - any ideas ??

 thanks


 oh, and the answer your question:
 myhost:~# ntpdate
 18 Jan 17:35:01 ntpdate[1400]: no servers can be used, exiting
 myhost:~# ntpdate 0.us.pool.ntp.org
 18 Jan 17:35:14 ntpdate[1401]: the NTP socket is in use, exiting

 the ntpdate is required an argument.
 ntpdateserver
 see in man ntpdate



 and you should try these:
 http://www.pool.ntp.org/zone/europe



 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject
 of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/4f170d4f.5010...@gmail.com



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cak3er7vonwatvuetqqqrjdiq34nhx2zm6skd2jdjknkdaf4...@mail.gmail.com



Re: ntp daemon.

2012-01-18 Thread Rob Owens
On Wed, Jan 18, 2012 at 12:22:57PM -0500, Joey L wrote:
 I have installed ntp server on my debian box.
 I am trying to sync with a public external time server.
 I have found a couple on the internet - but none seem to want to sync
 with me or my ntp daemon does not want to do it.
 
 I have entered the following in my /etc/ntp.conf file:
 
 server 0.us.pool.ntp.org
 server 1.us.pool.ntp.org
 server 2.us.pool.ntp.org
 server 3.us.pool.ntp.org
 
 I ran ntpdate and I get this error message -
 18 Jan 12:43:23 ntpdate[26430]: no servers can be used, exiting
 
ntpdate should not / cannot be used while ntpd is running.  Make sure
that ntpd is running and then run:

ntpq -p

That'll show you what ntp servers you are communicating with.  

You do not need to open any inbound ports on your firewall in order for
ntpd to run.  Also, the default debian ntp.conf file works if you are
just trying to keep your own time accurate, and not trying to act as an
ntp server for other machines.

-Rob


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120118183857.gb1...@aurora.owens.net



Re: ntp daemon.

2012-01-18 Thread Balint Szigeti

On 18/01/2012 18:25, Joey L wrote:

ntpq: read: Connection refused

hm... interesting...

how looks your ntp.conf?
Is ntpd running?
---
ps aux|grep ntp
ntp   1231  0.0  0.5  38472  2204 ?Ss   18:18   0:00 
/usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:106

---


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f1712b8.9090...@gmail.com



Re: ntp daemon.

2012-01-18 Thread Don Juan

On 01/18/2012 10:38 AM, Rob Owens wrote:

On Wed, Jan 18, 2012 at 12:22:57PM -0500, Joey L wrote:

I have installed ntp server on my debian box.
I am trying to sync with a public external time server.
I have found a couple on the internet - but none seem to want to sync
with me or my ntp daemon does not want to do it.

I have entered the following in my /etc/ntp.conf file:

server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org

I ran ntpdate and I get this error message -
18 Jan 12:43:23 ntpdate[26430]: no servers can be used, exiting


ntpdate should not / cannot be used while ntpd is running.  Make sure
that ntpd is running and then run:

ntpq -p

That'll show you what ntp servers you are communicating with.

You do not need to open any inbound ports on your firewall in order for
ntpd to run.  Also, the default debian ntp.conf file works if you are
just trying to keep your own time accurate, and not trying to act as an
ntp server for other machines.

-Rob


make sure you have udp on port 23 open for inbound and outbound on 
iptables.


You can run ntpdate -u YOURTIMESERVEROFCHOICE
Or you could also run ntpd -qg
Or if your ntpd is already running stop it then try again and if all 
works verify your settings in the conf file. Reboot try one last time 
and should be squared away.


Also if you want sysclock and hwclock to match make sure your hwclock is 
set to UTC or localtime depending on your config. Then if hwclock is 
still off run hwclock --systohc



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f1725e1.1070...@gmail.com



Re: ntp daemon.

2012-01-18 Thread Don Juan

On 01/18/2012 10:38 AM, Rob Owens wrote:

On Wed, Jan 18, 2012 at 12:22:57PM -0500, Joey L wrote:

I have installed ntp server on my debian box.
I am trying to sync with a public external time server.
I have found a couple on the internet - but none seem to want to sync
with me or my ntp daemon does not want to do it.

I have entered the following in my /etc/ntp.conf file:

server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org

I ran ntpdate and I get this error message -
18 Jan 12:43:23 ntpdate[26430]: no servers can be used, exiting


ntpdate should not / cannot be used while ntpd is running.  Make sure
that ntpd is running and then run:

ntpq -p

That'll show you what ntp servers you are communicating with.

You do not need to open any inbound ports on your firewall in order for
ntpd to run.  Also, the default debian ntp.conf file works if you are
just trying to keep your own time accurate, and not trying to act as an
ntp server for other machines.

-Rob



Correction I mean port 123 in my last email NOT 23.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f17260a.6070...@gmail.com



Re: ntp daemon.

2012-01-18 Thread Stan Hoeppner
On 1/18/2012 11:22 AM, Joey L wrote:
 I have installed ntp server on my debian box.
 I am trying to sync with a public external time server.
 I have found a couple on the internet - but none seem to want to sync
 with me or my ntp daemon does not want to do it.
 
 I have entered the following in my /etc/ntp.conf file:
 
 server 0.us.pool.ntp.org
 server 1.us.pool.ntp.org
 server 2.us.pool.ntp.org
 server 3.us.pool.ntp.org
 
 I ran ntpdate and I get this error message -
 18 Jan 12:43:23 ntpdate[26430]: no servers can be used, exiting

ntpdate doesn't use ntp.conf.  It is a completely unrelated command.
'man ntpdate'  Sample usage:

$ ntpdate -q 0.us.pool.ntp.org


To see what ntpd is doing:

$ grep ntpd /var/log/syslog



-- 
Stan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f172bed.2050...@hardwarefreak.com



Re: ntp daemon.

2012-01-18 Thread Balint Szigeti

On 18/01/2012 20:30, Stan Hoeppner wrote:

On 1/18/2012 11:22 AM, Joey L wrote:

I have installed ntp server on my debian box.
I am trying to sync with a public external time server.
I have found a couple on the internet - but none seem to want to sync
with me or my ntp daemon does not want to do it.

I have entered the following in my /etc/ntp.conf file:

server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org

I ran ntpdate and I get this error message -
18 Jan 12:43:23 ntpdate[26430]: no servers can be used, exiting

ntpdate doesn't use ntp.conf.  It is a completely unrelated command.
'man ntpdate'  Sample usage:

$ ntpdate -q 0.us.pool.ntp.org


To see what ntpd is doing:

$ grep ntpd /var/log/syslog



but he has problem with ntp, too. okay you're right the ntpdate doesn't 
use ntp.conf.

probably the fault is same in two case


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f1733cb.6080...@gmail.com



Re: ntp daemon.

2012-01-18 Thread Joey L
i am just trying to keep my own time and get the real time from
internet servers, here is the output:

root@rider:~# ntpq -p
 remote   refid  st t when poll reach   delay   offset  jitter
==
 server1.shellva .INIT.  16 u- 102400.0000.000   0.000
 mail.honeycomb. .INIT.  16 u- 102400.0000.000   0.000
 thor.netservice .INIT.  16 u- 102400.0000.000   0.000
 ntp.sunflower.c .INIT.  16 u- 102400.0000.000   0.000
 ntp2.Rescomp.Be .INIT.  16 u- 102400.0000.000   0.000
 voxl-nyc-15.ser .INIT.  16 u- 102400.0000.000   0.000
 xen1.rack911.co .INIT.  16 u- 102400.0000.000   0.000
 ntp1.Housing.Be .INIT.  16 u- 102400.0000.000   0.000

I do need that port 123 open on the router ?

thanks
On Wed, Jan 18, 2012 at 1:38 PM, Rob Owens row...@ptd.net wrote:
 On Wed, Jan 18, 2012 at 12:22:57PM -0500, Joey L wrote:
 I have installed ntp server on my debian box.
 I am trying to sync with a public external time server.
 I have found a couple on the internet - but none seem to want to sync
 with me or my ntp daemon does not want to do it.

 I have entered the following in my /etc/ntp.conf file:

 server 0.us.pool.ntp.org
 server 1.us.pool.ntp.org
 server 2.us.pool.ntp.org
 server 3.us.pool.ntp.org

 I ran ntpdate and I get this error message -
 18 Jan 12:43:23 ntpdate[26430]: no servers can be used, exiting

 ntpdate should not / cannot be used while ntpd is running.  Make sure
 that ntpd is running and then run:

 ntpq -p

 That'll show you what ntp servers you are communicating with.

 You do not need to open any inbound ports on your firewall in order for
 ntpd to run.  Also, the default debian ntp.conf file works if you are
 just trying to keep your own time accurate, and not trying to act as an
 ntp server for other machines.

 -Rob


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120118183857.gb1...@aurora.owens.net



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cak3er7tg2-dj0moo-pa+9ucexeykui4ij0haxewnsmwufcw...@mail.gmail.com



Re: ntp daemon.

2012-01-18 Thread Joey L
i stopped ntpd and restarted - here is output:

Jan 18 16:53:32 rider ntpd[1684]: ntpd exiting on signal 15
Jan 18 16:53:37 rider ntpd[9133]: ntpd 4.2.6p2@1.2194-o Sun Oct 17
13:45:13 UTC 2010 (1)
Jan 18 16:53:37 rider ntpd[9134]: proto: precision = 1.676 usec
Jan 18 16:53:37 rider ntpd[9134]: Listen and drop on 0 v4wildcard
0.0.0.0 UDP 123
Jan 18 16:53:37 rider ntpd[9134]: Listen and drop on 1 v6wildcard :: UDP 123
Jan 18 16:53:37 rider ntpd[9134]: Listen normally on 2 lo 127.0.0.1 UDP 123
Jan 18 16:53:37 rider ntpd[9134]: Listen normally on 3 eth0 192.168.2.22 UDP 123
Jan 18 16:53:37 rider ntpd[9134]: Listen normally on 4 lo ::1 UDP 123
Jan 18 16:53:37 rider ntpd[9134]: Listen normally on 5 eth0
fe80::2e0:81ff:fe76:8bc2 UDP 123
Jan 18 16:54:50 rider ntpd[9134]: ntpd exiting on signal 15
Jan 18 16:55:08 rider ntpd[9175]: ntpd 4.2.6p2@1.2194-o Sun Oct 17
13:45:13 UTC 2010 (1)
Jan 18 16:55:08 rider ntpd[9176]: proto: precision = 1.676 usec
Jan 18 16:55:08 rider ntpd[9176]: Listen and drop on 0 v4wildcard
0.0.0.0 UDP 123
Jan 18 16:55:08 rider ntpd[9176]: Listen and drop on 1 v6wildcard :: UDP 123
Jan 18 16:55:08 rider ntpd[9176]: Listen normally on 2 lo 127.0.0.1 UDP 123
Jan 18 16:55:08 rider ntpd[9176]: Listen normally on 3 eth0
192.168.44.22 UDP 123
Jan 18 16:55:08 rider ntpd[9176]: Listen normally on 4 lo ::1 UDP 123
Jan 18 16:55:08 rider ntpd[9176]: Listen normally on 5 eth0
fe80::2e0:81ff:fe76:8bc2 UDP 123
root@rider:~# ntpq -p
 remote   refid  st t when poll reach   delay   offset  jitter
==
 199.4.29.166.INIT.  16 u-   6400.0000.000   0.000
 name1.glorb.com .INIT.  16 u-   6400.0000.000   0.000
 173.244.211.10. .INIT.  16 u-   6400.0000.000   0.000
 clock.xmission. .INIT.  16 u-   6400.0000.000   0.000
 ntp.sunflower.c .INIT.  16 u-   6400.0000.000   0.000
 ntp.cox.net .INIT.  16 u-   6400.0000.000   0.000
 guinness.mcguyv .INIT.  16 u-   6400.0000.000   0.000
 barricade.rack9 .INIT.  16 u-   6400.0000.000   0.000


all looks normal.

mjh


On Wed, Jan 18, 2012 at 4:04 PM, Balint Szigeti balint.s...@gmail.com wrote:
 On 18/01/2012 20:30, Stan Hoeppner wrote:

 On 1/18/2012 11:22 AM, Joey L wrote:

 I have installed ntp server on my debian box.
 I am trying to sync with a public external time server.
 I have found a couple on the internet - but none seem to want to sync
 with me or my ntp daemon does not want to do it.

 I have entered the following in my /etc/ntp.conf file:

 server 0.us.pool.ntp.org
 server 1.us.pool.ntp.org
 server 2.us.pool.ntp.org
 server 3.us.pool.ntp.org

 I ran ntpdate and I get this error message -
 18 Jan 12:43:23 ntpdate[26430]: no servers can be used, exiting

 ntpdate doesn't use ntp.conf.  It is a completely unrelated command.
 'man ntpdate'  Sample usage:

 $ ntpdate -q 0.us.pool.ntp.org


 To see what ntpd is doing:

 $ grep ntpd /var/log/syslog



 but he has problem with ntp, too. okay you're right the ntpdate doesn't use
 ntp.conf.
 probably the fault is same in two case



 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject
 of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/4f1733cb.6080...@gmail.com



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cak3er7set4pji9j91qwdvh-cucfhcr_fcbtbcd1rne1wxyq...@mail.gmail.com



Re: ntp daemon.

2012-01-18 Thread Balint Szigeti
you don't have to open port on your router because if you reach internet 
(without firewall on your system) every ntp packet to get to the right 
place.


now should run
stop ntpd
ntpdate something server
and check
ntpq -p
and
start ntpd again.

Now, it has to work.

On 18/01/2012 21:27, Joey L wrote:

i am just trying to keep my own time and get the real time from
internet servers, here is the output:

root@rider:~# ntpq -p
  remote   refid  st t when poll reach   delay   offset  jitter
==
  server1.shellva .INIT.  16 u- 102400.0000.000   0.000
  mail.honeycomb. .INIT.  16 u- 102400.0000.000   0.000
  thor.netservice .INIT.  16 u- 102400.0000.000   0.000
  ntp.sunflower.c .INIT.  16 u- 102400.0000.000   0.000
  ntp2.Rescomp.Be .INIT.  16 u- 102400.0000.000   0.000
  voxl-nyc-15.ser .INIT.  16 u- 102400.0000.000   0.000
  xen1.rack911.co .INIT.  16 u- 102400.0000.000   0.000
  ntp1.Housing.Be .INIT.  16 u- 102400.0000.000   0.000

I do need that port 123 open on the router ?

thanks
On Wed, Jan 18, 2012 at 1:38 PM, Rob Owensrow...@ptd.net  wrote:

On Wed, Jan 18, 2012 at 12:22:57PM -0500, Joey L wrote:

I have installed ntp server on my debian box.
I am trying to sync with a public external time server.
I have found a couple on the internet - but none seem to want to sync
with me or my ntp daemon does not want to do it.

I have entered the following in my /etc/ntp.conf file:

server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org

I ran ntpdate and I get this error message -
18 Jan 12:43:23 ntpdate[26430]: no servers can be used, exiting


ntpdate should not / cannot be used while ntpd is running.  Make sure
that ntpd is running and then run:

ntpq -p

That'll show you what ntp servers you are communicating with.

You do not need to open any inbound ports on your firewall in order for
ntpd to run.  Also, the default debian ntp.conf file works if you are
just trying to keep your own time accurate, and not trying to act as an
ntp server for other machines.

-Rob


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120118183857.gb1...@aurora.owens.net






--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f173dc1.70...@gmail.com



Re: ntp daemon.

2012-01-18 Thread Stan Hoeppner
On 1/18/2012 3:34 PM, Joey L wrote:

  remote   refid  st t when poll reach   delay   offset  jitter
 ==
  199.4.29.166.INIT.  16 u-   6400.0000.000   0.000
  name1.glorb.com .INIT.  16 u-   6400.0000.000   0.000
  173.244.211.10. .INIT.  16 u-   6400.0000.000   0.000
  clock.xmission. .INIT.  16 u-   6400.0000.000   0.000
  ntp.sunflower.c .INIT.  16 u-   6400.0000.000   0.000
  ntp.cox.net .INIT.  16 u-   6400.0000.000   0.000
  guinness.mcguyv .INIT.  16 u-   6400.0000.000   0.000
  barricade.rack9 .INIT.  16 u-   6400.0000.000   0.000

 all looks normal.

That's because you don't know what normal should look like:

 remote   refid  st t when poll reach   delay   offset  jitter
==
+navobs1.wustl.e .GPS.1 u  104  128  377   48.924   -0.745   3.540
*ntp.okstate.edu .USNO.   1 u   88  128  377   45.726   -0.294   1.259
+tick.uh.edu .GPS.1 u   43  128  377   45.574   -0.527   5.165


See all of your columns with zeros?  See mine don't have zeros, but actual 
data?  It seems your ntpd is failing to contact the remote ntp servers.  While 
watching iftop, stop and start ntpd.  You should see connections going out to 
the remote ntp servers.  We need to confirm that.

Also, please paste your /etc/ntp.conf file.

-- 
Stan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f173fc4.9040...@hardwarefreak.com



Re: ntp daemon.

2012-01-18 Thread Rob Owens
On Wed, Jan 18, 2012 at 03:55:16PM -0600, Stan Hoeppner wrote:
 On 1/18/2012 3:34 PM, Joey L wrote:
 
   remote   refid  st t when poll reach   delay   offset  
  jitter
  ==
   199.4.29.166.INIT.  16 u-   6400.0000.000   
  0.000
   name1.glorb.com .INIT.  16 u-   6400.0000.000   
  0.000
   173.244.211.10. .INIT.  16 u-   6400.0000.000   
  0.000
   clock.xmission. .INIT.  16 u-   6400.0000.000   
  0.000
   ntp.sunflower.c .INIT.  16 u-   6400.0000.000   
  0.000
   ntp.cox.net .INIT.  16 u-   6400.0000.000   
  0.000
   guinness.mcguyv .INIT.  16 u-   6400.0000.000   
  0.000
   barricade.rack9 .INIT.  16 u-   6400.0000.000   
  0.000
 
  all looks normal.
 
 That's because you don't know what normal should look like:
 
  remote   refid  st t when poll reach   delay   offset  jitter
 ==
 +navobs1.wustl.e .GPS.1 u  104  128  377   48.924   -0.745   3.540
 *ntp.okstate.edu .USNO.   1 u   88  128  377   45.726   -0.294   1.259
 +tick.uh.edu .GPS.1 u   43  128  377   45.574   -0.527   5.165
 
 
 See all of your columns with zeros?  See mine don't have zeros, but actual 
 data?  It seems your ntpd is failing to contact the remote ntp servers.  
 While watching iftop, stop and start ntpd.  You should see connections going 
 out to the remote ntp servers.  We need to confirm that.
 
It can take a few minutes of ntpd running before you get the + and *
marks in the remote column, like Stan has.  I don't remember exactly
what they mean, but it's something along the lines of your ntp daemon
having established a link with those remote ntp servers.  I'm not sure
if that accounts for all the zeros in the other columns, though.

-Rob


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120118221903.gc2...@aurora.owens.net



Re: ntp daemon.

2012-01-18 Thread Joey L

 now should run
 stop ntpd
 ntpdate something server
 and check
 ntpq -p
 and
 start ntpd again.



 ntpdate 0.debian.pool.ntp.org
18 Jan 19:16:04 ntpdate[12464]: no server suitable for synchronization found
root@rider:~# ntpq -p
ntpq: read: Connection refused


nothing...

root@rider:~# ntpq -p
 remote   refid  st t when poll reach   delay   offset  jitter
==
 support.rccfo.c .INIT.  16 u-   6400.0000.000   0.000
 ntp2.Rescomp.Be .INIT.  16 u-   6400.0000.000   0.000
 name3.glorb.com .INIT.  16 u-   6400.0000.000   0.000
 ntp1.Rescomp.Be .INIT.  16 u-   6400.0000.000   0.000
 tuppy.intrepidh .INIT.  16 u-   6400.0000.000   0.000
 private.ssl119. .INIT.  16 u-   6400.0000.000   0.000
 cheezum.mattnor .INIT.  16 u-   6400.0000.000   0.000
 framboise.hoopy .INIT.  16 u-   6400.0000.000   0.000


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAK3ER7tbEÍ2+t-bms2h8hghl+6xpydwplw+tqstroubxy...@mail.gmail.com



Re: ntp daemon.

2012-01-18 Thread Don Juan

On 01/18/2012 03:56 PM, Joey L wrote:

now should run
stop ntpd
ntpdatesomething server
and check
ntpq -p
and
start ntpd again.



  ntpdate 0.debian.pool.ntp.org
18 Jan 19:16:04 ntpdate[12464]: no server suitable for synchronization found
root@rider:~# ntpq -p
ntpq: read: Connection refused


nothing...

root@rider:~# ntpq -p
  remote   refid  st t when poll reach   delay   offset  jitter
==
  support.rccfo.c .INIT.  16 u-   6400.0000.000   0.000
  ntp2.Rescomp.Be .INIT.  16 u-   6400.0000.000   0.000
  name3.glorb.com .INIT.  16 u-   6400.0000.000   0.000
  ntp1.Rescomp.Be .INIT.  16 u-   6400.0000.000   0.000
  tuppy.intrepidh .INIT.  16 u-   6400.0000.000   0.000
  private.ssl119. .INIT.  16 u-   6400.0000.000   0.000
  cheezum.mattnor .INIT.  16 u-   6400.0000.000   0.000
  framboise.hoopy .INIT.  16 u-   6400.0000.000   0.000


I replied to the list earlier what is a working method for me on Sid and 
Stable.


ntpdate -u TIMESERVER
ntpd -qg

refer to my previous post for more info. Especially if iptables is set 
to drop/reject all by default



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f177228.9020...@gmail.com



Re: ntp daemon.

2012-01-18 Thread Stefan Monnier
 ==
  server1.shellva .INIT.  16 u- 102400.0000.000   0.000
  mail.honeycomb. .INIT.  16 u- 102400.0000.000   0.000
  thor.netservice .INIT.  16 u- 102400.0000.000   0.000
  ntp.sunflower.c .INIT.  16 u- 102400.0000.000   0.000
  ntp2.Rescomp.Be .INIT.  16 u- 102400.0000.000   0.000
  voxl-nyc-15.ser .INIT.  16 u- 102400.0000.000   0.000
  xen1.rack911.co .INIT.  16 u- 102400.0000.000   0.000
  ntp1.Housing.Be .INIT.  16 u- 102400.0000.000   0.000

 I do need that port 123 open on the router ?

The important thing to know is that NTP uses UDP rather than TCP.
E.g. machines from my university cannot use remote NTP servers because
all UDP traffic is filtered away (they do have local NTP server which
get synchronized with remote server, of course).

So you need outbound UDP port 123 open (inbound is only if you want
other machines to be able to synchronize with yours).


Stefan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/jwvr4ywpg35.fsf-monnier+gmane.linux.debian.u...@gnu.org



[Solved] Ntp daemon logs (ipv6)

2009-12-02 Thread Camaleón
On Tue, 01 Dec 2009 10:36:44 +, Camaleón wrote:

 Hello,
 
 Running Lenny, I am seeing the following ntp logs under daemon.log:
 
 ***
 Dec  1 07:33:36 serv2 ntpd[3841]: ntpd 4.2@1.1520-o Mon May 11
 20:13:01 UTC 2009 (1)
 
 Dec  1 07:33:36 serv2 ntpd[3842]: precision = 1.000 usec Dec  1 07:33:36
 serv2 ntpd[3842]: Listening on interface #0 wildcard, 0.0.0.0#123
 Disabled
 
 Dec  1 07:33:36 serv2 ntpd[3842]: Listening on interface #1 wildcard,
 ::#123 Disabled

(...)

 These entries are being repeated every 5 minutes or so, flooding the
 dameon.log file.
 
 It seems ntpd tries to bind to the ipv6 address of the bond0 interface
 and fails.
 
 Any clue on this? :-?

The error was due to a lack of Internet connection (no dsl for a short 
period of time). As soon as the line was back, the error is gone.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Ntp daemon logs (ipv6)

2009-12-01 Thread Camaleón
Hello,

Running Lenny, I am seeing the following ntp logs under daemon.log:

***
Dec  1 07:33:36 serv2 ntpd[3841]: ntpd 4.2@1.1520-o Mon May 11 20:13:01 UTC 
2009 (1)

Dec  1 07:33:36 serv2 ntpd[3842]: precision = 1.000 usec
Dec  1 07:33:36 serv2 ntpd[3842]: Listening on interface #0 wildcard, 
0.0.0.0#123 Disabled

Dec  1 07:33:36 serv2 ntpd[3842]: Listening on interface #1 wildcard, ::#123 
Disabled

Dec  1 07:33:36 serv2 ntpd[3842]: bind() fd 18, family 10, port 123, scope 4, 
addr fe80::230:48ff:fe76:c1ba, in6_is_addr_multicast=0 flags=0x11 fails: Cannot 
assign requested address

Dec  1 07:33:36 serv2 ntpd[3842]: unable to create socket on bond0 (2) for 
fe80::230:48ff:fe76:c1ba#123

Dec  1 07:33:36 serv2 ntpd[3842]: failed to initialize interface for address 
fe80::230:48ff:fe76:c1ba

Dec  1 07:33:36 serv2 ntpd[3842]: Listening on interface #3 lo, ::1#123 Enabled

Dec  1 07:33:36 serv2 ntpd[3842]: Listening on interface #4 lo, 127.0.0.1#123 
Enabled

Dec  1 07:33:36 serv2 ntpd[3842]: Listening on interface #5 bond0, 
172.16.0.11#123 Enabled

Dec  1 07:33:36 serv2 ntpd[3842]: kernel time sync status 0040

Dec  1 07:33:36 serv2 ntpd[3842]: frequency initialized 28.424 PPM from 
/var/lib/ntp/ntp.drift

Dec  1 07:36:16 serv2 ntpd[3949]: signal_no_reset: signal 17 had flags 400
Dec  1 07:36:17 serv2 ntpd[3842]: bind() fd 21, family 10, port 123, scope 4, 
addr fe80::230:48ff:fe76:c1ba, in6_is_addr_multicast=0 flags=0x11 fails: Cannot 
assign requested address

Dec  1 07:36:17 serv2 ntpd[3842]: unable to create socket on bond0 (6) for 
fe80::230:48ff:fe76:c1ba#123
Dec  1 07:36:17 serv2 ntpd[3842]: failed to initialize interface for address 
fe80::230:48ff:fe76:c1ba

Dec  1 07:38:58 serv2 ntpd_initres[3949]: signal_no_reset: signal 14 had flags 
400

Dec  1 07:41:17 serv2 ntpd[3842]: bind() fd 21, family 10, port 123, scope 4, 
addr fe80::230:48ff:fe76:c1ba, in6_is_addr_multicast=0 flags=0x11 fails: Cannot 
assign requested address

Dec  1 07:41:17 serv2 ntpd[3842]: unable to create socket on bond0 (7) for 
fe80::230:48ff:fe76:c1ba#123

Dec  1 07:41:17 serv2 ntpd[3842]: failed to initialize interface for address 
fe80::230:48ff:fe76:c1ba

Dec  1 07:46:17 serv2 ntpd[3842]: bind() fd 21, family 10, port 123, scope 4, 
addr fe80::230:48ff:fe76:c1ba, in6_is_addr_multicast=0 flags=0x11 fails: Cannot 
assign requested address

Dec  1 07:46:17 serv2 ntpd[3842]: unable to create socket on bond0 (8) for 
fe80::230:48ff:fe76:c1ba#123

Dec  1 07:46:17 serv2 ntpd[3842]: failed to initialize interface for address 
fe80::230:48ff:fe76:c1ba
***

These entries are being repeated every 5 minutes or so, flooding the 
dameon.log file.

It seems ntpd tries to bind to the ipv6 address of the bond0 interface and 
fails.

Any clue on this? :-?

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



NTP Daemon

2006-09-29 Thread Michele Della Marina

I'm looking for a simple NTP client daemon to synchronize the time on
my debian server. I'm testing openntpd but I've this error message:
adjtime failed: Invalid argument

Could someone help me or suggest something?
Thanks


--
Michele Della Marina
[EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: NTP Daemon

2006-09-29 Thread CJ van den Berg
On Fri, Sep 29, 2006 at 12:21:20PM +0200, Michele Della Marina wrote:
 I'm looking for a simple NTP client daemon to synchronize the time on
 my debian server. I'm testing openntpd but I've this error message:
 adjtime failed: Invalid argument
 
 Could someone help me or suggest something?
 Thanks

aptitude install ntp-server and off you go.

I know it's called a server and you want a client but there's not really
much difference with NTP and the default configuration should be exactly
what you want.

-- 
CJ van den Berg

mailto:[EMAIL PROTECTED]
  xmpp:[EMAIL PROTECTED]


signature.asc
Description: Digital signature


Re: NTP Daemon

2006-09-29 Thread B_Kloss
Am Freitag, 29. September 2006 12:33 schrieb CJ van den Berg:
 On Fri, Sep 29, 2006 at 12:21:20PM +0200, Michele Della Marina wrote:
  I'm looking for a simple NTP client daemon to synchronize the time on
  my debian server. I'm testing openntpd but I've this error message:
  adjtime failed: Invalid argument
 
  Could someone help me or suggest something?
  Thanks

 aptitude install ntp-server and off you go.

 I know it's called a server and you want a client but there's not
 really much difference with NTP and the default configuration should be
 exactly what you want.

Maybe you might install ntpdate in addition. I think this makes the adjustment 
of the clock quicker once the ntp-'server' has got the time.

Bernd


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: NTP Daemon

2006-09-29 Thread Stefan Monnier
 I'm looking for a simple NTP client daemon to synchronize the time on
 my debian server. I'm testing openntpd but I've this error message:
 adjtime failed: Invalid argument
 
 Could someone help me or suggest something?
 Thanks

 aptitude install ntp-server and off you go.

I believe it's now called just `ntp'.

 I know it's called a server and you want a client but there's not really
 much difference with NTP and the default configuration should be exactly
 what you want.

Indeed.  Incidentally `openntpd' is also both a client and a server.
Openntpd is OK but it seems that it was developped for a kernel whose
time-tracking facilities are not as sophisticated as Linux's (at least they
don't use them).


Stefan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: NTP Daemon

2006-09-29 Thread Miles Fidelman

Stefan Monnier wrote:

I'm looking for a simple NTP client daemon to synchronize the time on
my debian server. I'm testing openntpd but I've this error message:
adjtime failed: Invalid argument

Could someone help me or suggest something?
Thanks
  


  

aptitude install ntp-server and off you go.



I believe it's now called just `ntp'.

  

I know it's called a server and you want a client but there's not really
much difference with NTP and the default configuration should be exactly
what you want.



Indeed.  Incidentally `openntpd' is also both a client and a server.
Openntpd is OK but it seems that it was developped for a kernel whose
time-tracking facilities are not as sophisticated as Linux's (at least they
don't use them).
  

did the following on my recent Sarge install, works like a charm:
apt-get install ntp ntp-doc ntp-server ntpdate


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: NTP Daemon

2006-09-29 Thread Marc Shapiro

Michele Della Marina wrote:


I'm looking for a simple NTP client daemon to synchronize the time on
my debian server. I'm testing openntpd but I've this error message:
adjtime failed: Invalid argument

Could someone help me or suggest something?
Thanks


I have been using chrony for quite a while and am happy with it.  It has 
the advantage that, for boxes with an intermittant internet connection, 
it can track the rate of time differential between the local system and 
the ntp server and adjust the time incrementally while the box is not 
online, thus keeping the local time more accurate at such times.


:~$ apt-cache show chrony
Package: chrony
Priority: extra
Section: admin
Installed-Size: 796
Maintainer: John Hasler [EMAIL PROTECTED]
Architecture: i386
Version: 1.20-8
Depends: libc6 (= 2.3.2.ds1-21), libncurses5 (= 5.4-1), libreadline4 
(= 4.3-1)

Conflicts: ntp, ntpsimple, ntprefclock
Filename: pool/main/c/chrony/chrony_1.20-8_i386.deb
Size: 323020
MD5sum: 715ca8920bbf1c55e13730ed6a7ee6d4
SHA1: 26ac59b4ef03ce024564df5e82d283f76ab56bbb
SHA256: 94a3a50c1d50a7dfea7274a7a78803946a602ef2132cfadcc220cfbd06e24dca
Description: Sets your computer's clock from time servers on the Net
It consists of a pair of programs :
`chronyd'.  This is a daemon which runs in background on the system.  It
obtains measurements (e.g. via the network) of the system's offset
relative to other systems, and adjusts the system time accordingly.  For
isolated systems, the user can periodically enter the correct time by hand
(using `chronyc').  In either case, `chronyd' determines the rate at which
the computer gains or loses time, and compensates for this.  Chronyd
implements the NTP protocol and can act as either a client or a server.
`chronyc'.  This is a command-line driven control and monitoring program.
An administrator can use this to fine-tune various parameters within the
daemon, add or delete servers etc whilst the daemon is running.

--
Marc Shapiro

No boom today. Boom tomorrow. There's always a boom tomorrow.
What?! Look, somebody's got to have some damn perspective around here.
Boom. Sooner or later ... boom!

- Susan Ivanova: B5 - Grail


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: NTP Daemon

2006-09-29 Thread Rick Thomas


On Sep 29, 2006, at 9:27 AM, Stefan Monnier wrote:

I'm looking for a simple NTP client daemon to synchronize the  
time on

my debian server. I'm testing openntpd but I've this error message:
adjtime failed: Invalid argument

Could someone help me or suggest something?
Thanks



aptitude install ntp-server and off you go.


I believe it's now called just `ntp'.


In etch/testing, yes, it's just ntp.  In sarge/stable, there are a  
confusing array of ntp* packages.


In etch I recommend just ntp.  Do not install ntpdate with ntp  
in etch unless you really know what you're doing.  The functionality  
that used to be offered by ntpdate[*] has been subsumed into the ntp  
package by adding the -g option to the ntpd daemon.  Adding ntpdate  
on top will just confuse things in obscure ways.


For sarge, I recommend installing both ntpdate and ntp-simple.   
The ntpdate package will do a one-time adjustment at bootup, and the  
ntp-simple package (which depends on the ntp-server package which  
has the real meat) will keep the clock in sync on a long-term basis  
after bootup.


Either setup should just work right out of the box[**].

In both cases, it should be able to cope well with intermittent  
internet connectivity.


If you want to know more about the details, and there are *lots* of  
fascinating details, add the ntp-doc package.


Enjoy!

Rick


[*] the ntpdate program (and the -g option to etch's ntpd daemon)  
does a one-time adjustment of the system clock, usually at system  
startup --- that works regardless of how far off the system clock  
is.  This may possibly be needed due to an extended internet outage  
or power failure or a dying cmos battery.


[**] If you're interested in keeping your system clock synced with  
sub-millisecond accuracy, you'll need to tune the configuration file  
in /etc/ntp.conf.  Most people don't care, and can get by just fine  
with the default configuration.






--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]