NTP time server configuration process detailed
additional information Reference Anhui Beijing-Technology ahjzsz.com
1, the time synchronization process:
The client uses the default domain controller that is connected to a clock source, the domain controller from the forest will be the authoritative source synchronous clock time, if you do not specify a domain controller as the authoritative source clock, then the domain controller that holds the PDC role to play authoritative clock server.
Authoritative source clock acquisition time, there are two ways, one is installed within the network hardware clock, the other is an external clock server, if you have not configured, then the PDC will use its own internal clock.
2, the query commands
w32tm / query / source # query clock source
20170908100707173001.png
w32tm / query / status # query time service status
20170908100708023002.png
w32tm / query / configuration # query the current configuration information
20170908100709098003.png
Nc tools used, see the clock source 123 of the port is open, as shown below for the open tips
nc.exe -vuz 9.38.90.130 123
20170908100710361004.png
3, manually clock source
w32tm /config /update /manualpeerlist:9.38.90.231 /syncfromflags:manual /reliable:yes
Upon completion of command need to use the command to restart the service: net stop w32tm && net start w32tm
20170908100711736005.png
w32tm / resync / nowait # resynchronization clocks, ranging synchronous case, returns the result directly
20170908100712788006.png
4, the corresponding registry
路径:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\W32Time\Parameters
20170908100713300007.jpg
Type Description:
Nosync: means that the client does not synchronize time
NTP: that the client synchronize time from an external time source, and this time NTPServer field defines the source
NT5DS: means that the client is configured to use a domain architecture as their time synchronization
AllSync: The client indicates any reliable synchronization time from the time at the source, and the domain structure comprising an external time source.
Note: The default value on the domain controller is NT5DS, on a standalone client or server is NTP.
5, Debug Logging
开启debug:w32tm /debug /enable /file:c:\w32time.log /size:10000000 /entries:300
(Debug log generated in c: \ w32time.log, the maximum value for circular logging 10M, is a range of types of recording all of the information recording showing 0-300,300.)
关闭debug:w32tm /debug /disable
(Closed debug logging)