Re: time off by 30 minutes

2002-09-21 Thread MikeM

On 9/20/2002 at 5:28 PM Len Conrad wrote:

>> >>I think the problem could be the -d (debug) option to ntpdate.
Try
>> >
>> ># rm /etc/localtime
>> ># ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
>> ># ntpdate time.nist.gov
>> >20 Sep 08:42:52 ntpdate[71492]: step time server 192.43.244.18
offset
>> >1784.223346 sec
>>  ^^^
>
># rm /etc/localtime
>
># ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
>
># date
>Fri Sep 20 16:54:07 CDT 2002(wall clock is + 30 minutes from this
time)
>
># date 1723
>Fri Sep 20 17:23:00 CDT 2002
>
># ntpdate -b tock.jrc.us
>20 Sep 16:55:49 ntpdate[8172]: step time server 65.211.109.11 offset 
>1780.396309 sec
>
># date
>Fri Sep 20 16:56:00 CDT 2002
>
>Is the peecee's hardware messed up?
 =


Probably not, the error is too consistent to be the type of hardware
errors I've seen.  

"Something" is preventing ntpdate from setting the clock.  I know that
ntpd has a 1000 second maximum on clock adjustments, but I do not think
that ntpdate has a similar limit.   My next step would be to take
ntpdate completely out of the picture.

Try running date to set the clock to the correct time, then run date
without any parameters to see what the time is.  If you still have the
1/2 hour differential, then you have eliminated ntpdate from the mix.
If you still have the error, then I would start looking at the
clock-setting process within FreeBSD to see if that may be blocking the
adjustment for some reason.






To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: time off by 30 minutes

2002-09-21 Thread Oliver Fromme

Kent Stewart <[EMAIL PROTECTED]> wrote:
 > Len Conrad wrote:
 > > Any way to change the SL without rebooting, it's a busy mail gateway?
 > > or otherwise to override this override?
 > 
 > You might be able to just drop to single user mode and set the time.

No, the security-level is not lowered when you drop to
single-user mode, and the kernel still enforces all the
restrictions.

 > Changing the kern_securelevel requires rebooting.

Well ...  :-)

If you have DDB (the kernel debugger) enabled in your
kernel, then you can press Ctrl-Alt-Esc on the console
(or send a Break signal if you have a serial console).
At the DDB prompt, type:

write securelevel 1
continue

Of course, that still means you have a short downtime,
because the services are unavailable while you're in
DDB.  But that's only a few seconds -- A full reboot
would take much longer.

Regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"All that we see or seem is just a dream within a dream" (E. A. Poe)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: time off by 30 minutes

2002-09-20 Thread Kent Stewart



Len Conrad wrote:

> 
>> Are you running a kern_secure level that prevents jumps of more than 1 
>> second?
> 
> 
> ah, I've commented it out but the person who set ip had rc.conf with 
> securelevel 2.  It that it??
> 
> dmesg:
> 
> Time adjustment clamped to +1 second
> Time adjustment clamped to +1 second
> Time adjustment clamped to +1 second
> Time adjustment clamped to +1 second
> Time adjustment clamped to +1 second
> Time adjustment clamped to +1 second
> Time adjustment clamped to +1 second
> Time adjustment clamped to +1 second
> Time adjustment clamped to +1 second
> Time adjustment clamped to +1 second
> Time adjustment clamped to +1 second


Yes, that is what is causing your problem.


> 
> Any way to change the SL without rebooting, it's a busy mail gateway?
> 
> or otherwise to override this override?


You might be able to just drop to single user mode and set the time. 
Changing the kern_securelevel requires rebooting.

Kent


> 
> Len
> 
> 
> 
> 
> www.menandmice.com/DNS-training : DNS Training
> BIND8NT.MEIway.com: Secure config ; DNS and mail interactions
> IMGate.MEIway.com : Free, proven config for anti-mail-abuse gateways
> 
> 
> .
> 


-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: time off by 30 minutes

2002-09-20 Thread Len Conrad


>Are you running a kern_secure level that prevents jumps of more than 1 second?

ah, I've commented it out but the person who set ip had rc.conf with 
securelevel 2.  It that it??

