Syntax
Get-HAPrimaryVMHost [[-Cluster] <Cluster[]>] [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online VersionDetailed Description
On vCenter Server 5.0 and later, the cmdlet retrieves the master host of the specified HA cluster. On vCenter Server versions earlier than 5.0, the cmdlet retrieves the primary HA (High-Availability) hosts for the specified clusters.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Cluster | Cluster[] | Specifies the clusters for which you want to retrieve the HA primary hosts. | false | True (ByValue) | |
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. | false | False |
Return Type
Zero or more VMHost objectsNotes
Examples
-------------------------- Example 1 --------------------------
Get-Cluster | Get-HAPrimaryVMHost
Retrieves the HA primary hosts of the available cluster.
-------------------------- Example 2 --------------------------
Get-HAPrimaryVMHost Cluster
Retrieves the HA primary host of the cluster named Cluster.