PowerCLI Reference

Set-ScsiLunPath

Synopsis

This cmdlet configures a vmhba path to a SCSI device.

Syntax

Set-ScsiLunPath [[-Active] <Boolean>] [-ScsiLunPath] <ScsiLunPath[]> [-Preferred] [-WhatIf] [-Confirm] [<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.