Synchronizing time

How would you go about snychronizing the clocks on a large number of QNX
systems? The only way I’ve found to change the time on a QNX box THAT
WORKS is through phlocale.

hamtaro@hotmail.com sed in <bnm299$e4o$1@inn.qnx.com>:

How would you go about snychronizing the clocks on a large number of QNX

I’ve been using ntp4 without major problems, but never tried out
on large clusters.

It should also depend on what inter-node comm line you can use
(Ethernet? Serial? Parallel? SCSI? I2C? GPIO?)

kabe

Roger Smith wrote:

How would you go about snychronizing the clocks on a large number of
QNX systems? The only way I’ve found to change the time on a QNX box
THAT WORKS is through phlocale.

We use a cron job to synchronize our development network (otherwise
‘make’ is always unhappy about the file dates :slight_smile: ). Here’s my script,
executed once in an hour:


#!/bin/sh
SERVER=qnx6-server

if [ X$HOSTNAME = X$SERVER ] ; then

exit 0
fi

if test -d /net/$SERVER ; then

echo “Synchronizing local time …”

TZ=UTC /sbin/rtc net $SERVER

TZ=$(cat /etc/TIMEZONE) /sbin/rtc -s hw

date
else
echo “Synchronizing local time … failed: No server found!”
fi

--------------------- snip here --------------------------------------

HTH,

Karsten.

\


| / | __ ) | Karsten.Hoffmann@mbs-software.de MBS-GmbH
| |/| | _ _
\ Phone : +49-2151-7294-38 Karsten Hoffmann
| | | | |
) |__) | Fax : +49-2151-7294-50 Roemerstrasse 15
|| ||// Mobile: +49-172-3812373 D-47809 Krefeld