< Back

Get-VMHostNtpServer

Sun Jan 19, 2020 6:55 pm

NAME Get-VMHostNtpServer



SYNOPSIS

This cmdlet retrieves the NTP servers on the specified hosts.





SYNTAX

Get-VMHostNtpServer [-VMHost] <VMHost[]> [-Server <VIServer[]>] [<CommonParameters>]





DESCRIPTION

This cmdlet retrieves the NTP servers on the specified hosts.





PARAMETERS

-Server <VIServer[]>

Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this

parameter, the command runs on the default servers. For more information about default servers, see the

description of Connect-VIServer.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-VMHost <VMHost[]>

Specifies the hosts, whose NTP servers you want to retrieve.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? true



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Zero or more String objects







NOTES





Returns the IP addresses of the NTP servers.



-------------------------- Example 1 --------------------------



Get-VMHostNtpServer -VMHost 10.23.123.100



Retrieves the NTP server of the virtual machine host with an IP address 10.23.123.100.



127.127.1.0



RELATED LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... erver.html

Add-VMHostNtpServer

Remove-VMHostNtpServer