Automation

 View Only
  • 1.  Transmitted Packet drops for a VM

    Posted Jan 29, 2018 07:31 PM

    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!



  • 2.  RE: Transmitted Packet drops for a VM
    Best Answer

    Posted Jan 29, 2018 07:53 PM

    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



  • 3.  RE: Transmitted Packet drops for a VM

    Posted Jan 30, 2018 01:13 PM

    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



  • 4.  RE: Transmitted Packet drops for a VM

    Posted Jan 30, 2018 01:20 PM

    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.'}