home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
ntp107.zip
/
NTP.DOC
next >
Wrap
Text File
|
1998-03-05
|
6KB
|
137 lines
-------------------------------------------------
Network Time Protocol (NTP) Client - Version 1.07
(c) Copyright Ralf Christen 1997,1998
-------------------------------------------------
YOU MAY USE AND DISTRIBUTE THIS PROGRAM FREELY AS LONG AS YOU DON'T
MODIFY ANY OF ITS PARTS.
What this software does
-----------------------
The Network Time Protocol (NTP) Client connects to a time server through the
Internet, gets the current time and adjusts the clock of your OS/2 machine
using the system DATE function.
What you need
-------------
You need Warp V3 or Warp V4 with TCP/IP or the IBM Internet Access Kit (IAK)
(ICS) installed to run this software.
IMPORTANT: This package needs a DLL named RXSOCK.DLL. If you have Warp V3
WITHOUT TCP/IP installed (Internet Access Kit only), you must get the
DLL mentioned above from the following source and copy it to your /tcpip/dll
directory:
http://www.horgen.net/rem/software/RXSOCK.DLL
Where to find a time server
---------------------------
There are many public time servers available in the Internet. The following
Webpage contains an excellent list of time servers open to the public:
http://www.eecis.udel.edu/~mills/ntp/servers.html
Important: Be sure to use a time server located near yourself to ensure that
- there are short transmission times
- the server has the same timezone
Where can I install this NTP client
-----------------------------------
You can install this client on any OS/2 system which has access to the
Internet. If you are behind a SOCKS firewall, you can enable the general
SOCKS gateway of Warp 4 since this NTP client doesn't offer the usage of a
SOCKS gateway.
If you use a DialIn access to the Internet through an access provider, it is
a good way to add the NTP to the autostart section of your dialer. This
adjust the time of your PC every time you connect to the Internet.
Many users install this NTP client on an OS/2 system running a LAN-Server.
All connected clients (LAN-Requesters) adjust their time using the following
LAN-Requester command: "NET TIME \\SERVER01 /SET /YES" where 'SERVER01' is the
name of your LAN-Server. If the TIMESOURCE service is activated on your LAN-
Server, your OS/2 client will adjust its time automatically.
How to start the NTP client for a DAYTIME server
------------------------------------------------
The most common timeserver service is DAYTIME which delivers the current time
of your timezone at TCP/IP port #13. To use this service, use the following
syntax:
NTP.EXE timeserver [interval-in-seconds] [/NOBACK]
The following command uses the timeserver 'bernina.ethz.ch' and gets the new
time every hour (=3600 seconds):
NTP.EXE bernina.ethz.ch 3600
The following command uses the timeserver 'bernina.ethz.ch' and gets the new
time once:
NTP.EXE bernina.ethz.ch
The NTP client displays the following data for every time request:
07/05/97 09:53:45 - Wed May 7 09:53:45 1997
On the left side you see the current date and time of your workstation, on the
right hand side you have the complete date and time information of the time
server. After this, the NTP client adjusts its own time.
How to start the NTP client for a TIME server
---------------------------------------------
There is a seconds time service in use. The TIME service delivers a UTC/GMT
time at port #37. To use this service, use the following syntax:
NTP.EXE timeserver [interval-in-seconds] /TS+n [/NOBACK]
The following command uses the timeserver 'tick.usno.navy.mil' and gets the
new time every hour (=3600 seconds) with a time-offset of 2 hours:
NTP.EXE tick.usno.navy.mil 3600 /TS+2
The following command uses the timeserver 'tick.usno.navy.mil' and gets the
new time once with a time-offset of -5 hours:
NTP.EXE tick.usno.navy.mil /TS-5
The NTP client displays the following data for every time request:
07/05/97 09:53:45 - 09:53:45
On the left side you see the current date and time of your workstation, on the
right hand side you have the time information of the time server. After this,
the NTP client adjusts its own time.
The /NOBACK switch
------------------
Some programs encounter serious problems if you put back the current time to a
lower value (earlier time). One of these programs is the Lotus Notes server.
If you have the /NOBACK switch enabled, the NTP clients does not set back the
time to a lower value if your clock should run too fast. The current time will
remain the same until the correct time has been reached. Be aware that this
applies to hour/minute/second level and not to 1/10 or 1/100 seconds level.
NTP.EXE bernina.ethz.ch 3600 /NOBACK
New in the last few versions
----------------------------
- New /NOBACK switch added (1.07)
- Problem fixed it time server delivers an empty time string. (1.07)
- Some WinNT Time servers use a different DAYTIME format. This version can
also handle those exotic time formats. (1.06)
- NTP can handle another special time format which has some timezone infos
appended to the returned DAYTIME string. (1.06)
More about the NTP protocol
---------------------------
Visit the following Webpage if you want to learn more about the
Internet NTP protocol: http://www.eecis.udel.edu/~ntp/
News about this software
------------------------
You can get the latest release of this software at:
http://www.horgen.net/rem/software/
If you have questions or suggestions, mail to:
ralf.christen@ibm.net