Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Time synchronization between As400 & PC

577 views
Skip to first unread message

cpe...@wanadoo.es

unread,
Jul 31, 2003, 2:50:48 PM7/31/03
to
Hello!!

Anyone know how synchronize the system clock of the as400 with the PC time.
I have the PC's (Linux and Windows) syncronizeds with the command NET TIME.

There are any equivalence in As400?

Thanks.

Carlos-


Richard Huelbig

unread,
Jul 31, 2003, 8:09:17 PM7/31/03
to
Carlos,

I'm running V5R1 on my AS/400 and to the best of my knowledge, the OS does
not have the ability to act as a time SERVER; however, it can act as a time
server CLIENT. On my network I've got a Windows 2000 server that acts as the
network time server--it polls one of the public NIST time servers through my
network's internet connection. Now, since the time on the Windows 2000 is
synchronized with the NIST server, all other clients on my network,
including my AS/400, use it as the network time server. To setup the time
server client on your AS/400 (assuming you're running V5R1), enter the
command CHGNTPA at the command line, press the F4 key, and enter in the IP
address of name of your network's time server along with other details about
how and when to synchronize the time.

You'll need to start the AS/400's time server STRTCPSVR (*NTP), and this
will only have to be done once after the initial configuration (assuming
that when you used the command CHGNTPA you specified that the server would
start when TCP/IP is started, and that TCP/IP is started at IPL).

You also can perform these configurations if you use Operations Navigator,
and under the SERVERs node, select the properties of the NTP server (it may
be referred to as the Time Server--I'm trying to picture this in my mind so
forgive me if I don't know the exact names off the top-of-my-head).

From what I've found, the time synchronization with an NTP server sets the
machine time which is used by applications, programs, and system functions.
It does not change the system value QTIME or any of its associated
components QHOUR, QMINUTE, or QSECOND, nor does it affect the time that's
displayed in the upper-right corner when you display the system status. The
system value needs to be set manually. (If anyone reading this has a method
whereby the system value synchs to the machine clock, please let us know).

Anyway, hope this helps a bit.

Regards,

Richard Huelbig


Richard Huelbig

unread,
Jul 31, 2003, 8:31:09 PM7/31/03
to

RT

unread,
Jul 31, 2003, 9:12:49 PM7/31/03
to
Someone out there has written the code to do this (sync sysvals with
software clock), can't recall were I got it though.

You also need to ensure you use the QUTCOFFSET to control your daylight
savings time and not adjust the QHOUR value... The NTP server will not start
if the values are outside an acceptable range...

RT

"Richard Huelbig" <hue...@optonline.net> wrote in message
news:NciWa.10897$Wd5.2...@news4.srv.hcvlny.cv.net...

Dave McKenzie

unread,
Jul 31, 2003, 11:52:29 PM7/31/03
to

walter

unread,
Aug 1, 2003, 1:31:44 AM8/1/03
to
> Anyone know how synchronize the system clock of the as400 with the PC time.
> I have the PC's (Linux and Windows) syncronizeds with the command NET TIME.
>
> There are any equivalence in As400?

AS/400 can be a NTP client but no server (5.1, perhaps later
included).
If time sync is essential for you, set up a NTP server, connect it to
one of the web time servers and connect all computers to it. This
software is available for Linux and Windows.
A good place for this software would be e.g. a DNS, because all your
computers know it and it has internet connection.

Walter

Tom H

unread,
Aug 1, 2003, 2:41:20 PM8/1/03
to
There was a News 400 article from March 1999 that had a sample socket
programs to do just what you want. I have since made some small
modifications to enable it to work thru V5R1 and also to run a batch
version of the program so that our AS400 acts as a SNTP server.

If you are interested, email me privately and I will provide you with
a save file that will allow you to compile the programs. This
modifies the hardware clock so it avoids the issues of programs and
display stations not seeing the software clock.

tha...@printgrc.com

"C...@rl.os" <cpe...@wanadoo.es> wrote in message news:<yCdWa.1545$w4.10...@news-reader.eresmas.com>...

Erik Filchner

unread,
Aug 5, 2003, 11:02:28 AM8/5/03
to
Hello,

have a look at my already posted note in this Newsgroup.

Or, have a look at www.export-ventures.com program MSNTP/400 works
very good.

Erik


On Thu, 31 Jul 2003 20:50:48 +0200, "C...@rl.os" <cpe...@wanadoo.es>
wrote:

0 new messages