VMware Cloud Community
ArvindBhargava
Enthusiast
Enthusiast
Jump to solution

Transmitted Packet drops for a VM

Hi Team ,

I wanted to know if there is a way to get transmitted packet drops for a VM , I know the stat is available through powercli for host however checking if its available for a VM as well.

I can see the values for VM through Realtime Performance graphs

Thanks!

Tags (2)
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Try like this.

If you have more than 1 vNic on a VM, the Instance property will indicate for which vNic on the VM the Value is.

$vmName = 'MyVM'

$vm = Get-VM -Name $vmName

$stat = 'net.droppedTx.summation'

Get-Stat -Entity $vm -Stat $stat -Realtime


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

Try like this.

If you have more than 1 vNic on a VM, the Instance property will indicate for which vNic on the VM the Value is.

$vmName = 'MyVM'

$vm = Get-VM -Name $vmName

$stat = 'net.droppedTx.summation'

Get-Stat -Entity $vm -Stat $stat -Realtime


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
ArvindBhargava
Enthusiast
Enthusiast
Jump to solution

Got it!

As I was not getting this stat after getting output of get-vm <vm-name> |get-stattype , I thought it doesn't exist from cli level. Should we always check from get-stattype about the stat available for the object ?

I was getting below stat listed for a VM

get-vm <name>  |Get-StatType

cpu.usage.average

cpu.usagemhz.average

cpu.ready.summation

mem.usage.average

mem.swapinRate.average

mem.swapoutRate.average

mem.vmmemctl.average

mem.consumed.average

mem.overhead.average

disk.usage.average

disk.maxTotalLatency.latest

net.usage.average

sys.uptime.latest

cpu.cpuentitlement.latest

mem.mementitlement.latest

disk.used.latest

disk.provisioned.latest

disk.unshared.latest

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Yes, and also take into account the Realtime and Historical intervals.

Since I know this is a network related metric, I filter on metrics starting with 'net'

Get-StatType -Entity (get-VM AnyVM) -Realtime | where{$_ -match 'net.'}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference