Set-ScsiLunPath Command | Vmware PowerCLI Reference

Set-ScsiLunPath

This cmdlet configures a vmhba path to a SCSI device.

Syntax

Set-ScsiLunPath
[ -ScsiLunPath ] < ScsiLunPath[] >
[-Active < Boolean > ]
[-Preferred ]
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
ScsiLunPath ScsiLunPath[] 1
  • pipeline
Specifies a path to the SCSI logical unit you want to configure.
optional Active Boolean named
Indicates that the specified path is active.
optional Preferred SwitchParameter named
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.
optional ProgressAction ActionPreference named

Output

VMware.VimAutomation.ViCore.Types.V1.Host.Storage.Scsi.ScsiLunPath

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.

Related Commands

ScsiController

This cmdlet retrieves the virtual SCSI controllers assigned to the specified HardDisk, VirtualMachine, Template, and Snapshot objects.

This cmdlet creates a new SCSI controller.

This cmdlet modifies the specified SCSI controllers.

ScsiLun

This cmdlet retrieves the SCSI devices available on the vCenter Server system.

This cmdlet modifies the configuration of a SCSI device.

ScsiLunPath

This cmdlet retrieves the list of vmhba paths to a specified SCSI device.

This cmdlet configures a vmhba path to a SCSI device.