219 lines
6.0 KiB
Markdown
219 lines
6.0 KiB
Markdown
---
|
|
created: 2024-10-09T15:50:58.262Z
|
|
type: note
|
|
updated: 2024-12-11T16:40:28.098Z
|
|
---
|
|
|
|
# NTP
|
|
|
|
- [26570683589529-How-to-Setup-an-NTP-Server-on-Windows-10](https://support.hanwhavision.com/hc/en-us/articles/26570683589529-How-to-Setup-an-NTP-Server-on-Windows-10)
|
|
|
|
```bash Wed Oct 09 2024 08:55:05 GMT-0700 (Mountain Standard Time)
|
|
w32tm /config /update
|
|
w32tm /query /configuration
|
|
w32tm /query /peers
|
|
```
|
|
|
|
```yaml Wed Oct 09 2024 08:55:20 GMT-0700 (Mountain Standard Time)
|
|
[Configuration]
|
|
|
|
EventLogFlags: 2 (Local)
|
|
AnnounceFlags: 10 (Local)
|
|
TimeJumpAuditOffset: 28800 (Local)
|
|
MinPollInterval: 6 (Local)
|
|
MaxPollInterval: 10 (Local)
|
|
MaxNegPhaseCorrection: 4294967295 (Local)
|
|
MaxPosPhaseCorrection: 4294967295 (Local)
|
|
MaxAllowedPhaseOffset: 300 (Local)
|
|
|
|
FrequencyCorrectRate: 4 (Local)
|
|
PollAdjustFactor: 5 (Local)
|
|
LargePhaseOffset: 50000000 (Local)
|
|
SpikeWatchPeriod: 900 (Local)
|
|
LocalClockDispersion: 10 (Local)
|
|
HoldPeriod: 5 (Local)
|
|
PhaseCorrectRate: 1 (Local)
|
|
UpdateInterval: 100 (Local)
|
|
|
|
|
|
[TimeProviders]
|
|
|
|
NtpClient (Local)
|
|
DllName: C:\Windows\system32\w32time.dll (Local)
|
|
Enabled: 1 (Local)
|
|
InputProvider: 1 (Local)
|
|
CrossSiteSyncFlags: 2 (Local)
|
|
AllowNonstandardModeCombinations: 1 (Local)
|
|
ResolvePeerBackoffMinutes: 15 (Local)
|
|
ResolvePeerBackoffMaxTimes: 7 (Local)
|
|
CompatibilityFlags: 2147483648 (Local)
|
|
EventLogFlags: 1 (Local)
|
|
LargeSampleSkew: 3 (Local)
|
|
SpecialPollInterval: 3600 (Local)
|
|
Type: NT5DS (Local)
|
|
|
|
VMICTimeProvider (Local)
|
|
DllName: C:\Windows\System32\vmictimeprovider.dll (Local)
|
|
Enabled: 1 (Local)
|
|
InputProvider: 1 (Local)
|
|
NtpServer (Local)
|
|
DllName: C:\Windows\system32\w32time.dll (Local)
|
|
Enabled: 0 (Local)
|
|
InputProvider: 0 (Local)
|
|
```
|
|
|
|
```yaml SRP (10.95.154.30) Wed Oct 09 2024 08:58:48 GMT-0700 (Mountain Standard Time)
|
|
[Configuration]
|
|
|
|
EventLogFlags: 2 (Local)
|
|
AnnounceFlags: 10 (Local)
|
|
TimeJumpAuditOffset: 28800 (Local)
|
|
MinPollInterval: 10 (Local)
|
|
MaxPollInterval: 15 (Local)
|
|
MaxNegPhaseCorrection: 54000 (Local)
|
|
MaxPosPhaseCorrection: 54000 (Local)
|
|
MaxAllowedPhaseOffset: 1 (Local)
|
|
|
|
FrequencyCorrectRate: 4 (Local)
|
|
PollAdjustFactor: 5 (Local)
|
|
LargePhaseOffset: 50000000 (Local)
|
|
SpikeWatchPeriod: 900 (Local)
|
|
LocalClockDispersion: 10 (Local)
|
|
HoldPeriod: 5 (Local)
|
|
PhaseCorrectRate: 1 (Local)
|
|
UpdateInterval: 360000 (Local)
|
|
|
|
|
|
[TimeProviders]
|
|
|
|
NtpClient (Local)
|
|
DllName: C:\Windows\system32\w32time.dll (Local)
|
|
Enabled: 1 (Local)
|
|
InputProvider: 1 (Local)
|
|
AllowNonstandardModeCombinations: 1 (Local)
|
|
ResolvePeerBackoffMinutes: 15 (Local)
|
|
ResolvePeerBackoffMaxTimes: 7 (Local)
|
|
CompatibilityFlags: 2147483648 (Local)
|
|
EventLogFlags: 1 (Local)
|
|
LargeSampleSkew: 3 (Local)
|
|
SpecialPollInterval: 32768 (Local)
|
|
Type: NTP (Local)
|
|
NtpServer: ntp01.auc.infineon.com,0x9 (Local)
|
|
|
|
NtpServer (Local)
|
|
DllName: C:\Windows\system32\w32time.dll (Local)
|
|
Enabled: 0 (Local)
|
|
InputProvider: 0 (Local)
|
|
|
|
|
|
|
|
C:\Users\Administrator>w32tm /query /configuration
|
|
[Configuration]
|
|
|
|
EventLogFlags: 2 (Local)
|
|
AnnounceFlags: 10 (Local)
|
|
TimeJumpAuditOffset: 28800 (Local)
|
|
MinPollInterval: 10 (Local)
|
|
MaxPollInterval: 15 (Local)
|
|
MaxNegPhaseCorrection: 54000 (Local)
|
|
MaxPosPhaseCorrection: 54000 (Local)
|
|
MaxAllowedPhaseOffset: 1 (Local)
|
|
|
|
FrequencyCorrectRate: 4 (Local)
|
|
PollAdjustFactor: 5 (Local)
|
|
LargePhaseOffset: 50000000 (Local)
|
|
SpikeWatchPeriod: 900 (Local)
|
|
LocalClockDispersion: 10 (Local)
|
|
HoldPeriod: 5 (Local)
|
|
PhaseCorrectRate: 1 (Local)
|
|
UpdateInterval: 360000 (Local)
|
|
|
|
|
|
[TimeProviders]
|
|
|
|
NtpClient (Local)
|
|
DllName: C:\Windows\system32\w32time.dll (Local)
|
|
Enabled: 1 (Local)
|
|
InputProvider: 1 (Local)
|
|
AllowNonstandardModeCombinations: 1 (Local)
|
|
ResolvePeerBackoffMinutes: 15 (Local)
|
|
ResolvePeerBackoffMaxTimes: 7 (Local)
|
|
CompatibilityFlags: 2147483648 (Local)
|
|
EventLogFlags: 1 (Local)
|
|
LargeSampleSkew: 3 (Local)
|
|
SpecialPollInterval: 32768 (Local)
|
|
Type: NTP (Local)
|
|
NtpServer: ntp01.auc.infineon.com,0x9 (Local)
|
|
|
|
NtpServer (Local)
|
|
DllName: C:\Windows\system32\w32time.dll (Local)
|
|
Enabled: 1 (Local)
|
|
InputProvider: 0 (Local)
|
|
AllowNonstandardModeCombinations: 1 (Local)
|
|
```
|
|
|
|
```bash Wed Oct 09 2024 09:21:32 GMT-0700 (Mountain Standard Time)
|
|
# https://computing.cs.cmu.edu/desktop/ntp-settings
|
|
w32tm /config /update /manualpeerlist:"ntp01.auc.infineon.com reftime.ifxcep.net 10.95.154.30"
|
|
w32tm /query /peers
|
|
```
|
|
|
|
```yaml SPV (10.95.154.20) Wed Oct 09 2024 09:23:52 GMT-0700 (Mountain Standard Time)
|
|
Peers: 3
|
|
|
|
Peer: 10.95.154.30
|
|
State: Active
|
|
Time Remaining: 1005.4541015s
|
|
Mode: 3 (Client)
|
|
Stratum: 0 (unspecified)
|
|
PeerPoll Interval: 0 (unspecified)
|
|
HostPoll Interval: 10 (1024s)
|
|
|
|
Peer: ntp01.auc.infineon.com
|
|
State: Active
|
|
Time Remaining: 1005.4560547s
|
|
Mode: 3 (Client)
|
|
Stratum: 0 (unspecified)
|
|
PeerPoll Interval: 0 (unspecified)
|
|
HostPoll Interval: 10 (1024s)
|
|
|
|
Peer: reftime.ifxcep.net
|
|
State: Active
|
|
Time Remaining: 1005.4570312s
|
|
Mode: 3 (Client)
|
|
Stratum: 0 (unspecified)
|
|
PeerPoll Interval: 0 (unspecified)
|
|
HostPoll Interval: 10 (1024s)
|
|
```
|
|
|
|
```bash Wed Oct 09 2024 09:59:53 GMT-0700 (Mountain Standard Time)
|
|
w32tm /stripchart /computer:time.google.com
|
|
w32tm /stripchart /computer:messr001.infineon.com
|
|
w32tm /stripchart /computer:mucsr001.infineon.com
|
|
w32tm /stripchart /computer:10.95.154.30
|
|
# Tracking 10.95.154.30 [10.95.154.30:123].
|
|
# The current time is 10/9/2024 10:17:50 AM.
|
|
# 10:17:50, d:+00.0005120s o:-52.3908994s [@ | ]
|
|
w32tm /resync /computer:10.95.154.30
|
|
# The following error occurred: Access is denied. (0x80070005)
|
|
```
|
|
|
|
```bash Wed Oct 09 2024 12:50:10 GMT-0700 (Mountain Standard Time)
|
|
w32tm /config /manualpeerlist:ntp01.auc.infineon.com /syncfromflags:manual /reliable:yes /update
|
|
w32tm /config /manualpeerlist:10.95.154.30 /syncfromflags:manual /reliable:yes /update
|
|
w32tm /query /source
|
|
w32tm /query /status
|
|
w32tm /query /configuration
|
|
w32tm /monitor /computers:10.95.154.30
|
|
w32tm /stripchart /computer:10.95.154.30
|
|
net stop w32time
|
|
net start w32time
|
|
w32tm /config /update
|
|
w32tm /resync /rediscover
|
|
# https://stackoverflow.com/questions/67297163/windows-time-service-wont-synchronize
|
|
# Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
|
|
# Enter a new parameter LocalNTP (DWORD) with value 1.
|
|
# Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
|
|
# set the AnnounceFlags to 5
|
|
```
|