vSphere PowerCLI Reference

Get-VMHostNtpServer

Synopsis

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

Retrieves the NTP servers on the specified hosts.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VMHostVMHost[]Specify the hosts, whose NTP servers you want to retrieve.truetrue (ByValue)
ServerVIServer[]Specify the vSphere servers on which you want to run the cmdlet. If no value is given 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

System.String

Notes

Returns the IP addresses of the NTP servers. All NTP-related cmdlets are supported only on ESX 3.5 or higher.

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 © 1998 - 2011 VMware, Inc. All rights reserved.