Need help for Windows Time Service and time synchronization between client and server

Răspuns Need help for Windows Time Service and time synchronization between client and server

  • Monday, January 07, 2013 12:50 PM
     
     

    Hi,

          I am trying to sync Windows XP client system with Windows Server 2008 which is a domain controller as per suggested by MSDN. But I am getting some failure message on command " w32tm /resync /rediscover "

    Error message -
    Sending resync command to local computer...
    The computer did not resync because only stale time data was available.

    Would you please answer me the following quetions.

    1. What is the recommend way to set up a WindowsXP machine to time sync to a Windows2008 server using only NTP and a bounded polling interval?
    2. What are the consequence of w32tm /rediscover /resync? In particular is it containded by the “NtpServer” registry entry or can it sync to whatever server happens to announce first and most importantly can it change the “NtpServer” registry value?

    Thanks,

    Ashish T.

    • Edited by vasu-48 Monday, January 07, 2013 12:57 PM
    •  

All Replies

  • Monday, January 07, 2013 3:13 PM
     
     

    Hi,

    Computer did not resync because no time data was available.

    What is the recommend way to set up a WindowsXP machine to time sync to a Windows2008 server using only NTP and a bounded polling interval?

    NTP is best way, polling interval 5 min is good.

    What are the consequence of w32tm /rediscover /resync? In particular is it containded by the “NtpServer” registry entry or can it sync to whatever server happens to announce first and most importantly can it change the “NtpServer” registry value?

    Yes, you can change Ntp Server registry value. No consequence other than network traffic generated.

    Symptom: when using w32tm /resync to synchronize the time with DC, you may receive this message: "Sending resync command to local computer...The computer did not resync because no time data was available".

    Troubleshooting: You will find 'Type' in the right panel  of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters  is set to NTP instead of NT5DS. Changing to NT5DS synchronizes to domain hierarchy.

    Remember to restart the windows time service to take effect and take registry backup before making any changes.



    Please help and appreciate others by using these features: "Propose As Answer", "Vote As Helpful" and "Mark As Answer"

    Waqas

    MS(SPM), MS(E&F), MCP, MCT, MCTS, MCITP, MCSE, MCPD, MCSD, MCDBA , Author
    Twitter: @waqas8777
    Linked In: http://www.linkedin.com/in/waqasm1

  • Tuesday, January 08, 2013 6:35 AM
     
     

    Hello Waqas,

    Thanks for your quick response.

    Actually My query is as below:

    1. First I change the registry (type = NT5DS , ntpServer = XXX,0x1 YYY,0x1 where XXX, YYY are the IP addesses of my server)

    2. Stop and start time service

    3. Run the w32tm /resync /rediscover command

    In this scenario, when I run the above command, what will happen?

        i. Will my local computer sync only to the server list mention in the ntpServer registry key? or

        ii. Will my Local computer sync to any server which announce first and will this command change the ntpServer registry value to whatever server it will sync with?

    Thanks,

    Ashish


    vasu

  • Tuesday, January 08, 2013 6:55 AM
     
     

    this is the pest ansr

    Hello Waqas,

    Thanks for your quick response.

    Actually My query is as below:

    1. First I change the registry (type = NT5DS , ntpServer = XXX,0x1 YYY,0x1 where XXX, YYY are the IP addesses of my server)

    2. Stop and start time service

    3. Run the w32tm /resync /rediscover command

    In this scenario, when I run the above command, what will happen?

        i. Will my local computer sync only to the server list mention in the ntpServer registry key? or

        ii. Will my Local computer sync to any server which announce first and will this command change the ntpServer registry value to whatever server it will sync with?

    Thanks,

    Ashish


    vasu

    regards

  • Tuesday, January 08, 2013 7:08 AM
     
     

    hi,

    i) Will my local computer sync only to the server list mention in the ntpServer registry key

    Yes, the first contact will be with explicitly mentioned NTP server IP.

    For that Registry entries must be changed to Specify NTP Sever IP for example (192.168.1.1)

    ii) Will my Local computer sync to any server which announce first and will this command change the ntpServer registry value to whatever server it will sync with?

    Answer: The time Provider NtpClient cannot reach or is currently receiving invalid time data from example NTP server ip 192.168.1.1 (ntp.m|0x0|192.168.1.1:123->192.168.1.1:123).

    No response has been received from Manual peer 192.168.1.1 after 8 attempts to contact it. This peer will be discarded as a time source and NtpClient will attempt to discover a new peer from which to synchronize.

    The time provider NtpClient is configured to acquire time from one or more time sources. However, none of the sources are currently accessible. No attempt to contact a source will be made for 960 minutes. NtpClient has no source of accurate time.



    Please help and appreciate others by using these features: "Propose As Answer", "Vote As Helpful" and "Mark As Answer"

    Waqas

    MS(SPM), MS(E&F), MCP, MCT, MCTS, MCITP, MCSE, MCPD, MCSD, MCDBA , Author
    Twitter: @waqas8777
    Linked In: http://www.linkedin.com/in/waqasm1

  • Tuesday, January 08, 2013 8:57 AM
     
     

    Thanks Waqas for the detailed response.

    But if all the time sources mentioned in the ntpServer are not reachable or not valid then what will ntpClient do?

           Will my ntpClient wait for some time and start discovering the time source from the servers mentioned in ntpServer key?

    or

           Will it try to discover some external time sources in the network which are not mentioned in my ntpServer?

    Thanks,

    Ashish T 


    vasu

  • Tuesday, January 08, 2013 11:11 AM
     
     

    with nt5ds as type the ntp server list is ignored. The computer checks the pdc emulator as time source. Make sure the dc with the pdc role is configured correctly.

    Reset w32time to default and try again.

  • Tuesday, January 08, 2013 11:23 AM
     
     

    Hi,

    We have two scenarios:

    1. For the system with windows 2008 Server, we are making the type = NT5DS so that it will sync in the domain Hierarchy. 

    2. But for our client systems which are running on Windows XP, we want them to sync with an fixed server. For this we are making the type of client = NTP and updating the ntpServer = Server1IP,0x1 Server2,0x1.

    And after this we are resetting the W32time service. And then executing the command w32tm /resync /rediscover.

    So when we execute the above command:

    if all the time sources mentioned in the ntpServer are not reachable or not valid then what will ntpClient do?

           Will my ntpClient wait for some time and start discovering the time source from the servers mentioned in ntpServer key?

    or

           Will it try to discover some external time sources in the network which are not mentioned in my ntpServer?

    Thanks,

    Ashish T 


    vasu

  • Tuesday, January 08, 2013 12:14 PM
     
     Answered
    when set to ntp, w32time only tries to connect to the specified ntpserver(s). Windows keeps trying to connect. You can see the events in the eventviewer.
    • Marked As Answer by vasu-48 Tuesday, January 08, 2013 12:43 PM
    •  
  • Tuesday, January 08, 2013 12:39 PM
     
     

    Hi,

    Will my ntpClient wait for some time and start discovering the time source from the servers mentioned in ntpServer key?

    Answer When you have set NTP server, windows XP client will keep trying to connect.

    Will it try to discover some external time sources in the network which are not mentioned in my ntpServer?

    Answer : No it will not discover some external time sources



    Please help and appreciate others by using these features: "Propose As Answer", "Vote As Helpful" and "Mark As Answer"

    Waqas

    MS(SPM), MS(E&F), MCP, MCT, MCTS, MCITP, MCSE, MCPD, MCSD, MCDBA , Author
    Twitter: @waqas8777
    Linked In: http://www.linkedin.com/in/waqasm1

  • Tuesday, January 08, 2013 12:43 PM
     
     
    Thanks for your response. This answered my query.

    vasu