PowerCLI Reference

Set-ScsiLunPath

Synopsis

This cmdlet configures a vmhba path to a SCSI device.

Syntax

Set-ScsiLunPath [[-Active] <Boolean>] [-ScsiLunPath] <ScsiLunPath[]> [-Preferred] [-Confirm] [-WhatIf] [<CommonParameters>]

Related Commands

Online Version
Get-ScsiLunPath
Get-ScsiLun
Set-ScsiLun

Detailed Description

This cmdlet configures a vmhba path to a SCSI device.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ActiveBooleanIndicates that the specified path is active.falseFalse
ScsiLunPathScsiLunPath[]Specifies a path to the SCSI logical unit you want to configure.trueTrue (ByValue)
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falseFalse
PreferredSwitchParameterIndicates that the specified path is preferred. Only one path can be preferred, so when a path is made preferred, the preference is removed from the previously preferred path.falseFalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

Zero or more modified ScsiLunPath objects

Notes

Examples

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

$scsilun = Get-ScsiLun -VMHost 10.23.123.100 -LunType disk

$scsipath = Get-ScsiLunPath -ScsiLun $scsilun

Set-ScsiLunPath -ScsiLunPath $scsipath -Preferred $true

Sets the specified SCSI Lun path as preferred.


Copyright © VMware, Inc. All rights reserved.