powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-VMHostDisk



NAME
Get-VMHostDisk

SYNOPSIS
Retrieves information about the specified SCSI LUN disk.

SYNTAX
Get-VMHostDisk [[-VMHost] ] [-Server ] []

Get-VMHostDisk [[-ScsiLun] ] []


DESCRIPTION
Retrieves information about the specified SCSI LUN disk.


PARAMETERS
-VMHost
Specify hosts to retrieve the hard disks attached to them.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Server
Specifies a vSphere server to search for the specified vSphere .NET object. If no value is given to this parame
ter, the command runs on the server currently specified in the $DefaultVIServer variable.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true

-ScsiLun
Specify the SCSI LUN for which you want to retrieve information.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
VMHostDisk


NOTES




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

C:\PS>Get-VMHost $host| Get-VMHostDisk


Retrieves the disks of the specified host.





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

C:\PS>Get-VMHost $host | Get-VMHostHba -Type FibreChannel | Get-ScsiLun | Get-VMHostDisk


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






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-VMHostDisk.html
Get-VMHostDiskPartition