< Back

Set-ScsiLunPath

Sun Jan 19, 2020 7:09 pm

NAME Set-ScsiLunPath



SYNOPSIS

This cmdlet configures a vmhba path to a SCSI device.





SYNTAX

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

[<CommonParameters>]





DESCRIPTION

This cmdlet configures a vmhba path to a SCSI device.





PARAMETERS

-Active <Boolean>

Indicates that the specified path is active.



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Preferred [<SwitchParameter>]

Indicates 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.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-ScsiLunPath <ScsiLunPath[]>

Specifies a path to the SCSI logical unit you want to configure.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

If 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.



Required? false

Position? named

Default value $true

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are

modified.



Required? false

Position? named

Default value False

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



OUTPUTS

Zero or more modified ScsiLunPath objects







NOTES









-------------------------- 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.



RELATED LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... nPath.html

Get-ScsiLunPath

Get-ScsiLun

Set-ScsiLun