Unix Technical Forum

ntpd question

This is a discussion on ntpd question within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> Hi, I'm trying to get the ntpd client working on my OBSD 3.8 server. Problem is that I keep ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 07:06 AM
Huub
 
Posts: n/a
Default ntpd question

Hi,

I'm trying to get the ntpd client working on my OBSD 3.8 server. Problem
is that I keep getting the wrong time. Though I am in the Netherlands,
if I pick .nl ntpd-servers, the time I get is either 1 or 2 hours ahead.
If I select no server at all, I get a time 1 hour ahead.
No such problem on NBSD. Anyone an idea please?

Thanks.

Huub
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 07:06 AM
steven mestdagh
 
Posts: n/a
Default Re: ntpd question

Huub <v.niekerk@hccnet.nl> wrote:
> Hi,
>
> I'm trying to get the ntpd client working on my OBSD 3.8 server. Problem
> is that I keep getting the wrong time. Though I am in the Netherlands,
> if I pick .nl ntpd-servers, the time I get is either 1 or 2 hours ahead.
> If I select no server at all, I get a time 1 hour ahead.
> No such problem on NBSD. Anyone an idea please?


is your timezone configured correctly?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 07:06 AM
jpd
 
Posts: n/a
Default Re: ntpd question

Begin <43b247a4$0$19147$e4fe514c@dreader28.news.xs4all.n l>
On 2005-12-28, Huub <v.niekerk@hccnet.nl> wrote:
[snip: wrestling with ntpd]
> if I pick .nl ntpd-servers, the time I get is either 1 or 2 hours ahead.
> If I select no server at all, I get a time 1 hour ahead.


Timezones. ntp deals with GMT. Your machine should have its clock set to
GMT, too. Then set the apropriate time zone so date(1) will print the
right time, and automatically adjust for daylight savings time[0] as
well.


[0] ``summer time''.

--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
This message was originally posted on Usenet in plain text.
Any other representation, additions, or changes do not have my
consent and may be a violation of international copyright law.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-16-2008, 07:06 AM
Huub
 
Posts: n/a
Default Re: ntpd question

steven mestdagh wrote:
> Huub <v.niekerk@hccnet.nl> wrote:
>
>>Hi,
>>
>>I'm trying to get the ntpd client working on my OBSD 3.8 server. Problem
>>is that I keep getting the wrong time. Though I am in the Netherlands,
>>if I pick .nl ntpd-servers, the time I get is either 1 or 2 hours ahead.
>>If I select no server at all, I get a time 1 hour ahead.
>>No such problem on NBSD. Anyone an idea please?

>
>
> is your timezone configured correctly?


Yes, during setup I configured the Europe - Amsterdam timezone.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-16-2008, 07:06 AM
Huub
 
Posts: n/a
Default Re: ntpd question

>
> Timezones. ntp deals with GMT. Your machine should have its clock set to
> GMT, too. Then set the apropriate time zone so date(1) will print the
> right time, and automatically adjust for daylight savings time[0] as
> well.
>
>
> [0] ``summer time''.
>


During setup I configured my machine for Europe - Amsterdam. And I
figure that any .nl ntp-server will have that same timezone.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-16-2008, 07:06 AM
jKILLSPAM.schipper@math.uu.nl
 
Posts: n/a
Default Re: ntpd question

Huub <v.niekerk@hccnet.nl> wrote:
>>
>> Timezones. ntp deals with GMT. Your machine should have its clock set to
>> GMT, too. Then set the apropriate time zone so date(1) will print the
>> right time, and automatically adjust for daylight savings time[0] as
>> well.
>>
>>
>> [0] ``summer time''.
>>

>
> During setup I configured my machine for Europe - Amsterdam. And I
> figure that any .nl ntp-server will have that same timezone.


All NTP servers are using UTC (GMT minus summer time). On account of NTP
being a global protocol, and so on - in fact, pretty much all
time-dependent stuff on the internet is done using UTC.

Oh, and you do know to set your hardware clock to UTC, no?

Joachim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-16-2008, 07:06 AM
Huub
 
Posts: n/a
Default Re: ntpd question


>
> All NTP servers are using UTC (GMT minus summer time). On account of NTP
> being a global protocol, and so on - in fact, pretty much all
> time-dependent stuff on the internet is done using UTC.
>
> Oh, and you do know to set your hardware clock to UTC, no?
>
> Joachim


Well, I still have some odd things here. After some testing using 'date'
I set ntpd.conf to nl.pool.ntp.org. No luck. Then I changed the BIOS
clock to 1 hour before actual time and rebooted: time was ok! Why does
my NetBSD machine work on ntp with all settings actual and my OpenBSD
machine not? I'd think ntp = ntp in the same timezone, no matter what.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-16-2008, 07:06 AM
jKILLSPAM.schipper@math.uu.nl
 
Posts: n/a
Default Re: ntpd question

Huub <v.niekerk@hccnet.nl> wrote:
>> All NTP servers are using UTC (GMT minus summer time). On account of NTP
>> being a global protocol, and so on - in fact, pretty much all
>> time-dependent stuff on the internet is done using UTC.
>>
>> Oh, and you do know to set your hardware clock to UTC, no?

>
> Well, I still have some odd things here. After some testing using 'date'
> I set ntpd.conf to nl.pool.ntp.org. No luck. Then I changed the BIOS
> clock to 1 hour before actual time and rebooted: time was ok! Why does
> my NetBSD machine work on ntp with all settings actual and my OpenBSD
> machine not? I'd think ntp = ntp in the same timezone, no matter what.


Most UNIXes have, as a default, the hardware clock set to UTC and a
/etc/localtime file detailing the timezone one is in. I remember that,
at least on Linux, there's a configuration option to tell everything
that the clock is set to local time. I imagine other systems would have
similar options, and that it might be enabled by default or by you some
time ago on NetBSD?

Joachim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:10 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com