PowerCLI Reference

Get-VMHostNtpServer

Synopsis

This cmdlet retrieves the NTP servers on the specified hosts.

Syntax

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

Related Commands

Online version
Add-VMHostNtpServer
Remove-VMHostNtpServer

Detailed Description

This cmdlet retrieves the NTP servers on the specified hosts.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VMHostVMHost[]Specifies the hosts, whose NTP servers you want to retrieve.truetrue (ByValue)
ServerVIServer[]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.falsefalse

Return Type

Zero or more String objects

Notes

Returns the IP addresses of the NTP servers.

Examples

-------------- 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


Copyright © VMware, Inc. All rights reserved.