ntp time server

Hi.

Can QNX 4 synchronize to an ntp time server?

How is this done?

TIA

Augie

Augie Henriques <augiehenriques@hotmail.com> wrote:

Hi.

Can QNX 4 synchronize to an ntp time server?

Probably .

How is this done?

Take a look on /usr/free – there should be a port ntp client/server
for this.

Essentially, you talk ntp protocol to the server, then you use
qnx_adj_time() to (gently) synchronise the QNX clock.

-David

QNX Training Services
dagibbs@qnx.com

Augie Henriques <augiehenriques@hotmail.com> wrote in message
news:9habi3$b1a$1@inn.qnx.com

Hi.

Can QNX 4 synchronize to an ntp time server?

Yes, with a contributed program

How is this done?

Find xntp*.tgz on the Contributed Software area on qdn.quics.com ( youll
find it on http://quics.qnx.com/cgi-bin/search/usr/free/?srch=ntp&select=1)
Unpack it, you really only need the program ‘ntpdate’, (I often put it in
/usr/local/bin and makes shure I have that in the path). Run it providing a
ntp-server as parameter: “ntpdate ntp.domain.com

You can do it regulary (example is hourly) from a crontab like this
0 * * * * /usr/local/bin/ntpdate webserver.systek.no

(Check docs for cron and crontab if you are unfamiliar with cron)