2021-10-05 09:28:21 +02:00
|
|
|
# Configuring SNTP Servers in Windows terminal
|
|
|
|
|
|
|
|
```
|
2022-12-05 12:18:06 +01:00
|
|
|
w32tm /config /syncfromflags:manual /manualpeerlist:"time.cloudflare.com time.mikes.fi time1.mikes.fi time2.mikes.fi time3.mikes.fi 0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org"
|
2021-10-05 09:28:21 +02:00
|
|
|
w32tm /resync
|
|
|
|
w32tm /query /peers
|
|
|
|
```
|
|
|
|
|
2023-02-21 16:54:39 +01:00
|
|
|
- The list is space separated NTP servers, while I think Windows uses SNTP instead
|
2023-02-21 18:33:31 +01:00
|
|
|
of NTP.
|
2023-02-21 16:54:39 +01:00
|
|
|
- `/resync` may sync current time, but is also required for the GUI
|
2023-02-21 18:33:31 +01:00
|
|
|
(Windows + I, Date & time) and following command to get aware of peers.
|
2023-02-21 16:54:39 +01:00
|
|
|
- Shows where time is synced from and statistics.
|
2023-02-21 18:33:31 +01:00
|
|
|
- There is also `net time` to sync, I am unsure of the differences while
|
|
|
|
that may be blocked while the second keeps working. It may also not
|
|
|
|
show all the peers, just the primary one, while `w32tm` is more verbose
|
|
|
|
and has all of them.
|
2023-02-21 16:54:39 +01:00
|
|
|
- As Windows doesn't support NTS and probably won't in near future, there is
|
2023-02-21 18:33:31 +01:00
|
|
|
no point in listing distant foreign servers.
|
2022-12-05 12:18:06 +01:00
|
|
|
|
2021-10-05 09:28:21 +02:00
|
|
|
## Variations
|
|
|
|
|
|
|
|
Variations of the timeserver setting command to be kept at hand
|
|
|
|
|
2022-12-05 12:18:06 +01:00
|
|
|
### DNA
|
2021-10-05 09:28:21 +02:00
|
|
|
|
2023-02-21 16:54:39 +01:00
|
|
|
_Including Moi_
|
2022-12-05 12:18:06 +01:00
|
|
|
|
|
|
|
```
|
|
|
|
w32tm /config /syncfromflags:manual /manualpeerlist:"time.cloudflare.com ntp.dnainternet.fi time.mikes.fi time1.mikes.fi time2.mikes.fi time3.mikes.fi pool.ntp.org"
|
|
|
|
```
|
2021-10-05 09:28:21 +02:00
|
|
|
|
2023-02-21 16:54:39 +01:00
|
|
|
- https://www.dna.fi/liikennerajoitukset
|
|
|
|
- https://asiakaspalvelu.moi.fi/hc/fi/articles/360029789832-Mitk%C3%A4-ovat-Moin-palvelinosoitteet-
|
2022-12-05 12:18:06 +01:00
|
|
|
|
|
|
|
### Elisa
|
2021-10-05 09:28:21 +02:00
|
|
|
|
|
|
|
```
|
2022-12-05 12:18:06 +01:00
|
|
|
w32tm /config /syncfromflags:manual /manualpeerlist:"time.cloudflare.com ntp1.kolumbus.fi ntp2.kolumbus.fi ntp.saunalahti.fi time.mikes.fi time1.mikes.fi time2.mikes.fi time3.mikes.fi pool.ntp.org"
|
2021-10-05 09:28:21 +02:00
|
|
|
```
|
|
|
|
|
2023-02-21 16:54:39 +01:00
|
|
|
- https://elisa.fi/asiakaspalvelu/ohje/tiedonsiirtoportit-porttiohjaukset-palvelimet/
|
2021-10-05 09:28:21 +02:00
|
|
|
|
|
|
|
## Information about servers
|
|
|
|
|
2023-02-21 16:54:39 +01:00
|
|
|
- https://www.cloudflare.com/time/
|
|
|
|
- https://www.netnod.se/nts/network-time-security
|
|
|
|
- https://www.vttresearch.com/fi/palvelut/suomen-aika-ntp-palvelu#julkinen
|
|
|
|
- https://www.ntppool.org/use.html
|
2023-02-21 18:33:31 +01:00
|
|
|
- Also mentions the syntax for multiple servers, but considering this Elisa
|
|
|
|
list has so many servers I am only picking one pool address just in case
|
|
|
|
the others somehow fail.
|
2021-10-05 09:28:21 +02:00
|
|
|
|
|
|
|
## Additional reading
|
|
|
|
|
2023-02-21 16:54:39 +01:00
|
|
|
- Above links
|
|
|
|
- https://jasoncoltrin.com/2018/08/02/how-to-set-clock-time-on-ad-domain-controller-and-sync-windows-clients/
|
2023-02-21 18:33:31 +01:00
|
|
|
- this file might not exist without this post, while it doesn't mention
|
|
|
|
multiple servers, uses `time.windows.com` and I am yet to actually touch
|
|
|
|
NTP on Windows Server environment.
|