* time daemon (timed) questions
@ 1993-05-05 15:47 Michael Winiarski
0 siblings, 0 replies; only message in thread
From: Michael Winiarski @ 1993-05-05 15:47 UTC (permalink / raw)
--
My primary question is:
Should a date/time change on a host that is managed by a slave timed
cause a date/time change on all hosts managed by a master timed?
The basis of this question comes from an OSF extension to the date command.
The date command has a '-n' flag which "does not set the time globally on
all machines in a local area network that have their clock synchronized ..."
Upon reading the date source code, if '-n' is not specified, it will attempt
to send a TSP_SETDATE message to the local timed daemon. Regardless of the
timed handling of the message, the local host's time will be set.
If the local timed daemon is running as a slave, it will send a
TSP_SETDATEREQ message to the master timed, which it turn accepts this
message and propogates this "new time" to all the slave timeds on the net
with a TSP_SETTIME message. If the local timed is master, then the new time
is propogated to all slave timeds with the TSP_SETTIME message.
Is it the intended design that the master timed daemon should blindly accept
a TSP_SETDATEREQ and then propogate it on the net? Normally, the master is
figuring out the average network time and emitting TSP_ADJTIME messages to
the slaves (and itself?). If a slave host's time is outside of some time
delta, it's time is not figured into the average, but it does get a time
adjustment.
In our test case, one of the hosts on our net had an incorrect timezone
(TZ); it was off by an hour. The super-user on this host noticed that the
time didn't match the wall clock, so the date was changed (no...the system
was not in single-user mode). This action caused all the hosts on the net to
have their times adjusted to 1 hour into the future. Needless to say, this
can wreak havoc on cron jobs and the like.
In summary, is the above-mentioned interaction between the timed daemon and
the date command intended? Is there a design problem somewhere, or am I
chasing a non-problem? If I have stated anything that is incorrect, please
set me straight.
Any thoughts on the matter are appreciated. Please reply by email (rather
than posting followups) since I do not frequent this newsgroup.
----------
Michael L. Winiarski Internet: mikew@hicomb.hi.com
Hitachi Computer Products (America), Inc. uunet: uunet!hicomb!mikew
Reservoir Place Phone: (617) 890-0444
1601 Trapelo Road FAX: (617) 890-4998
Waltham, MA 02154
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1993-05-05 15:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-05-05 15:47 time daemon (timed) questions Michael Winiarski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox