dinsdag 6 maart 2012

W32TM Time settings

Soms gebeuren er vreemde zaken die niet te verklaren zijn, waar veel mensen niet bij stil staan is dat tijd een hele belangrijke factor is voor veel applicaties.
Als er bijv. meer dan 5 minuten tussen een DC zit en een client dan kunnen er vreemde zaken gebeuren vooral met authenticatie (kerberos) problemen.

Hieronder een aantal commando’s om zaken na te lopen. (allen uit te voeren in DOS prompt als administrator)

W32tm / query /source de gegevens worden opgevraagd waar de computer zijn tijd vandaan haalt, onderstaande voorbeeld zie je dat de tijd komt van de Domain Controller,
Voor een computer dat in een domein hangt dus perfect!

W32tm /monitor er worden diverse checks gedaan, wat belangrijk is om te weten is de stratum waarde, de stratumwaarde  geeft aan wie de hoofdtijd server is.
In onderstaande voorbeeld zie je dat er 3 DC’s zijn waarvan 1 een lagere stratum waarde heeft dan de andere 2, je kunt ook zeggen dat deze server met stratum waarde 3
De hoofdtijdserver is van het hele domein. De DC met stratum waarde 3 haalt zijn tijd weer extern ergens vandaan (nl.pool.ntp.org, stratum 2) en zoals je kunt zien haalt nl.pool.ntp.org deze tijd ook weer ergens vandaan (turnera-ext-bge0.toolserver.org, stratum 1)

W32tm /query /status hier kun je snel zien wat de bron is en wanneer de laatste keer is geweest dat de client heeft gesynchroniseerd.

Om een client (domein) te laten syncen voer je onderstaande stappen uit: (let op, in principe als je een client toevoegt aan een domein dan doet hij dit automatisch)

To configure a client computer for automatic domain time synchronization
  1. Open a Command Prompt. (as administrator)
  2. Type the following command and then press ENTER:
w32tm /config /syncfromflags:domhier /update
  1. Type the following command and then press ENTER:
net stop w32time
  1. Type the following command and then press ENTER:
net start w32time

Om een client/DC rechtstreeks met een externe tijdbron te laten syncen voer je onderstaande uit:
To synchronize the domain controller with an external time source
  1. Click Start, and then click Command Prompt. (as administrator)
  2. In the Command Prompt window, type the following line, where peers is a comma-separated list of IP addresses of the appropriate time sources, and press ENTER:

    w32tm /config /manualpeerlist: nl.pool.ntp.org /syncfromflags:MANUAL

    Press ENTER. You should get a message that the command completed successfully.
  3. Type w32tm /config /update
  4. Press ENTER. You should get a message that the command completed successfully.

    W32time uses a variable poll interval based on the quality of timesync with the server. On DCs, this interval defaults to between 64 and 1024 seconds.
  5. To immediately synchronize with the external time server, type w32tm /resync and press ENTER. You should get a message that the command completed successfully.
  6. Type Exit and press ENTER.  
Some werkt bovenstaande niet, dan kun je het beste W32 even opnieuw registreren dit doe je als volgt:
 
net stop w32time
w32tm /unregister
w32tm /register
net start w32time
 
Bron: Technet


Geen opmerkingen:

Een reactie posten