Get-VMHostDisk

This cmdlet retrieves information about the specified SCSI LUN disk.

Syntax

[-Server  <VIServer[]>]
[-VMHost  <VMHost[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional
Server
VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.
    optional
    VMHost
    VMHost[] named
  • wildcards
  • pipeline
  • Specifies hosts to retrieve the hard disks attached to them.

    -Id  <String[]>
    [-Server  <VIServer[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    Id
    String[] named Specifies the IDs of the SCSI LUN disks that you want to retrieve. Note: When a list of values is specified for the Id parameter, the returned objects would have an ID that matches exactly one of the string values in that list.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.

    [-ScsiLun  <ScsiLun[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    optional
    ScsiLun
    ScsiLun[] named
  • pipeline
  • Specifies the SCSI LUN for which you want to retrieve information.

    Output

    VMware.VimAutomation.ViCore.Types.V1.Host.Storage.VMHostDisk

    Examples


    Example 1

    Get-VMHostDisk -VMHost $vmhost

    Retrieves the disks of the specified host.

    Example 2

    $vmhost | Get-VMHostHba -Type FibreChannel | Get-ScsiLun | Get-VMHostDisk

    Retrieves the host disks only for LUNs that are of FibreChannel type.

    Related Commands

    Feedback

    Was this page helpful?