Get-HypXenServerAddress
Gets all the available addresses for a XenServer hypervisor connection.
Syntax
Get-HypXenServerAddress
[-LiteralPath] <String>
[-SkipCertificateValidation]
[<CitrixCommonParameters>]
[<CommonParameters>]
Description
Use this cmdlet to retrieve all the available hypervisor connection addresses that can be used to connect to the same XenServer pool. When used in conjunction with Add-HypHypervisorConnectionAddress, you can easily populate a connection with all the addresses that can be used to provide full failover support for a XenServer connection.
If the addresses are https addresses, the command uses the certificates installed on the XenServers to provide suitable https addresses where possible. Only servers that can be resolved are returned.
Examples
EXAMPLE 1
Gets the available addresses for the connection "MyConnection".
Get-HypXenServerAddress -LiteralPath XDHyp:\Connections\MyConnection
https:\\myserver.com
https:\\myServer1.com
EXAMPLE 2
Adds all the available addresses for the XenServer pool in "MyConnection" to the hypervisor connection.
Get-HypXenServerAddress -LiteralPath XDHyp:\Connections\MyConnection | Add-HypHypervisorConnectionAddress -LiteralPath XDHyp:\Connections\MyConnectionPath
Parameters
-LiteralPath
Specifies the path within a Host Service provider to the hypervisor connection item to which to add the address. The path specified must be in one of the following formats:
\<drive\>:\Connections\\\<HypervisorConnectionName\>
or \<drive\>:\Connections\{HHypervisorConnection Uid\>}
| Type: | String |
| Position: | 1 |
| Default value: | None |
| Required: | True |
| Accept pipeline input: | True (ByValue) |
| Accept wildcard characters: | False |
-SkipCertificateValidation
Forces the cmdlet to skip checking SSL certificates. By default, the cmdlet will check the certificate from the server. If the certificate is not valid, the cmdlet will not connect to the server.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Required: | False |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
| Introduced in: | Citrix Virtual Apps and Desktop 7 2511 |
CitrixCommonParameters
This cmdlet supports the common Citrix parameters: -AdminAddress, -AdminClientIP, -BearerToken, -TraceParent, -TraceState and -VirtualSiteId. For more information, see about_CitrixCommonParameters.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
None
You can't pipe objects to this cmdlet.
Outputs
Get-HypXenServerAddress returns a list of strings containing the available address.
Notes
For this to work as required with https connections, the certificates installed on the XenServers must be trusted by all controllers. Typically this means having the root certificate for the certificate trust chain installed on all controllers. Wildcard certificates are not supported for this operation.
In the case of failure, the following errors can result.
Error Codes
InputConnectionsPathInvalid
The path provided is not to an item in a sub-directory of a hosting unit item.
HypervisorConnectionNotXenServer
The hypervisor connection to which the path refers is not for XenServer.
HypervisorConnectionObjectNotFound
The hypervisor connection at the path specified cannot be located.
HypervisorInMaintenanceMode
The hypervisor for the connection is in maintenance mode.
DatabaseError
An error occurred in the service while attempting a database operation.
DatabaseNotConfigured
The operation could not be completed because the database for the service is not configured.
DataStoreException
An error occurred in the service while attempting a database operation - communication with the database failed for
various reasons.
CommunicationError
An error occurred while communicating with the service.
InvalidFilter
A filtering expression was supplied that could not be interpreted for this cmdlet.
ExceptionThrown
An unexpected error occurred. For more details, see the Windows event logs on the controller being used or examine the XenDesktop logs.