powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-HAPrimaryVMHost



NAME
Get-HAPrimaryVMHost

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

SYNTAX
Get-HAPrimaryVMHost [[-Cluster] ] [-Server ] []


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
-Cluster
Specify the clusters for which you want to retrieve the HA primary hosts.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
VMHost


NOTES




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

C:\PS>Get-Cluster | Get-HAPrimaryVMHost


Retrieves the HA primary hosts of the available cluster.





-------------- Example 2 --------------

C:\PS>Get-HAPrimaryVMHost Cluster


Retrieves the HA primary host of the cluster named Cluster.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-HAPrimaryVMHost.html