NAME

Set-DcsClientProperties

SYNOPSIS

Sets the properties of a client (host).

SYNTAX

Set-DcsClientProperties   -Client <Object>   [ -Name <String> ]   [ -PreferredServer <Object[]> ]   [ -Description <String> ]   [ -ClientType <String> ]   [ -Multipath <Boolean> ]   [ -ALUA <Boolean> ]   [ -Connection <String> ]   [ -PipelineVariable <String> ] [<CommonParameters>]

DESCRIPTION

Sets the properties of a client (host). Specify the parameters to set or change.

PARAMETERS

-Client<Object>
ClientHostData object, name, or ID that identifies the client.

Required: true
Position: named
Default value:
Accept pipeline input: true (ByValue)
Accept wildcard characters: false

-Name<String>
Use this parameter to set a new name for the client.

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-PreferredServer<Object[]>
Use this parameter to set the preferred servers for the client (host). Valid values include the computer name or ID of one or more servers. Computer names must be either unique or fully qualified. Multiple servers should be separated by commas, for instance "SSVVM01", "SSVVM02", "SSVVM03". The Auto Select option (available in the console) is not supported in this cmdlet.

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-Description<String>
Use this parameter to set or change the description of the client. To remove the description, use an empty string as the value; for example "".

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-ClientType<String>
Use this parameter to set the operating system type of the client. Specify one of the following types: "WindowsServer2012" if the client host is running Windows Server 2012 and later. "WindowsServer2008" if the client host is running Windows Server 2008. "Windows" if the client host is running any Windows operating system version prior to Windows Server 2008. "ESXi" if the client host is running VMware ESXi. "CitrixXenServer" if the client host is running Citrix Xen Server. "SuseEnterpriseLinusServer11" if the client host is running Linux Suse Enterprise Server 11. "Linux" if the client host is running any Linux operating system other than Linux Suse Enterprise Server 11. "AixMpio" if the client host is running IBM AIX Native MPIO Legacy. "AixMpioTL6Plus" if the client host is running IBM AIX. "HPUX" if the client is running HP HPUX. "SolarisSanFoundation" if the client host is running Oracle (Sun) Solaris. "Proxmox" if the client host is a Proxmox Virtual Environment. "Other" if the client host is running an operating system that is not listed.

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-Multipath<Boolean>
Use this parameter to set multipathing. Specify $true to enable multipathing or $false to disable multipathing. After this function is enabled, any virtual disk then served to a client will have one path from the client to each server.

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-ALUA<Boolean>
Use this parameter to set ALUA support. Specify $true to enable ALUA support or $false to disable ALUA support. After this function is enabled, any virtual disk then served to a client will have support for SCSI-3 target port group commands. Multipathing must be enabled in order to enable ALUA support (see Multipath parameter).

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-Connection<String>
Alias of the connection to the server group. If not specified, the default connection will be used.

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-PipelineVariable<String>

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false
 
-<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

ClientHostData : Object that identifies and describes the client.

OUTPUTS

ClientHostData : Object that identifies and describes the client.

NOTES

Also see Set-DcsPortProperties, Get-DcsClient.

EXAMPLES


-------------- Example 1 Sets properties for a client specified by name --------------
Set-DcsClientProperties -Client Host3 -PreferredServer SSV1 -ALUA $true
		

Sets properties for the client named "Host3". The preferred server is set to the server named "SSV1" and ALUA is enabled.

Type:WindowsServer2008
State:Online
MpioCapable:True
AluaSupport:True
PreferredServerId:84972D6B-7E71-4616-BDA1-57ECEAF3FFC4
Description:
HostName:Host3
Id:f9ce9aa11ab34f7a8309ca563e9af221
Caption:Host3
ExtendedCaption:Host3
Internal:False
   

-------------- Example 2 Sets a property for all clients by piping objects --------------
Get-DcsClient | Set-DcsClientProperties -PreferredServer SSV2
		

The cmdlet Get-DcsClient is invoked to obtain ClientHostData objects for all clients. The objects are piped to Set-DcsClientProperties to set the preferred server for all clients to the server named "SSV2".

Type:WindowsServer2008
State:Online
MpioCapable:True
AluaSupport:False
PreferredServerId:C553D471-3527-47EC-9326-D53E04204F2B
Description:
HostName:Host4
Id:fae898de7c5e4b8b83099f6f4d4703be
Caption:Host4
ExtendedCaption:Host4
Internal:False
   
Type:WindowsServer2008
State:Online
MpioCapable:True
AluaSupport:True
PreferredServerId:C553D471-3527-47EC-9326-D53E04204F2B
Description:
HostName:Host3
Id:f9ce9aa11ab34f7a8309ca563e9af221
Caption:Host3
ExtendedCaption:Host3
Internal:False
   

-------------- Example 3 Sets the multipath and ALUA settings for a virtual machine --------------
Set-DcsClientProperties -Client audi-vm1 -Multipath $true -ALUA $true
		

Changed the multipath and ALUA settings for the virtual machine named "audi-vm1". Enabled the multipath and ALUA settings by providing $true as the value for both.

HostId:0A76B835-99B2-4340-97F3-3E5F769589AE-host-29
PowerState:PoweredOn
ProvisionedSpace:62.24 GiB
UsedSpace:62.24 GiB
Template:False
ConnectorId:0A76B835-99B2-4340-97F3-3E5F769589AE
DatacenterId:0A76B835-99B2-4340-97F3-3E5F769589AE-datacenter-21
Datastores:{0A76B835-99B2-4340-97F3-3E5F769589AE-datastore-41}
HostGroupId:
Type:WindowsServer2008
State:Unknown
MpioCapable:True
AluaSupport:True
PathPolicy:PreferredServer
PreferredServerId:
Description:Microsoft Windows Server 2008 R2 (64-bit)
HostName:audi-vm1
Sequencenumber:57196
Id:0A76B835-99B2-4340-97F3-3E5F769589AE-vm-44
Caption:audi-vm1
ExtendedCaption:audi-vm1 from ESXivc55
Internal:False