< Back
Get-HAPrimaryVMHost
Post
NAME Get-HAPrimaryVMHost
SYNOPSIS
On vCenter Server 5.0 and later, this cmdlet retrieves the master host of the specified HA cluster. On vCenter
Server versions earlier than 5.0, this cmdlet retrieves the primary HA (High-Availability) hosts for the specified
clusters.
SYNTAX
Get-HAPrimaryVMHost [[-Cluster] <Cluster[]>] [-Server <VIServer[]>] [<CommonParameters>]
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 <Cluster[]>
Specifies the clusters for which you want to retrieve the HA primary hosts.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-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
<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 VMHost objects
NOTES
-------------------------- 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.
RELATED LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... MHost.html
SYNOPSIS
On vCenter Server 5.0 and later, this cmdlet retrieves the master host of the specified HA cluster. On vCenter
Server versions earlier than 5.0, this cmdlet retrieves the primary HA (High-Availability) hosts for the specified
clusters.
SYNTAX
Get-HAPrimaryVMHost [[-Cluster] <Cluster[]>] [-Server <VIServer[]>] [<CommonParameters>]
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 <Cluster[]>
Specifies the clusters for which you want to retrieve the HA primary hosts.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-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
<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 VMHost objects
NOTES
-------------------------- 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.
RELATED LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... MHost.html