• May 22, 2012, 08:36:48 PM
Welcome, Guest. Please login or register. Registration is free.
Did you miss your activation email?

Author Topic: NTP Time and DST time not syncing  (Read 1049 times)

0 Members and 1 Guest are viewing this topic.

Offline Aggie87

  • Rookie
  • **
  • Posts: 19
NTP Time and DST time not syncing
« on: April 06, 2011, 02:21:35 PM »
Guys,

We are in North Carolina and I have a NTP server setup and configure.  It is working great on all of the ERS5000 switches, however on the ERS8600 it is not.  I followed the command Mike posted however the time is still 30 minutes off and the hardware time is different.  Any Idea on how to fix this.


COG8610_TOP:5# show date
local time:    WED APR 06 14:47:52 2011 EST
hardware time: WED APR 06 18:07:52 2011 UTC
COG8610_TOP:5# show date
local time:    WED APR 06 14:50:42 2011 EST
hardware time: WED APR 06 18:10:42 2011 UTC


Offline Aggie87

  • Rookie
  • **
  • Posts: 19
Re: NTP Time and DST time not syncing
« Reply #1 on: April 06, 2011, 02:45:25 PM »
This are the command I used from Mike's posting.

config bootconfig tz dst-name "EDT"
config bootconfig tz name "EST"
config bootconfig tz offset-from-utc 300
config bootconfig tz dst-end M11.1.0/0200
config bootconfig tz dst-start M3.2.0/0200

Offline Michael McNamara

  • Administrator
  • Hero Member
  • *****
  • Posts: 2517
    • Michael McNamara
Re: NTP Time and DST time not syncing
« Reply #2 on: April 06, 2011, 03:30:59 PM »
The switch still believes it's in EST (Eastern Standard Time), look at the output from your command.

Here's the output from one of my switches;

sw-ccr-8600-b.acme.org:5# show date
local time:    WED APR 06 15:25:12 2011 EDT
hardware time: WED APR 06 19:25:12 2011 UTC


You have a valid/working NTP server configured?

sw-ccr-8600-b.acme.org:5# show ntp info

Sub-Context: clear config dump monitor mplsping mplstrace peer show switchover test trace wsm asfm sam
Current Context:

                      enable : true
                    interval : 15
last ntp update:

          latest update time : WED APR 06 15:13:02 2011 EDT
             synchronized to : 10.1.20.1 (Stratum: 3)


Good Luck!
« Last Edit: March 10, 2012, 01:33:40 PM by Michael McNamara »
We've been helping network engineers, system administrators and technology professionals since June 2009.
If you've found this site useful or helpful, please help me spread the word. Link to us in your blog or homepage - Thanks!

Offline mdieter1

  • Rookie
  • **
  • Posts: 21
Re: NTP Time and DST time not syncing
« Reply #3 on: April 08, 2011, 01:31:47 PM »
After entering the time commands that you listed in the bootconfig (and saving the bootconfig, I assume), did you reboot?
Remember, any changes to the bootconfig require a reboot to become active.

In addition to all the commands you listed, there is also a flag for DST (it is not in the 'tz' hierarchy, but in the 'flags' hierarchy) that must be set to enabled---you should confirm that yours is set to enabled.

Offline Aggie87

  • Rookie
  • **
  • Posts: 19
Re: NTP Time and DST time not syncing
« Reply #4 on: April 08, 2011, 03:01:23 PM »
Thanks everyone for your help, however the setting below seem to be working I will know for sure once the old DST passes by.  I didn't do a reboot.


COG8610_TOP:5# config bootconfig tz info
tz dst-end M11.1.0/0200
tz dst-name "EDT"
tz dst-offset 60
tz dst-start M3.2.0/0200
tz name "EDT"
tz offset-from-utc 240
TIMEZONE=EDT:EDT:240:::0

Offline Michael McNamara

  • Administrator
  • Hero Member
  • *****
  • Posts: 2517
    • Michael McNamara
