Automation

 View Only
  • 1.  PowerCLI: Commands aborted

    Posted Mar 30, 2021 03:16 PM

    Hello!

    Please tell me if there is a way to collect Disk — Commands aborted for VM using PowerCLI.



  • 2.  RE: PowerCLI: Commands aborted
    Best Answer

    Posted Mar 30, 2021 04:07 PM

    The metric is 'disk.commandsaborted.summation'.

    It is always present in the Realtime statistics, for all intervals, the interval needs to be at least on Statistics Level 2.

    $vmName = 'MyVM'
    
    $vm = Get-VM -Name $vmName
    Get-Stat -Entity $vm -Stat disk.commandsaborted.summation -Realtime