<!DOCTYPE html> <html> <head> </head> <body> <p> </p> <p><code>w32tm /config /manualpeerlist:”ntp.goline.ch,ntp2.goline.ch” /reliable:yes /update</code></p> <p><code>w32tm /config /manualpeerlist:<em>[server]</em>,0x8 /syncfromflags:MANUAL</code> <br />The actual IP address of the NTP server or its host name must be entered instead of <em>[server]</em>. <br />The flag "0x8" forces w32time not to send "symmetric active" packets but normal "client" requests which the NTP server replies to as usual.</p> <p>Then the following command can be used to immediately make the changes effective:</p> <p><code>w32tm /config /update </code><br />If this command has completed successfully your system clock has synchronized to the given NTP server. To check it open a Date and Time window (click "time" icon in the lower right corner of the desktop) -> Change date and time settings -> Internet Time. You should see something similar to Figure 6.</p> <p>Alternatively, the w32time service can be restarted:</p> <p><code>net stop w32time <br />net start w32time</code></p> <p>The command:</p> <p>w32tm /query /peers<br />can be used to check the configuration. The output should look similar to the line below:<br /><br />#Peers: 1<br />Peer: ntp.goline.ch,0x2<br />State: Active<br />Time Remaining: 221.4934473s<br />Mode: 1 (Symmetric Active)<br />Stratum: 2 (secondary reference – syncd by (S)NTP)<br />PeerPoll Interval: 8 (256s)<br />HostPoll Interval: 8 (256s)</p> <p><code></code></p> <p><code></code></p> <p><code>The current SNTP value is:[server],0x8</code></p> <p>If the w32time service is restarted it sends immediately a request to the NTP server. Additionally, the command:</p> <p><code>w32tm /resync </code><br />can be used to let w32time send a request.</p> <p><code></code></p> </body> </html>
Subscribe
0 Comments
Oldest