Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
ms:win:ntp [2019/09/17 09:15] jsms:win:ntp [2022/03/21 10:25] (current) js
Line 5: Line 5:
  
 <code bash>w32tm /stripchart /computer:<ip> /samples:2 /packetinfo</code> <code bash>w32tm /stripchart /computer:<ip> /samples:2 /packetinfo</code>
 +
 +
 +===== Windows 2016 Server =====
 +
 +First control uplinks: <code bash>w32tm /query /source</code>
 +<code>C:\>w32tm /query /source
 +0.de.pool.ntp.org</code>
 +
 +If it prints "Free-running System Clock" or "Local CMOS Clock" the ntp server is not configured.
 +
 +List peers: <code bash>w32tm /query /peers</code>
 +
 +<code>C:\>w32tm /query /peers
 +#Peers: 1
 +
 +Peer: 0.de.pool.ntp.org
 +State: Active
 +Time Remaining: 89.1605791s
 +Mode: 1 (Symmetric Active)
 +Stratum: 1 (primary reference - syncd by radio clock)
 +PeerPoll Interval: 7 (128s)
 +HostPoll Interval: 7 (128s)</code>
 +
 +If peer setting is empty and state pending:
 +
 +<code>C:\> w32tm /query /peers
 +#Peers: 1
 +
 +Peer:
 +State: Pending
 +Time Remaining: 6179.7006269s
 +Mode: 0 (reserved)
 +Stratum: 0 (unspecified)
 +PeerPoll Interval: 0 (unspecified)
 +HostPoll Interval: 0 (unspecified)</code>
 +
 +the server is not using ntp.
 +
 +Edit the peer list:
 +<code bash>w32tm /config /update /manualpeerlist:"0.de.poolntp.org 1.de.poolntp.org" /syncfromflags:manual /reliable:yes</code>
 +
 +Force sync:
 +<code bash>w32tm /resync /rediscover</code>
 +