< Back
Get-VMHostDisk
Post
NAME Get-VMHostDisk
SYNOPSIS
This cmdlet retrieves information about the specified SCSI LUN disk.
SYNTAX
Get-VMHostDisk -Id <String[]> [-Server <VIServer[]>] [<CommonParameters>]
Get-VMHostDisk [[-ScsiLun] <ScsiLun[]>] [<CommonParameters>]
Get-VMHostDisk [[-VMHost] <VMHost[]>] [-Server <VIServer[]>] [<CommonParameters>]
DESCRIPTION
This cmdlet retrieves information about the specified SCSI LUN disk.
PARAMETERS
-Id <String[]>
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.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ScsiLun <ScsiLun[]>
Specifies the SCSI LUN for which you want to retrieve information.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-VMHost <VMHost[]>
Specifies hosts to retrieve the hard disks attached to them.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Zero or more VMHostDisk objects
NOTES
-------------------------- 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 LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... tDisk.html
Get-VMHostDiskPartition
SYNOPSIS
This cmdlet retrieves information about the specified SCSI LUN disk.
SYNTAX
Get-VMHostDisk -Id <String[]> [-Server <VIServer[]>] [<CommonParameters>]
Get-VMHostDisk [[-ScsiLun] <ScsiLun[]>] [<CommonParameters>]
Get-VMHostDisk [[-VMHost] <VMHost[]>] [-Server <VIServer[]>] [<CommonParameters>]
DESCRIPTION
This cmdlet retrieves information about the specified SCSI LUN disk.
PARAMETERS
-Id <String[]>
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.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ScsiLun <ScsiLun[]>
Specifies the SCSI LUN for which you want to retrieve information.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-VMHost <VMHost[]>
Specifies hosts to retrieve the hard disks attached to them.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Zero or more VMHostDisk objects
NOTES
-------------------------- 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 LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... tDisk.html
Get-VMHostDiskPartition