vSphere PowerCLI Reference

Get-VMHostDisk

Synopsis

Retrieves information about the specified SCSI LUN disk.

Syntax

Get-VMHostDisk [[-VMHost] <VMHost[]>] [-Server <VIServer[]>] [<CommonParameters>]
Get-VMHostDisk -Id <String[]> [-Server <VIServer[]>] [<CommonParameters>]
Get-VMHostDisk [[-ScsiLun] <ScsiLun[]>] [<CommonParameters>]

Related Commands

Online version
Get-VMHostDiskPartition

Detailed Description

Retrieves information about the specified SCSI LUN disk.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ScsiLunScsiLun[]Specify the SCSI LUN for which you want to retrieve information.falsetrue (ByValue)
VMHostVMHost[]Specify hosts to retrieve the hard disks attached to them.falsetrue (ByValue)
IdString[]Specify the IDs of the SCSI LUN disks that you want to retrieve.truefalse
ServerVIServer[]Specifies a vSphere server to search for the specified vSphere .NET object. If no value is given to this parameter, the command runs on the server currently specified in the $DefaultVIServer variable.falsefalse

Return Type

VMHostDisk

Notes

Examples

-------------- Example 1 --------------

Get-VMHost $host| Get-VMHostDisk

Retrieves the disks of the specified host.

-------------- Example 2 --------------

Get-VMHost $host | Get-VMHostHba -Type FibreChannel | Get-ScsiLun | Get-VMHostDisk

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


Copyright © 1998 - 2012 VMware, Inc. All rights reserved.