NTP clock source (GPS time source) Introduction and Analysis of Anhui Beijing Electronic Science and Technology Associate

NTP clock source (GPS time source) Introduction and Analysis of Anhui Beijing Electronic Science and Technology Associate

NTP clock source (GPS time source) Introduction and Analysis of Anhui Beijing Electronic Science and Technology Associate

For more information refer www.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日志在c:\w32time.log,循环日志记录的最大值为10M,记录的类型范围是0-300,300表示记录所有信息。)

 

关闭debug:w32tm /debug /disable

(关闭debug日志记录功能)

 

Guess you like

Origin www.cnblogs.com/yfcs999/p/13211yuefeng.html