Sorry for my bad english
I use "Invoke-NaSysstat" for monitoring lun latence.
But, I Would like monitoring my PAM2.How can you get the same result as "stats show -p flexscale-access -i 4" with powershell ?
the counter data can get gotten with:
you can view the object/instance/counters in the preset xml file:
you will then need to do the correct math for the counter type. you can see some examples in this script: https://communities.netapp.com/docs/DOC-10354 or my own here: https://github.com/mrkwbr/neat/blob/master/scripts/Get-NaPerfAll.ps1