Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* OpenVMS 7.1/UCX 4.1 Network Time Protocol question
@ 1998-04-03  5:00 Dave Hamby
  1998-04-07  4:00 ` Hoff Hoffman
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Hamby @ 1998-04-03  5:00 UTC (permalink / raw)



I'm hoping to use network time protocol to keep the OS clocks synchronized
on three machines, two of which are clustered. I have two of the machines
here for testing. The third is at the client's site.

Currently, I have the two configured as peers and have configured 2 public
NTP nodes as "servers". The servers are not reachable so just the two peers
are exchanging information.

Both peers are OpenVMS 7.1 and UCX 4.1 with the patch.

Unfortunately, DEC's manual section on NTP is vague. I suspect someone
compiled and linked it and got it to run but doesn't really understand what
it does or how it should behave. Between the manual and being new to NTP
I've got a couple of questions.

1. As I understand it, NTP will calculate an estimate of UTC from the
available time sources. Does the UCX NTP adjust the UTC side calculation
performed in OpenVMS 7.1?

2. Does UCX NTP also adjust the OpenVMS clock?

3. The OpenVMS time libraries retain the original behavior (return OS time)
unless the application is compiled with feature macros set to use UTC
behavior (DEC is real good about not breaking dusty DECKS). I believe the
application (a purchased Plant Information Management System) is compiled
for the original behavior. I'll verify this.







^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: OpenVMS 7.1/UCX 4.1 Network Time Protocol question
  1998-04-03  5:00 OpenVMS 7.1/UCX 4.1 Network Time Protocol question Dave Hamby
@ 1998-04-07  4:00 ` Hoff Hoffman
  1998-04-08  4:00   ` Peter LANGSTOEGER
  0 siblings, 1 reply; 3+ messages in thread
From: Hoff Hoffman @ 1998-04-07  4:00 UTC (permalink / raw)





  Everything I ever knew about NTP and UTC, I've tried to forget...  :-)

In article <3524f258.0@news.scsn.net>, "Dave Hamby" <hambyd@queuesys.com> writes:
:I'm hoping to use network time protocol to keep the OS clocks synchronized...
..
:Both peers are OpenVMS 7.1 and UCX 4.1 with the patch.
..
:Unfortunately, DEC's manual section on NTP is vague. I suspect someone
:compiled and linked it and got it to run but doesn't really understand what
:it does or how it should behave. Between the manual and being new to NTP
:I've got a couple of questions.

  Having looked at more than my share of internet RFCs over the years,
  and having implemented or worked on products based on various RFCs,
  I'd hesitate to believe anyone that claimed to understand anything in
  an RFC. :-)  And if there is more than one way to interprete an RFC,
  you will eventually have to interoperate with each variant... :-)  At
  the same time.  :-)

:1. As I understand it, NTP will calculate an estimate of UTC from the
:available time sources. Does the UCX NTP adjust the UTC side calculation
:performed in OpenVMS 7.1?

  On OpenVMS, UCX NTP is tied to the local SYS$TIMEZONE_DIFFERENTIAL
  value, and this allows NTP to correctly adjust the local system time.
  (Having a correct setting for the Timezone Differntial Factor (TDF)
  became of central interest to applications starting in V7.0...)  And
  with UCX, the SYS$TIMEZONE_DIFFERENTIAL needs to match the timezone
  that the system is configured for.  The TDF is the offset from the
  "Zulu", "Greenwich", or UTC time -- yes, I know that this comparison
  will offend some, and that I am oversimplying, and I know that these
  three times are officially not necessarily the same timebase.  (But
  for my purposes, they can be treated as the same time. :-)

  On OpenVMS, the value of UTC is derived from the local system time,
  by way of the TDF.  (This means that OpenVMS system time is affected
  by changes to and from daylight savings time, but that NTP does not
  trigger this alone as UTC is the same -- one manually triggers the
  changeover to/from daylight time.)  For those into collecting the
  names of arcane OpenVMS data cells, please add EXE$GQ_TDF... 

  And on OpenVMS, sys$manager:UTC$CONFIGURE_TDF.COM is the core UTC
  configuration procedure, and creates the environment used by NTP
  and by the C run-time library.

  Also check the settings using UCX> SHOW CONFIG TIME

  And check the configuration in UCX$NTP.CONF.

  And check sys$help:daylight_savings.com.

  And remember that a TDF value of -13 indicates the TDF is invalid or
  has not been initialized...

:2. Does UCX NTP also adjust the OpenVMS clock?

  Yes, it does.

:3. The OpenVMS time libraries retain the original behavior (return OS time)
:unless the application is compiled with feature macros set to use UTC
:behavior (DEC is real good about not breaking dusty DECKS). I believe the
:application (a purchased Plant Information Management System) is compiled
:for the original behavior. I'll verify this.

  The only applications that tend to behave oddly when time services
  are enabled are programs that directly reset the system time, via
  SET TIME or via sys$setime.  Very few applications use these calls.
  (I don't know that UCX NTP blocks these direct time alterations for
  certain, but I suspect it should...)

  I would, however, recommend testing to confirm that this application
  continues to operate.  But you knew I'd say that.  :-)

 -------------------------- pure personal opinion ---------------------------
 Hoff (Stephen) Hoffman   OpenVMS Engineering   hoffman@xdelta.ZZenet.dec.com
  note to those folks not contributing spam -- there is no ZZ in my address




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: OpenVMS 7.1/UCX 4.1 Network Time Protocol question
  1998-04-07  4:00 ` Hoff Hoffman
@ 1998-04-08  4:00   ` Peter LANGSTOEGER
  0 siblings, 0 replies; 3+ messages in thread
From: Peter LANGSTOEGER @ 1998-04-08  4:00 UTC (permalink / raw)



In article <6ge7de$9at@usenet.pa.dec.com>, hoffman@xdelta.enet.dec.nospam (Hoff Hoffman) writes:
>[snip]
>  And check sys$help:daylight_savings.com.

SYS$EXAMPLES:DAYLIGHT_SAVINGS.COM

------------------------------------------------------------------------
Peter "EPLAN" LANGSTOEGER           Tel.    +43 1 81111-2382
Network and OpenVMS system manager  Fax.    +43 1 81111-888
Technical Computer Center (ADV)     E-mail  eplan@kapsch.net
<<< KAPSCH AG  Wagenseilgasse 1     PSImail PSI%(0232)281001141::EPLAN
A-1121 VIENNA  AUSTRIA              "I'm not a pessimist, I'm a realist"



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-04-08  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-04-03  5:00 OpenVMS 7.1/UCX 4.1 Network Time Protocol question Dave Hamby
1998-04-07  4:00 ` Hoff Hoffman
1998-04-08  4:00   ` Peter LANGSTOEGER

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox