RE: NTP-UTC Time

From: Jay Hennigan (jay@xxxxxxxx)
Date: Thu Jul 18 2002 - 23:33:01 GMT-3


   
On Thu, 18 Jul 2002, Anthony Pace wrote:

> The way I have been doing this is to set up TIMEZONE and SUMMERTIME and
> then set the clock on the NTP MASTER and it reflects the time for my
> timezone and I assume that routers in different timezones will offset
> their timezone accordingly. I am guessing that an NTP client who synced
> up with my MASTER, and it had no TIMEZONE specified would wind up
> offsetting my time as if they were on GMT.

Correct.

> Is it considered correct to setup TIMEZONE and SUMMERTIME and then set
> the clock, thereby avoiding calculating the offset from GMT or wheather
> its DLT or not?

Well, you specify the offset when you set up timezone. The string "PST"
or whatever is just a character string that gets pasted into the display.
It's the "-8" that does the work.

So you don't "calculate" the offset, but you must specify it, and if you
don't specify it correctly your clock will be wrong. The summer-time
recurring" paramater will replace the character string and offset by one
hour for daylight savings based on the April/October Sunday algorithm.

r1(config)#clock timezone FOOBAR -8
r1#sho clock
19:25:27.291 FOOBAR Thu Jul 18 2002
r1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
r1(config)#clock timezone PST -8
r1(config)#^Z
r1#conf t
5w6d: %SYS-5-CONFIG_I: Configured from console by console
r1#sho clock
19:26:32.199 PST Thu Jul 18 2002
r1#conf t
r1(config)#clock summer-time FOOBARBAZ recurring
r1(config)#^Z
r1#sho clock
5w6d: %SYS-5-CONFIG_I: Configured from console by console
r1#sho clock
20:27:07.271 FOOBARBAZ Thu Jul 18 2002

--
Jay Hennigan - CCIE #7880 - Network Administration - jay@west.net
NetLojix Communications, Inc.  -  http://www.netlojix.com/
WestNet:  Connecting you to the planet.  805 884-6323


This archive was generated by hypermail 2.1.4 : Sat Sep 07 2002 - 19:36:36 GMT-3