Announcement

Collapse
No announcement yet.

Network Time Server

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Network Time Server

    HI,

    I got 1 x windows 2000 AD server and 2 x windows 2003 AD servers. I set the external time server on one windows 2003 server point to ntp.mel.connect.com.au

    but with the daylight saving on Australia only windows 2003 servers change the time
    and windows 2000 servers not getting the time server updates?

    Why only 2000 not update? how do i setup correctly?
    AusNetIT Solutions

    Web Design | Web Hosting | SEO | IT Support

  • #2
    Re: Network Time Server

    There is a change that the Windows 2000 DC by installation got the role of PDC-emulator. Find out which Domain controller now has the role of PDC-emulator.

    By default the server with the PDC-emulator role is the local time providers for all the other computers in the domain. Therefore you only need that server get synchonized with an external time server.

    Registry settings for the server being the local time provider;
    first check if the Windows Time service is automaticaly started and up-and-running on the computer.
    Then open regedit and modify the key
    locate: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\W32Time\Parameters
    Change the following DWORD values:
    entry= Type --> value= NTP
    entry= NtpServer --> value= time.windows.com (or, your favorite external time server)
    (leave other entries as they are)
    close regedit
    Restart the 'Windows Time' service on the server

    Registry settings for all the other servers;
    first check if the Windows Time service is automaticaly started and up-and-running on the computer.
    Then open regedit and modify the key
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\W32Time\Parameters
    entry= Type --> value= NT5DS
    (leave other values as they are)
    close regedit
    Restart the 'Windows Time' service on the server


    http://forums.petri.com/showthread.php?t=13342

    \Rem
    Last edited by Rems; 27th March 2007, 19:58.

    This posting is provided "AS IS" with no warranties, and confers no rights.

    __________________

    ** Remember to give credit where credit's due **
    and leave Reputation Points for meaningful posts

    Comment


    • #3
      Re: Network Time Server

      Hi Rem,

      Thank you so much. I did everything as you said but something wrong and still 2 servers showing the old time.
      ------------------------------------------------------------------------------------
      windows 2003 Server (w3kserver1)

      FSMO = All

      entry= Type
      value= NTP
      entry= NtpServer
      value= ntp0.cs.mu.OZ.AU

      FYI : I just try to setup GPO first and removed. (client didn't get the correct time)
      --------------------------------------------------------------------------------------------------
      windows 2003 Server (w3kserver2)
      entry= Type
      value= NT5DS
      entry= NtpServer
      value= time.windows.com,0x1

      I don't know how this happen ? can i point to w3kserver1 ?
      ---------------------------------------------------------------------------------------

      Windows 2000 AD Server. ( w2kServer)

      I think this server hold the FSMO roles before but i change to new Windows 2003 server. And also check all the roles now with windows 2003 Server.

      in regedit

      entry= Type
      value= NT5DS
      entry= NtpServer
      Value = w3kserver1

      restart w32tm few times
      -------------------------------------------------------------------------------------
      Windows 2000 Advance Server ( Sql Server)

      entry= Type
      value= NT5DS


      when i run this command i got

      C:\Documents and Settings\Administrator>net time
      Current time at \\w3kserver2 is 3/28/2007 11:27 AM

      Local time (GMT+10:00) at \\w3kserver2 is 3/28/2007 10:27 AM

      The command completed successfully.


      What is wrong?


      Do i need to setup Default GPO for client?
      AusNetIT Solutions

      Web Design | Web Hosting | SEO | IT Support

      Comment


      • #4
        Re: Network Time Server

        Now you have set the most fundamental values right, you can also check the other values in that registry key. But before making changes export the key.
        First thing is to check the value of: 'Period'
        readmore about this here: http://support.microsoft.com/kb/223184
        (the only items that must always be available in the parameters subkey are: "Type" ; "ServiceDll" ; "ServiceMain" and "NtpServer" (the last one only is used if "Type" is NTP or AllSync)


        Concerning about the results of the command: net time
        the value NT5DS means the time service synchronizes from the domain hierarchy.
        You can read here what computer is suppost to synchronize with which server;
        http://support.microsoft.com/kb/816042
        EDIT: And for testing, change the time (not more that 3 minutes! difference) on the pdc-emulator, and then on one of the other DC's run: net time /Domain:domainname.com /set. If the minutes do change but not the hour, then the time sync setting are good but you have to check the "Time zone" of both servers. And check if the option "automatically adjust clock for daylightsaving changes" is set the same for all the computers on the site.


        For the time setting on the clients by GPO, follow the link in my previous reply.
        And read this article: https://www.microsoft.com/technet/pr.../27_xpwts.mspx for more backgrounds.


        \Rem

        NB.
        during this testing period perodically check the registry if the values not have been changed for some reason. And stop and start the 'Windows Time' service on the computer after every change.
        Last edited by Rems; 28th March 2007, 08:49.

        This posting is provided "AS IS" with no warranties, and confers no rights.

        __________________

        ** Remember to give credit where credit's due **
        and leave Reputation Points for meaningful posts

        Comment


        • #5
          Re: Network Time Server

          HI Rem,

          1. First thing is to check the value of: 'Period' : ?? this is not in the w3kserver1 ?

          BUT FOUND ON W2KSERVER PERIOD:SPECIALSKEW

          2. the only items that must always be available in the parameters subkey are: "Type" ; "ServiceDll" ; "ServiceMain" and "NtpServer" (the last one only is used if "Type" is NTP or AllSync)

          Yes, ONLY above THOSE

          3. You can read here what computer is suppost to synchronize with which server;


          I found w3kserver2 enable time server and i just remove the value but now it's getting my w2kserver time



          H:\>net time
          Current time at \\w2kserver is 3/29/2007 4:03 PM

          Local time (GMT+11:00) at \\w2kserver is 3/29/2007 5:03 PM

          The command completed successfully

          it's detecting as GMT+11:00 ? but all the date/Time settings are for +10 ???? i found input localate set to US and change to AU but time didn't change?

          I check w2kserver w32 registry and couldn't find anything to set as a time server?

          4. for testing, change the time (not more that 3 minutes! difference) on the pdc-emulator, and then on one of the other DC's run: net time /Domain:domainname.com /set

          ONLY CLIENT WORKSTATION TRY TO CHANGE FROM THE PDC W3KSERVER1 BUT NOT ON OTHER DC'S. THEY TRY TO LOOK THEIR TIME CLOCK?

          W2KSERVER: NOT WORKING
          ======================
          C:\Documents and Settings\Administrator.Domain>net time /DOMAIN:domain.local
          /set
          Current time at \\w2kserver.domain.local is 3/29/2007 4:51 PM

          The current local clock is 3/29/2007 4:51 PM
          Do you want to set the local computer's time to match the


          CLIENT : WORKING
          ================
          H:\>net time /domain:domain.local /set
          Current time at \\w3kserver1.domain.local is 3/29/2007 3:55 PM

          The current local clock is 3/29/2007 3:52 PM
          Do you want to set the local computer's time to match the
          time at \\w3kserver1.domain.local? (Y/N) [Y]: n
          The command completed successfully.



          wHY OTHER SERVER NOT TRY TO SYNC WITH W3KSERVER1 CONFIGURE FOR EXTERNAL TIME SERVER?

          1. Do i need to open any ports on pix firewall?

          2. Ping resualt

          Pinging ntp0.cs.mu.OZ.AU [128.250.36.2] with 32 bytes

          Reply from 128.250.36.2: bytes=32 time=195ms TTL=238
          Reply from 128.250.36.2: bytes=32 time=185ms TTL=238
          Reply from 128.250.36.2: bytes=32 time=192ms TTL=238
          Reply from 128.250.36.2: bytes=32 time=195ms TTL=238

          So upset whats wrong to this server and why all the workstation responce to w2kserver?
          AusNetIT Solutions

          Web Design | Web Hosting | SEO | IT Support

          Comment


          • #6
            Re: Network Time Server

            Only DC's sync their time always with the PDC-emulator.
            Other servers and all the clients sync time with the server they logged on to.

            Better to leave the clients out at this stage. Just set the GPO for the workstation already, but deal with the clients after the time sync on the DC's are working properly.


            ----------------------------------------------------------------------
            Only on the Win2000 server DC:
            ----------------------------------------------------------------------
            Period = 65532 (<= SpecialSkew )
            ReliableTimeSource = 1 EDIT: no, lets change that value to 0
            AvoidTimeSyncOnWan = 0
            NtpServer = leave empty
            GetDcBackoffMinutes = 15
            GetDcBackoffMaxTimes = 7
            LocalNTP = 0
            Type (REG_SZ) = Nt5DS
            run commands:
            net stop w32time && net start w32time
            w32tm -s

            collect output Win2000:
            net time /Domain:domain.local /set
            w32tm -tz

            (I believe on Windows 2000 you have to use the - switch for w32tm for Windows 2003 it is the / switch.)


            ----------------------------------------------------------------------
            w3kserver1 (windows server 2003) is the authoritative time server.
            ----------------------------------------------------------------------
            - FSMO = "PDC-emulator" !!!
            The only entries in subkey 'parameters' are;
            - entry= NtpServer =REG_SZ=>> value= ntp0.cs.mu.OZ.AU
            - entry= ServiceDll =REG_EXPAND_SZ=>> value= C:\WINDOWS\system32\w32time.dll
            - entry= ServiceMain =REG_SZ=>> value= SvchostEntry_W32Time
            - entry= Type =REG_SZ=>> value= NTP
            On that server run:
            cmd /c start/w net stop w32time && start/w net start w32time
            collect output:
            net time /querysntp
            w32tm /tz


            Firewall:
            By default, SNTP uses User Datagram Protocol (UDP) port 123. If this port is not open to the Internet, you cannot synchronize your server to Internet SNTP servers.


            ----------------------------------------------------------------------
            On w3kserver2 Windows server 2003 DC
            ----------------------------------------------------------------------
            entries in subkey 'parameters' are;
            - entry= NtpServer =REG_SZ=>> value= time.windows.com,0x2 (or you can leave NtpServer completely out)
            - entry= ServiceDll =REG_EXPAND_SZ=>> value= C:\WINDOWS\system32\w32time.dll
            - entry= ServiceMain =REG_SZ=>> value= SvchostEntry_W32Time
            - entry= Type =REG_SZ=>> value= Nt5DS
            run commands:
            cmd /c start/w net stop w32time && start/w net start w32time
            w32tm /resync /rediscover
            (never run this command on the pdc-emulator!)
            collect output:
            net time /querysntp
            w32tm /tz




            I found w3kserver2 enable time server and i just remove the value but now it's getting my w2kserver time <<== huh?
            You wrote that w3kserver1 is the pdc-emulator then only on this server1 the value of Type must be NTP, all other computers <= NT5DS.

            Is there a possibility to test time sync on the other servers while the Windows2000 DC is off the network??

            If no success can you paste the
            - registrykey export and
            - "notepad %SystemRoot%\W32time.ini"
            from the windows2000 DC.

            \Rem



            NB...
            I made a lot of enhancements and few modification to this post at 29th March 2007 at 18:58 !!! please read it all over
            Last edited by Rems; 29th March 2007, 18:14.

            This posting is provided "AS IS" with no warranties, and confers no rights.

            __________________

            ** Remember to give credit where credit's due **
            and leave Reputation Points for meaningful posts

            Comment


            • #7
              Re: Network Time Server

              Hi,

              First, thank you so much for your time and help. What i did i just change the time to GMT +10:00 Brisbane and got the correct time lol but change to GMT +10:00 Canberra,Melbourne,Sydney again 1 hr difference.

              1. Some following Parameters not their and not sure how to create (reg sz or dword)



              Only on the Win2000 server DC:
              ===============================
              ReliableTimeSource =
              AvoidTimeSyncOnWan =

              GetDcBackoffMinutes =
              GetDcBackoffMaxTimes =


              C:\Documents and Settings\veritas>w32tm -s
              RPC to local server returned 0x0



              C:\Documents and Settings\veritas>net time /Domain:domain.local /set
              Current time at \\w2kserver.domain.local is 3/30/2007 3:06 PM

              The current local clock is 3/30/2007 3:06 PM
              Do you want to set the local computer's time to match the
              time at \\w2kserver.domain.local? (Y/N) [Y]: y
              The command completed successfully.



              C:\Documents and Settings\veritas>w32tm -tz
              Time zone: E. Australia Standard Time E. Australia Standard Time

              ----------------------------------------------------------------------
              w3kserver1 (windows server 2003) is the authoritative time server.
              ----------------------------------------------------------------------
              - entry= NtpServer =REG_SZ=>> value= ntp0.cs.mu.OZ.AU,0x1 ( Need to remove?)




              ----------------------------------------------------------------------
              On w3kserver2 Windows server 2003 DC
              ----------------------------------------------------------------------



              Microsoft Windows [Version 5.2.3790]
              (C) Copyright 1985-2003 Microsoft Corp.

              C:\Documents and Settings\admin>cmd /c start/w net stop w32time && start/w ne
              t start w32time

              C:\Documents and Settings\admin>w32tm /resync /rediscover
              Sending resync command to local computer...
              The command completed successfully.

              C:\Documents and Settings\admin>net time /querysntp
              The current SNTP value is:

              The command completed successfully.


              C:\Documents and Settings\admin>w32tm /tz
              Time zone: Current:TIME_ZONE_ID_STANDARD Bias: -600min (UTC=LocalTime+Bias)
              [Standard Name:"AUS Eastern Standard Time" Bias:0min DateM:3 D:5 DoW:0)]
              [Daylight Name:"AUS Eastern Daylight Time" Bias:-60min DateM:10 D:5 DoW:0)]

              C:\Documents and Settings\admin>


              Windows Registry Editor Version 5.00

              [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\W 32Time\Parameters]
              "LocalNTP"=dword:00000000
              "Period"="SpecialSkew"
              "type"="NT5DS"
              "Adj"=dword:00026256
              "msSkewPerDay"="1938.0000"
              "ntpserver"=""


              Can not find the W32time.ini file?
              Last edited by COSY; 30th March 2007, 05:17.
              AusNetIT Solutions

              Web Design | Web Hosting | SEO | IT Support

              Comment

              Working...
              X