Configuring the vmhba paths to a SCSI device

For each vmhba path to a storage device, you can indicate that the path is active or not active. You can also indicate that the path is the preferred path to the SCSI device.

Retrieving the vmhba paths to a SCSI device

You can use the Get-ScsiLunPath cmdlet to retrieve the list of vmhba paths to a specified SCSI device. The syntax of the Get-ScsiLunPath cmdlet is as follows:

Get-ScsiLunPath [[-Name] <String[]>] [-ScsiLun] <ScsiLun[]> [<CommonParameters>]

The –ScsiLun parameter is required, and it accepts input from the pipeline.

In the next example, we will retrieve the vmhba paths of the LUN with CanonicalName naa.600a0b80001111550000f35b93e19350 from the host 192.168.0.133:

PowerCLI C:\> Get-VMHost -Name ...

Get Learning PowerCLI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.