dmesg:

Time adjustment clamped to +1 second
Time adjustment clamped to +1 second
Time adjustment clamped to +1 second
Time adjustment clamped to +1 second
Time adjustment clamped to +1 second
Time adjustment clamped to +1 second
Time adjustment clamped to +1 second
Time adjustment clamped to +1 second
Time adjustment clamped to +1 second
Time adjustment clamped to +1 second
Time adjustment clamped to +1 second

Any way to change the SL without rebooting, it's a busy mail gateway?

or otherwise to override this override?

Len




www.menandmice.com/DNS-training : DNS Training
BIND8NT.MEIway.com: Secure config ; DNS and mail interactions
IMGate.MEIway.com : Free, proven config for anti-mail-abuse gateways


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: time off by 30 minutes

2002-09-20 Thread Kent Stewart



Len Conrad wrote:

> 
>> I have never got date to really change the time unless I followed the 
>> example of
>>
>>  The command:
>>
>>date 8506131627
>>
>>  sets the date to ``June 13, 1985, 4:27 PM''.
> 
> 
> # date 0209201743
> Fri Sep 20 17:43:00 CDT 2002
> 
> # ntpdate -b tock.jrc.us
> 20 Sep 17:13:49 ntpdate[9542]: step time server 65.211.109.11 offset 
> 1778.177441 sec
> 
> :((
> 
> thanks
> Len


Are you running a kern_secure level that prevents jumps of more than 1 
second?

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: time off by 30 minutes

2002-09-20 Thread Steven Goodwin

On Fri, 20 Sep 2002, Len Conrad wrote:
Sorry about this late response.  I'd finished the letter, about to send 
and my dialup quota kicked my off.  In Australia, dialup is still quite 
popular due to ridiculous prices for even capped broadband.

> 
> >I think the problem could be the -d (debug) option to ntpdate.  Try
> 
> # rm /etc/localtime
> # ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
> # ntpdate time.nist.gov
> 20 Sep 08:42:52 ntpdate[71492]: step time server 192.43.244.18 offset 
> 1784.223346 sec
> 
> but the correct time is 09:12

This is expected.  8:42 is the time (as your system reports) that you run
ntpdate with consideration to your timezone.  The offset is the difference
between your system's clock and GMT.  It is reporting about 30 minutes of
difference when you run the command but, if things are working as they
should, your new system clock should be adjusted by this amount.  
Consequently, if you execute the command again

ntpdate time.nist.gov

the offset should be something pretty close to zero and things should be
fine.  If not, and you are running the commands as root, then I have no
idea what is wrong.  Very puzzling.  The only other suggestion I would 
make is that you run ntpd as a substitute for ntpdate.  

killall nptd; ntpd -q 

after making an /etc/ntp.conf file.  Something like this should do the
trick although you may want to add more servers.

server time.nist.gov

driftfile /var/db/ntp.drift
logfile /var/log/ntp.log

authenticate no

Steve


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: time off by 30 minutes

2002-09-20 Thread Len Conrad


>I have never got date to really change the time unless I followed the 
>example of
>
>  The command:
>
>date 8506131627
>
>  sets the date to ``June 13, 1985, 4:27 PM''.

# date 0209201743
Fri Sep 20 17:43:00 CDT 2002

# ntpdate -b tock.jrc.us
20 Sep 17:13:49 ntpdate[9542]: step time server 65.211.109.11 offset 
1778.177441 sec

:((

thanks
Len



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: time off by 30 minutes

2002-09-20 Thread Kent Stewart



Len Conrad wrote:

> 
>> >>I think the problem could be the -d (debug) option to ntpdate.  Try
>> >
>> ># rm /etc/localtime
>> ># ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
>> ># ntpdate time.nist.gov
>> >20 Sep 08:42:52 ntpdate[71492]: step time server 192.43.244.18 offset
>> >1784.223346 sec
>>  ^^^
> 
> 
> # rm /etc/localtime
> 
> # ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
> 
> # date
> Fri Sep 20 16:54:07 CDT 2002(wall clock is + 30 minutes from this time)
> 
> # date 1723
> Fri Sep 20 17:23:00 CDT 2002


I have never got date to really change the time unless I followed the 
example of

  The command:

date 8506131627

  sets the date to ``June 13, 1985, 4:27 PM''.


Kent


> 
> # ntpdate -b tock.jrc.us
> 20 Sep 16:55:49 ntpdate[8172]: step time server 65.211.109.11 offset 
> 1780.396309 sec
> 
> # date
> Fri Sep 20 16:56:00 CDT 2002
> 
> Is the peecee's hardware messed up?
> 
> Len
> 
> 
> 
> 
> www.menandmice.com/DNS-training : DNS Training
> BIND8NT.MEIway.com: Secure config ; DNS and mail interactions
> IMGate.MEIway.com : Free, proven config for anti-mail-abuse gateways
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
> 
> .
> 


-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: time off by 30 minutes

2002-09-20 Thread Len Conrad


> >>I think the problem could be the -d (debug) option to ntpdate.  Try
> >
> ># rm /etc/localtime
> ># ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
> ># ntpdate time.nist.gov
> >20 Sep 08:42:52 ntpdate[71492]: step time server 192.43.244.18 offset
> >1784.223346 sec
>  ^^^

# rm /etc/localtime

# ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime

# date
Fri Sep 20 16:54:07 CDT 2002(wall clock is + 30 minutes from this time)

# date 1723
Fri Sep 20 17:23:00 CDT 2002

# ntpdate -b tock.jrc.us
20 Sep 16:55:49 ntpdate[8172]: step time server 65.211.109.11 offset 
1780.396309 sec

# date
Fri Sep 20 16:56:00 CDT 2002

Is the peecee's hardware messed up?

Len




www.menandmice.com/DNS-training : DNS Training
BIND8NT.MEIway.com: Secure config ; DNS and mail interactions
IMGate.MEIway.com : Free, proven config for anti-mail-abuse gateways


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: time off by 30 minutes

2002-09-20 Thread Len Conrad


>I think that the one you want is:
>ntpdate -b
>
>That will force the system clock to reset even if it is off by more
>than the maximum allowed step. It is normally used at boot time when
>you want the time to be set correctly immediately since the existing
>state of the clock is unknown.

# killall ntpd
No matching processes were found

# date
Fri Sep 20 13:15:32 CDT 2002 (always 30 minutes behind wall clock)

# ll /etc/localtime
lrwxr-xr-x  1 root  wheel  35 Sep 20 13:17 /etc/localtime -> 
/usr/share/zoneinfo/America/Chicago

# date 1346
Fri Sep 20 13:46:00 CDT 2002

# ntpdate -b time.nist.gov
20 Sep 13:16:44 ntpdate[91924]: step time server 192.43.244.18 offset 
1780.295789 sec

thanks anyway

Len




www.menandmice.com/DNS-training : DNS Training
BIND8NT.MEIway.com: Secure config ; DNS and mail interactions
IMGate.MEIway.com : Free, proven config for anti-mail-abuse gateways


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: time off by 30 minutes

2002-09-20 Thread Kevin Oberman

> Date: Fri, 20 Sep 2002 23:50:56 +1000 (EST)
> From: Steven Goodwin <[EMAIL PROTECTED]>
> Sender: [EMAIL PROTECTED]
> 
> On Fri, 20 Sep 2002, Len Conrad wrote:
> 
> > 
> > >
> > >Check your /etc/localtime is correct for your timezone.
> > >
> > >ln -s /usr/share/zoneinfo/America/ localtime
> > >
> > >where  is the correct location.
> > 
> > rm /etc/localtime
> > 
> > from /usr/share/zoneinfo/zone.tab:
> > 
> > US  +415100-0873900 America/Chicago Central Time
> > US  +450628-0873651 America/Menominee   Central Time - Michigan - 
> > Wisconsin border
> > US  +470659-1011757 America/North_Dakota/Center Central Time - 
> > North Dakota - Oliver County
> > 
> > I've tried rm old + ln new with all three of above, still 30 minutes late.
> > 
> > Where else is this determined?
> 
> I think the problem could be the -d (debug) option to ntpdate.  Try 
> 
> ntpdate time.nist.gov
> 
> as root and that should set your system clock to GMT.

I think that the one you want is:
ntpdate -b

That will force the system clock to reset even if it is off by more
than the maximum allowed step. It is normally used at boot time when
you want the time to be set correctly immediately since the existing
state of the clock is unknown.

R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]  Phone: +1 510 486-8634

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: time off by 30 minutes

2002-09-20 Thread Len Conrad


>Why dont you set it  by using
>date 200209201514
>and then use
>ntpdate  & ntpd
>to keep it current afterward..

this is what I always have done, but it's not working on this machine:

# killall ntp
No matching processes were found

# date 200209201048
Fri Sep 20 10:48:00 CDT 2002

# ll /etc/localtime
lrwxr-xr-x  1 root  wheel  35 Sep 20 08:42 /etc/localtime -> 
/usr/share/zoneinfo/America/Chicago

# ntpdate time.nist.gov
20 Sep 10:19:25 ntpdate[78703]: step time server 192.43.244.18 offset 
1783.164410 sec

# :(((

>cheers!

That TV show is cancelled until this problem is solved.

Len


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: time off by 30 minutes

2002-09-20 Thread MikeM

On 9/20/02 at 9:15 AM Len Conrad wrote:

>>I think the problem could be the -d (debug) option to ntpdate.  Try
>
># rm /etc/localtime
># ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
># ntpdate time.nist.gov
>20 Sep 08:42:52 ntpdate[71492]: step time server 192.43.244.18 offset 
>1784.223346 sec
 ^^^

 =

You might want to try manually setting the clock to be a little closer
to the actual time.

Also, don't use the nist server, it is already too busy.   Pick a
server near you from this list:
http://www.eecis.udel.edu/~mills/ntp/servers.htm

  




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: time off by 30 minutes

2002-09-20 Thread Jimmy Lantz

Why dont you set it  by using
date 200209201514
and then use
ntpdate  & ntpd
to keep it current afterward..
cheers!

At 08:41 2002-09-20 -0500, you wrote:


>>Check your /etc/localtime is correct for your timezone.
>>
>>ln -s /usr/share/zoneinfo/America/ localtime
>>
>>where  is the correct location.
>
>rm /etc/localtime
>
>from /usr/share/zoneinfo/zone.tab:
>
>US  +415100-0873900 America/Chicago Central Time
>US  +450628-0873651 America/Menominee   Central Time - Michigan - 
>Wisconsin border
>US  +470659-1011757 America/North_Dakota/Center Central Time - 
>North Dakota - Oliver County
>
>I've tried rm old + ln new with all three of above, still 30 minutes late.
>
>Where else is this determined?
>
>Len
>
>
>
>To Unsubscribe: send mail to [EMAIL PROTECTED]
>with "unsubscribe freebsd-questions" in the body of the message
>
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: time off by 30 minutes

2002-09-20 Thread Len Conrad


>I think the problem could be the -d (debug) option to ntpdate.  Try

# rm /etc/localtime
# ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
# ntpdate time.nist.gov
20 Sep 08:42:52 ntpdate[71492]: step time server 192.43.244.18 offset 
1784.223346 sec

but the correct time is 09:12

Len



www.menandmice.com/DNS-training : DNS Training
BIND8NT.MEIway.com: Secure config ; DNS and mail interactions
IMGate.MEIway.com : Free, proven config for anti-mail-abuse gateways


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: time off by 30 minutes

2002-09-20 Thread Steven Goodwin

On Fri, 20 Sep 2002, Len Conrad wrote:

> 
> >
> >Check your /etc/localtime is correct for your timezone.
> >
> >ln -s /usr/share/zoneinfo/America/ localtime
> >
> >where  is the correct location.
> 
> rm /etc/localtime
> 
> from /usr/share/zoneinfo/zone.tab:
> 
> US  +415100-0873900 America/Chicago Central Time
> US  +450628-0873651 America/Menominee   Central Time - Michigan - 
> Wisconsin border
> US  +470659-1011757 America/North_Dakota/Center Central Time - 
> North Dakota - Oliver County
> 
> I've tried rm old + ln new with all three of above, still 30 minutes late.
> 
> Where else is this determined?

I think the problem could be the -d (debug) option to ntpdate.  Try 

ntpdate time.nist.gov

as root and that should set your system clock to GMT.

Steve



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: time off by 30 minutes

2002-09-20 Thread Len Conrad


>
>Check your /etc/localtime is correct for your timezone.
>
>ln -s /usr/share/zoneinfo/America/ localtime
>
>where  is the correct location.

rm /etc/localtime

from /usr/share/zoneinfo/zone.tab:

US  +415100-0873900 America/Chicago Central Time
US  +450628-0873651 America/Menominee   Central Time - Michigan - 
Wisconsin border
US  +470659-1011757 America/North_Dakota/Center Central Time - 
North Dakota - Oliver County

I've tried rm old + ln new with all three of above, still 30 minutes late.

Where else is this determined?

Len



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



time off by 30 minutes

2002-09-20 Thread Len Conrad

# killall ntpd

# ntpdate -db time.nist.gov
20 Sep 06:52:39 ntpdate[63322]: ntpdate 4.1.0-a Wed Aug 14 18:56:48 GMT 
2002 (1)
transmit(192.43.244.18)
receive(192.43.244.18)
transmit(192.43.244.18)
receive(192.43.244.18)
transmit(192.43.244.18)
receive(192.43.244.18)
transmit(192.43.244.18)
receive(192.43.244.18)
transmit(192.43.244.18)
server 192.43.244.18, port 123
stratum 1, precision -17, leap 00, trust 000
refid [ACTS], delay 0.06598, dispersion 0.00110
transmitted 4, in filter 4
reference time:c1359156.3dc0980b  Fri, Sep 20 2002  7:21:42.241
originate timestamp: c1359181.62f5232d  Fri, Sep 20 2002  7:22:25.386
transmit timestamp:  c1358a88.039830e3  Fri, Sep 20 2002  6:52:40.014
filter delay:  0.06641  0.06598  0.08263  0.06641
  0.0  0.0  0.0  0.0
filter offset: 1785.351 1785.351 1785.343 1785.352
  0.00 0.00 0.00 0.00
delay 0.06598, dispersion 0.00110
offset 1785.351903

20 Sep 06:52:40 ntpdate[63322]: step time server 192.43.244.18 offset 
1785.351903 sec

this date is late by 30 minutes according to wall clock

# date 0722
Fri Sep 20 07:22:00 CDT 2002

# ntpdate -db time.nist.gov
20 Sep 06:53:06 ntpdate[63393]: ntpdate 4.1.0-a Wed Aug 14 18:56:48 GMT 
2002 (1)
transmit(192.43.244.18)
receive(192.43.244.18)
transmit(192.43.244.18)
receive(192.43.244.18)
transmit(192.43.244.18)
receive(192.43.244.18)
transmit(192.43.244.18)
receive(192.43.244.18)
transmit(192.43.244.18)
server 192.43.244.18, port 123
stratum 1, precision -17, leap 00, trust 000
refid [ACTS], delay 0.06648, dispersion 0.00136
transmitted 4, in filter 4
reference time:c1359197.3da2d72f  Fri, Sep 20 2002  7:22:47.240
originate timestamp: c135919b.6c2a8869  Fri, Sep 20 2002  7:22:51.422
transmit timestamp:  c1358aa2.4cface67  Fri, Sep 20 2002  6:53:06.300
filter delay:  0.06648  0.06688  0.06660  0.08636
  0.0  0.0  0.0  0.0
filter offset: 1785.101 1785.101 1785.101 1785.091
  0.00 0.00 0.00 0.00
delay 0.06648, dispersion 0.00136
offset 1785.101419

20 Sep 06:53:06 ntpdate[63393]: step time server 192.43.244.18 offset 
1785.101419 sec

Location is KS, USA.

Suggestions?

Len



www.menandmice.com/DNS-training : DNS Training
BIND8NT.MEIway.com: Secure config ; DNS and mail interactions
IMGate.MEIway.com : Free, proven config for anti-mail-abuse gateways


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message