Editar

Test-HcsNtp

Attempts to synchronize the time to the NTP server.

Syntax

Test-HcsNtp
    [-NtpServer <String>]
    [<CommonParameters>]

Description

The Test-HcsNtp cmdlet attempts to synchronize the time to the Network Time Protocol (NTP) server for the device, and reports the results.

Examples

Example 1: Test NTP configuration

PS C:\> Test-HcsNtp
LeapIndicator          : 0(no warning)
Stratum                : 3 (secondary reference - syncd by (S)NTP)
Precision              : -6 (15.625ms per tick)
RootDelay              : 0.1249761s
RootDisperion          : 7.8620298s
ReferenceId            : 0x0BDA0145 (source IP:  10.118.1.85)
LastSuccessfulSyncTime : 1/30/2014 9:53:03 AM
Source                 : time.contoso.com
PollInterval           : 13 (8192s)

This command tests whether the NTP configuration for the device is valid.

Parameters

-NtpServer

{{Fill NtpServer Description}}

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False