Syntax
Get-VMHostDisk [[-VMHost] <VMHost[]>] [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet retrieves information about the specified SCSI LUN disk.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
ScsiLun | ScsiLun[] | Specifies the SCSI LUN for which you want to retrieve information. | false | true (ByValue) | |
VMHost | VMHost[] | Specifies hosts to retrieve the hard disks attached to them. | false | true (ByValue) | |
Id | String[] | Specifies the IDs of the SCSI LUN disks that you want to retrieve. | true | false | |
Server | VIServer[] | Specifies the vCenter Server systems on which you want to run the cmdlet. If no 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. | false | false |
Return Type
Zero or more VMHostDisk objectsNotes
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.