Syntax
Get-VsanStat [[-Name] <String[]>] [-Entity <VIObjectCore[]>] [-StartTime <DateTime>] [-EndTime <DateTime>] [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online VersionDetailed Description
This cmdlet retrieves vSAN performance statistics for the specified server entity.Parameters
Return Type
Zero or more VsanStatSample objectsNotes
Examples
-------------------------- Example 1 --------------------------
$diskGroups = Get-VsanDiskGroup -Cluster "vsan-cluster" Get-VsanStat -Entity $diskGroups
Retrieves all vSAN performance samples for vSAN disk groups of the "vsan-cluster" cluster.
-------------------------- Example 2 --------------------------
Get-VsanStat -Entity "vsan-cluster" -Name "Backend.ReadThroughput"
Retrieves vSAN performance samples for backend read throughput of the "vsan-cluster" cluster.
-------------------------- Example 3 --------------------------
$cluster = Get-Cluster -Name "vsan-cluster" Get-VsanStat -Entity $cluster -Name VMConsumption.ReadIops -StartTime $startTime -EndTime $endTime
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 --------------------------
$cluster = Get-Cluster -Name "vsan-cluster" Get-VsanStat -Entity $cluster -Name Backend.ReadIops -StartTime $startTime -EndTime $endTime
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 --------------------------
Get-VsanStat -Entity $iscsiTarget -Name Performance.ReadIops -StartTime $startTime -EndTime $endTime
Retrieves the read IOPS stats of the $iscsiTarget target in the $startTime to $endTime local time range.
-------------------------- Example 6 --------------------------
Get-VsanStat -Entity $iscsiLUN -Name Performance.ReadIops -StartTime $startTime -EndTime $endTime
Retrieves the read IOPS stats of the $iscsiLUN iSCSI LUN in the $startTime to $endTime local time range.
-------------------------- Example 7 --------------------------
Get-VsanStat -Entity $vmhost -Name VMConsumption.ReadIops -StartTime $startTime -EndTime $endTime
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 --------------------------
Get-VsanStat -Entity $vmhost -Name Backend.ReadIops -StartTime $startTime -EndTime $endTime
Retrieves the read IOPS stats relevant to the backend view of $vmHost host in the $startTime to $endTime local time range.
-------------------------- Example 9 --------------------------
Get-VsanStat -Entity $diskGroup -Name Performance.ReadCacheWriteIops -StartTime $startTime -EndTime $endTime
Retrieves the read cache write IOPS stats of the $diskGroup vSAN disk group in the $startTime to $endTime local time range.
-------------------------- Example 10 --------------------------
Get-VsanStat -Entity $disk -Name Performance.DeviceReadIops -StartTime $startTime -EndTime $endTime
Retrieves the device read IOPS stats of the $disk vSAN disk in the $startTime to $endTime local time range.
-------------------------- Example 11 --------------------------
Get-VsanStat -Entity $vmhost -Name HostNetwork.NetworkInboundThroughput -StartTime $startTime -EndTime $endTime
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 --------------------------
Get-VsanStat -Entity "MyVM" -Name Performance.ReadIops -StartTime $startTime -EndTime $endTime
Retrieves the read IOPS stats of "MyVM" virtual machine in the $startTime to $endTime local time range.
-------------------------- Example 13 --------------------------
Get-VsanStat -Entity $hardDisk -Name VirtualDisk.IopsLimit -StartTime $startTime -EndTime $endTime
Retrieves the IOPS limit stats of the $hardDisk virtual hard disk in the $startTime to $endTime local time range.
-------------------------- Example 14 --------------------------
Get-VsanStat -Entity $cluster -Name Backend.ReadIops -TimeRange LastHour
Queries the vSAN Performance metric Backend.ReadIops in the last hour.