Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How to check system's current NTP configuration on all OS?

by Discipulus (Canon)
on Jul 27, 2015 at 07:52 UTC ( [id://1136424]=note: print w/replies, xml ) Need Help??


in reply to How to check system's current NTP configuration on all OS?

dunno if the output of such commands can be still useful to you..
C:\Windows\system32>w32tm.exe /query /configuration [Configurazione] EventLogFlags: 2 (Locale) AnnounceFlags: 10 (Locale) TimeJumpAuditOffset: 28800 (Locale) MinPollInterval: 10 (Locale) MaxPollInterval: 15 (Locale) MaxNegPhaseCorrection: 4294967295 (Locale) MaxPosPhaseCorrection: 4294967295 (Locale) MaxAllowedPhaseOffset: 300 (Locale) FrequencyCorrectRate: 4 (Locale) PollAdjustFactor: 5 (Locale) LargePhaseOffset: 50000000 (Locale) SpikeWatchPeriod: 900 (Locale) LocalClockDispersion: 10 (Locale) HoldPeriod: 5 (Locale) PhaseCorrectRate: 1 (Locale) UpdateInterval: 30000 (Locale) [Provider servizi orari] NtpClient (Locale) DllName: C:\Windows\system32\w32time.dll (Locale) Enabled: 1 (Locale) InputProvider: 1 (Locale) CrossSiteSyncFlags: 2 (Locale) AllowNonstandardModeCombinations: 1 (Locale) ResolvePeerBackoffMinutes: 15 (Locale) ResolvePeerBackoffMaxTimes: 7 (Locale) CompatibilityFlags: 2147483648 (Locale) EventLogFlags: 1 (Locale) LargeSampleSkew: 3 (Locale) SpecialPollInterval: 3600 (Locale) Type: NT5DS (Locale) VMICTimeProvider (Locale) DllName: C:\Windows\System32\vmictimeprovider.dll (Locale) Enabled: 1 (Locale) InputProvider: 1 (Locale) NtpServer (Locale) DllName: C:\Windows\system32\w32time.dll (Locale) Enabled: 0 (Locale) InputProvider: 0 (Locale) C:\Windows\system32>w32tm.exe /query /status Indicatore di secondo intercalare: 0(nessun avviso) Strato: 4 (riferimento secondario - sincronizza tramite (S)NTP) Precisione: -6 (15.625ms per tick) Ritardo radice: 0.0937500s Dispersione radice: 1.4511151s ID riferimento: 0xAC180106 (IP origine: 172.24.1.6) Data e ora dell'ultima sincronizzazione riuscita: 27/07/2015 07:48:49 Origine: DC04-RM.MC-link.HQ Intervallo di polling: 15 (32768s) C:\Windows\system32>reg QUERY HKLM\SYSTEM\CurrentControlSet\Services\W +32Time\Config HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config FrequencyCorrectRate REG_DWORD 0x4 PollAdjustFactor REG_DWORD 0x5 LargePhaseOffset REG_DWORD 0x2faf080 SpikeWatchPeriod REG_DWORD 0x384 LocalClockDispersion REG_DWORD 0xa HoldPeriod REG_DWORD 0x5 PhaseCorrectRate REG_DWORD 0x1 UpdateInterval REG_DWORD 0x7530 EventLogFlags REG_DWORD 0x2 AnnounceFlags REG_DWORD 0xa TimeJumpAuditOffset REG_DWORD 0x7080 MinPollInterval REG_DWORD 0xa MaxPollInterval REG_DWORD 0xf MaxNegPhaseCorrection REG_DWORD 0xffffffff MaxPosPhaseCorrection REG_DWORD 0xffffffff MaxAllowedPhaseOffset REG_DWORD 0x12c C:\Windows\system32>reg QUERY HKLM\SYSTEM\CurrentControlSet\Services\W +32Time\Parameters HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameter +s ServiceDll REG_EXPAND_SZ %systemroot%\system32\w32time.dll ServiceMain REG_SZ SvchostEntry_W32Time ServiceDllUnloadOnStop REG_DWORD 0x1 Type REG_SZ NT5DS NtpServer REG_SZ time.windows.com,0x9 C:\Windows\system32>

Notice that on win you must be Administrator to run the above commands.

L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: How to check system's current NTP configuration on all OS?
by thanos1983 (Parson) on Jul 27, 2015 at 10:50 UTC

    Hello Discipulus,

    Thank you for your time and effort, reading, testing and replying to my question.

    The part that I am interested is:

    C:\Windows\system32>w32tm.exe /query /status Indicatore di secondo intercalare: 0(nessun avviso) Strato: 4 (riferimento secondario - sincronizza tramite (S)NTP) Precisione: -6 (15.625ms per tick) Ritardo radice: 0.0937500s Dispersione radice: 1.4511151s ID riferimento: 0xAC180106 (IP origine: 172.24.1.6) Data e ora dell'ultima sincronizzazione riuscita: 27/07/2015 07:48:49 Origine: DC04-RM.MC-link.HQ Intervallo di polling: 15 (32768s)

    Damn I was afraid that it might require to be Administrator to get these values. :( Well I have to find an alternative solution I assume.

    Thank you again for your time and effort.

    Seeking for Perl wisdom...on the process of learning...not there...yet!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1136424]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-26 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found