Get-VsanStat
This cmdlet retrieves vSAN performance statistics for the specified server entity.
Syntax
[-Entity <VIObjectCore[]>]
[-Name <String[]>]
[-Server <VIServer[]>]
[-StartTime <DateTime>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
optional |
|
DateTime | named |
|
Specifies the client local time up to which you want to retrieve statistics. If the specified value is later than current server time, the value is replaced by the current server time. The returned samples include the sample at EndTime. | optional |
|
VIObjectCore[] | named |
|
Specifies the entity for which you want to retrieve vSAN performance metrics. OBN is supported for the Cluster, VMHost, VirtualMachine, VsanIscsiTarget, and VsanStoragePoolDisk (vSphere 8.0 and later) entity types. | optional |
|
String[] | named |
|
Specifies the performance metrics you want to retrieve. If not specified, all the metrics are returned. The value is in the format 'ViewName.MetricName'. ViewName is applicable to different entity types: Cluster: Backend, VMConsumption, Capacity VMHost: Backend, VMConsumption, HostNetwork, HostIscsi VirtualMachine: Performance HardDisk: VirtualDisk, Vscsi VsanDisk: Performance VsanDiskGroup: Performance VsanStoragePoolDisk: Performance VsanIscsiTarget: Performance VsanIscsiLun: Performance HostVirtualNic: Performance PhysicalNic: Performance VsanFileShare: Performance | optional |
|
VIServer[] | named |
|
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 the Connect-VIServer cmdlet. | optional |
|
DateTime | named |
|
Specifies the client local time from which you want to retrieve statistics. The returned samples do not include the sample at StartTime. |
[-Entity <VIObjectCore[]>]
[-Name <String[]>]
[-Server <VIServer[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
VsanPredefinedTimeRange | named |
|
A list of predefined time ranges (Last5Minutes, Last15Minutes, Last30Minutes, LastHour, Last24Hours, LastWeek) provides a more efficient way to specify time range in querying vSAN performance metric than using the StartTime and EndTime parameters. | optional |
|
VIObjectCore[] | named |
|
Specifies the entity for which you want to retrieve vSAN performance metrics. OBN is supported for the Cluster, VMHost, VirtualMachine, VsanIscsiTarget, and VsanStoragePoolDisk (vSphere 8.0 and later) entity types. | optional |
|
String[] | named |
|
Specifies the performance metrics you want to retrieve. If not specified, all the metrics are returned. The value is in the format 'ViewName.MetricName'. ViewName is applicable to different entity types: Cluster: Backend, VMConsumption, Capacity VMHost: Backend, VMConsumption, HostNetwork, HostIscsi VirtualMachine: Performance HardDisk: VirtualDisk, Vscsi VsanDisk: Performance VsanDiskGroup: Performance VsanStoragePoolDisk: Performance VsanIscsiTarget: Performance VsanIscsiLun: Performance HostVirtualNic: Performance PhysicalNic: Performance VsanFileShare: Performance | optional |
|
VIServer[] | named |
|
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 the Connect-VIServer cmdlet. |
Output
VMware.VimAutomation.Storage.Types.V1.Vsan.Performance.VsanStatSample
Examples
Example 1
Retrieves all vSAN performance samples for vSAN disk groups of the "vsan-cluster" cluster.
Example 2
Retrieves vSAN performance samples for backend read throughput of the "vsan-cluster" cluster.
Example 3
Retrieves the read IOPS stats relevant to the VM consumption view of the "vsan-cluster" cluster in the $startTime to $endTime local time range.
Example 4
Retrieves the read IOPS stats relevant to the backend view of the "vsan-cluster" cluster in the $startTime to $endTime local time range.
Example 5
Retrieves the read IOPS stats of the $iscsiTarget target in the $startTime to $endTime local time range.
Example 6
Retrieves the read IOPS stats of the $iscsiLUN iSCSI LUN in the $startTime to $endTime local time range.
Example 7
Retrieves the read IOPS stats relevant to the VM consumption view of the $vmHost host in the $startTime to $endTime local time range.
Example 8
Retrieves the read IOPS stats relevant to the backend view of $vmHost host in the $startTime to $endTime local time range.
Example 9
Retrieves the read cache write IOPS stats of the $diskGroup vSAN disk group in the $startTime to $endTime local time range.
Example 10
Retrieves the device read IOPS stats of the $disk vSAN disk in the $startTime to $endTime local time range.
Example 11
Retrieves the network inbound throughput stats relevant to the VMKernel adapter aggregation of $vmHost host in the $startTime to $endTime local time range.
Example 12
Retrieves the read IOPS stats of "MyVM" virtual machine in the $startTime to $endTime local time range.
Example 13
Retrieves the IOPS limit stats of the $hardDisk virtual hard disk in the $startTime to $endTime local time range.
Example 14
Queries the vSAN Performance metric Backend.ReadIops in the last hour.
Example 15
Queries the vSAN Performance metrics of the specified vSAN storage pool disk in the last hour. Note: The VsanStoragePoolDisk entity type is available from vSphere 8.0.
Related Commands