Get-VM *db* |
Select Name, @{N="Avg Network Throughput MBPs";E={
[math]::Round((Get-Stat -Entity $_ -Start (Get-Date).AddDays(-1) -Stat "net.throughput.usage.average" |
where {$_.Instance -eq ""} |
Measure-Object -Property Value -Average | Select -ExpandProperty Average)/1KB,2)
}}
I got the output as below
Name | Avg Network Throughput MBPs |
x | 0 |
y | 2.16 |
z | 0.11 |
now Questions Or Clarifications that are needed :-
1.
net.throughput.usage.average | Net Throughput Usage | KBps | The current network bandwidth usage for the host
|
Why then the o/p shows MBPs & not KBPs
2. So per second in last 1 day the vm did network traffic worth say 2.16 for vm y ? Does this include inbound & outbound both ?
Thanks