(local) NTP Service

V

Volker Biedermann

Hello,

I want to setup in my local lan (no domain controller, name of the lan is
workgroup) a ntp server on a win2k/XP (prof. edition) pc. Other pc's
(win2k/XP) in the lan should by synchronized from pc with ntp server (ntp
server pc sets actual time on the client pc's) or synchronize to client pc
with ntp server (client "asks" ntp server pc for actual time and update its
time).

After I changed (added ney parameter) my registry
(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControllSet\Services\
LanmanServer\Parameters\TIMESOURCE = 1 [REG_DWORD]) entry to run ntp server
on pc and reboot it. I checked it by typing "net time" on that and on client
pc's. But I don't know how I configure it further to synchronize time in my
lan? Time should be sychronized minimum once per day without executing a
script on log on. I prefer hints which solving that without using other
tools that they aren't shipped with Windows. I saw some configs for w32tm
but I'm a little bit confused about that.

With best regards
Volker Biedermann
 
R

Rashmi.K.Y [MSFT]

Hello,

Thank you for posting.

I understand that you are trying to setup a NTP server in a workgroup
environment.

Please try the following suggestions.

Note: Reset the registry changes and configurations that were changed to
their default values.

Try these steps on 2 Windows XP systems to begin with.

On XP 1 system that would serve as NTP server, perform these steps:
----------------------------------------------------------------------------
------------------------
1. Point to this registry key:
Hkey_Local_Machine\System\CurrentControlSet\Services\W32time\Config\Announce
Flags with is 10 (Decimal Value) by default changed the value to 5

On XP 2 system (NTP Client System), perform these steps:
----------------------------------------------------------------------------
---------
Please run the following commands:

1. Net time /setsntp:<ip of XP 1>
2. Run a w32tm /resync
3. Run a net time /set

To verify the settings:

1. Change the time manually on the client system.
2. Reboot the XP2 system and it should synchronize successfully on reboot

If it successful, you can configure the other Windows XP systems with the
time server in the similar manner.

Though the process works fine, if you point Windows 2000 Professional
system to Windows XP NTP server, it might not work as Windows XP. Please
verify that.

I hope the above information helps. If there is anything unclear, please
feel free to let me know. Thank you and have a nice day!

Rashmi

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Volker Biedermann" <[email protected]>
| Subject: (local) NTP Service
| Date: Wed, 29 Sep 2004 15:22:09 +0200
| Lines: 23
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.win2000.networking
| NNTP-Posting-Host: p508A6CDD.dip.t-dialin.net 80.138.108.221
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15
.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.win2000.networking:72712
| X-Tomcat-NG: microsoft.public.win2000.networking
|
| Hello,
|
| I want to setup in my local lan (no domain controller, name of the lan is
| workgroup) a ntp server on a win2k/XP (prof. edition) pc. Other pc's
| (win2k/XP) in the lan should by synchronized from pc with ntp server (ntp
| server pc sets actual time on the client pc's) or synchronize to client pc
| with ntp server (client "asks" ntp server pc for actual time and update
its
| time).
|
| After I changed (added ney parameter) my registry
| (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControllSet\Services\
| LanmanServer\Parameters\TIMESOURCE = 1 [REG_DWORD]) entry to run ntp
server
| on pc and reboot it. I checked it by typing "net time" on that and on
client
| pc's. But I don't know how I configure it further to synchronize time in
my
| lan? Time should be sychronized minimum once per day without executing a
| script on log on. I prefer hints which solving that without using other
| tools that they aren't shipped with Windows. I saw some configs for w32tm
| but I'm a little bit confused about that.
|
| With best regards
| Volker Biedermann
|
|
|
 
V

Volker Biedermann

Hello Rashmim

Rashmi.K.Y said:
I understand that you are trying to setup a NTP server in a workgroup
environment.

Yes, that's it
Please try the following suggestions.

Note: Reset the registry changes and configurations that were changed to
their default values.

Try these steps on 2 Windows XP systems to begin with.

On XP 1 system that would serve as NTP server, perform these steps:
-------------------------------------------------------------------------- --
------------------------
1. Point to this registry key:
Hkey_Local_Machine\System\CurrentControlSet\Services\W32time\Config\Announce
Flags with is 10 (Decimal Value) by default changed the value to 5

On XP 2 system (NTP Client System), perform these steps:
-------------------------------------------------------------------------- --
---------
Please run the following commands:
done!


1. Net time /setsntp:<ip of XP 1>
2. Run a w32tm /resync

After that command an error occurs. Error message ist in my language
(German) it means that resynchronization with local(!) computer is failed(?)
3. Run a net time /set

This works fine. Client get time from first XP.
To verify the settings:

1. Change the time manually on the client system.
2. Reboot the XP2 system and it should synchronize successfully on reboot

Sorry not succesful. After reboot has the second XP still the (manually)
changed time. :-(
Do you have any suggestions?

Regards
Volker Biedermann
 
V

Volker Biedermann

Hello Rashmi,

Rashmi.K.Y said:
Note: Reset the registry changes and configurations that were changed to
their default values.

On second XP (Client) is that stored under:
HKLM\System\CurrentControlSet\Services\W32Time:

Config
AnnounceFlags [REG_DWORD] 10
EventLogFlags [REG_DWORD] 2
FrequencyCorrectRate [REG_DWORD] 4
HoldPeriod [REG_DWORD] 5
LargePhaseOffset [REG_DWORD] 1280000
LastClockRate [REG_DWORD] 156250
LocalClockDispersion [REG_DWORD] 10
MaxAllowedPhaseOffset [REG_DWORD] 1
MaxClockRate [REG_DWORD] 156640
MaxNegPaseCorrection [REG_DWORD] 54000
MaxPollInterval [REG_DWORD] 15
MaxPosPhaseCorrection [REG_DWORD] 54000
MinClockRate [REG_DWORD] 155860
MinPollInterval [REG_DWORD] 10
PhaseCorrectRate [REG_DWORD] 1
PollAdjustFactor [REG_DWORD] 5
SpikeWatchPeriod [REG_DWORD] 90
UpdateInterval [REG_DWORD] 360000

Parameter
NtpServer [REG_SZ] 192.168.0.1 ( <--- 1st XP)
ServiceDLL [REG_EXPAND_SZ] {Windows-Pfad}\system32\w32time.dll
ServiceMain [REG_SZ] SvchostEntry_32Time
Type [REG_SZ] NTP

it seems to be the defaults.

Second XP still going with the wrong (not updated time) time. :-(

Regards
Volker Biedermann
 
R

Rashmi.K.Y [MSFT]

Hello,

I did a research and found the following information. Please try these
steps and check if it helps to resolve your issue.

On XP1 that is to be configured as Time server for the workgroup, perform
these steps:

1. Click on start -> run -> type 'gpedit.msc' without quotes.
2. Click on OK
3. In the Group Policy editor, please navigate to the following:

Computer settings -> Administrative Templates -> System -> Windows Time
Service -> Time Providers

4. Double click on 'Enable Windows NTP Server', click on enabled.
5. Click on Apply and OK

To verify:

6. From the command prompt, type gpupdate/force and press enter.
7. Next type net time and press enter.
8. Your system should display its own time without any error message.

Now on the XP2 system which is to be configured as client, please perform
these steps:

1. Click on start -> run -> type 'gpedit.msc' without quotes.
2. Click on OK
3. In the Group Policy editor, please navigate to the following:

Computer settings -> Administrative Templates -> System -> Windows Time
Service -> Time Providers

4. Double click on 'Enable Windows NTP Client', click on enabled.
5. Click on Apply and OK
6. Now please double click 'Configured Windows NTP client'
7. In NTP Server text box, please replace time.windows.com with the IP
address of XP1. Please do not change any other settings. Click on Apply and
OK.
8. Open command prompt and execute gpupdate/force command.
9. Type net time and check if the time at XP1 is displayed.

I hope the above information helps to resolve your issue. If there is
anything unclear, please feel free to let me know. Thank you and have a
nice day!

Rashmi

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Volker Biedermann" <[email protected]>
| References: <[email protected]>
<SN5j#[email protected]>
| Subject: Re: (local) NTP Service
| Date: Thu, 30 Sep 2004 12:33:14 +0200
| Lines: 44
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.win2000.networking
| NNTP-Posting-Host: pd9526a25.dip.t-dialin.net 217.82.106.37
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.win2000.networking:72761
| X-Tomcat-NG: microsoft.public.win2000.networking
|
| Hello Rashmi,
|
|
| > Note: Reset the registry changes and configurations that were changed to
| > their default values.
|
| On second XP (Client) is that stored under:
| HKLM\System\CurrentControlSet\Services\W32Time:
|
| Config
| AnnounceFlags [REG_DWORD] 10
| EventLogFlags [REG_DWORD] 2
| FrequencyCorrectRate [REG_DWORD] 4
| HoldPeriod [REG_DWORD] 5
| LargePhaseOffset [REG_DWORD] 1280000
| LastClockRate [REG_DWORD] 156250
| LocalClockDispersion [REG_DWORD] 10
| MaxAllowedPhaseOffset [REG_DWORD] 1
| MaxClockRate [REG_DWORD] 156640
| MaxNegPaseCorrection [REG_DWORD] 54000
| MaxPollInterval [REG_DWORD] 15
| MaxPosPhaseCorrection [REG_DWORD] 54000
| MinClockRate [REG_DWORD] 155860
| MinPollInterval [REG_DWORD] 10
| PhaseCorrectRate [REG_DWORD] 1
| PollAdjustFactor [REG_DWORD] 5
| SpikeWatchPeriod [REG_DWORD] 90
| UpdateInterval [REG_DWORD] 360000
|
| Parameter
| NtpServer [REG_SZ] 192.168.0.1 ( <--- 1st XP)
| ServiceDLL [REG_EXPAND_SZ] {Windows-Pfad}\system32\w32time.dll
| ServiceMain [REG_SZ] SvchostEntry_32Time
| Type [REG_SZ] NTP
|
| it seems to be the defaults.
|
| Second XP still going with the wrong (not updated time) time. :-(
|
| Regards
| Volker Biedermann
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top