Re: NTP Time and DST time not syncing
« Reply #5 on: April 08, 2011, 04:28:38 PM »
In general @mdieter1 is correct about a reboot for any of the bootconfig statements. However, I don't believe I had to reboot to enable daylight saving time support.

Cheers!
We've been helping network engineers, system administrators and technology professionals since June 2009.
If you've found this site useful or helpful, please help me spread the word. Link to us in your blog or homepage - Thanks!

Offline superbaim

  • Jr. Member
  • **
  • Posts: 40
Re: NTP Time and DST time not syncing
« Reply #6 on: November 17, 2011, 02:14:25 AM »
My Core Switch is not synced to although it said it sync

this is the info from my core
ERS-8610:6# show ntp info

Sub-Context: clear config dump monitor show test trace wsm asfm sam
Current Context:
                    enable : true
                    interval : 15
last ntp update:
          latest update time : THU NOV 17 07:05:01 2011 UTC
          synchronized to : 172.16.30.25 (Stratum: 3)

ERS-8610:6# date
local time:    THU NOV 17 07:13:42 2011 WIT
hardware time: THU NOV 17 07:13:42 2011 UTC



this is my ntp server time :
[root@DPRNMS01 raddb]# date
Thu Nov 17 14:14:08 WIT 2011




Offline Michael McNamara

  • Administrator
  • Hero Member
  • *****
  • Posts: 2517
    • Michael McNamara
Re: NTP Time and DST time not syncing
« Reply #7 on: November 17, 2011, 10:54:14 AM »
ERS-8610:6# date
local time:    THU NOV 17 07:13:42 2011 WIT
hardware time: THU NOV 17 07:13:42 2011 UTC

You have a configuration issue since WIT is +900 UTC.

The two lines I've quote above should have a delta of 9 hours and should not be the same.

Once you set your timezone properly everything will look right.

Good Luck!
We've been helping network engineers, system administrators and technology professionals since June 2009.
If you've found this site useful or helpful, please help me spread the word. Link to us in your blog or homepage - Thanks!

Offline superbaim

  • Jr. Member
  • **
  • Posts: 40
Re: NTP Time and DST time not syncing
« Reply #8 on: November 17, 2011, 11:21:08 AM »
you right , its depend in setting timezone, i live in Jakarta(West Indonesian Time) GMT+7 , what command to use ?


thx

Offline Michael McNamara

  • Administrator
  • Hero Member
  • *****
  • Posts: 2517
    • Michael McNamara
Re: NTP Time and DST time not syncing
« Reply #9 on: November 17, 2011, 09:57:54 PM »
You need to set the offset in the bootconfig;

config bootconfig tz offset-from-utc

The value is in minutes so 7 hours (* 60 minutes) = 420. I'm not sure if it needs to be +420 or -420.

Cheers!
We've been helping network engineers, system administrators and technology professionals since June 2009.
If you've found this site useful or helpful, please help me spread the word. Link to us in your blog or homepage - Thanks!

Offline superbaim

  • Jr. Member
  • **
  • Posts: 40
Re: NTP Time and DST time not syncing
« Reply #10 on: November 18, 2011, 01:24:49 AM »
You need to set the offset in the bootconfig;

config bootconfig tz offset-from-utc

The value is in minutes so 7 hours (* 60 minutes) = 420. I'm not sure if it needs to be +420 or -420.

Cheers!

its sync now, its accept -420 value , cheers


Offline Michael McNamara

  • Administrator
  • Hero Member
  • *****
  • Posts: 2517
    • Michael McNamara
Re: NTP Time and DST time not syncing
« Reply #11 on: November 18, 2011, 11:50:44 AM »
I'm happy to hear that I was able to help.
We've been helping network engineers, system administrators and technology professionals since June 2009.
If you've found this site useful or helpful, please help me spread the word. Link to us in your blog or homepage - Thanks!