PowerCLI获取虚机实时CPU、内存使用率
$a = Get-vm vmname
$a|get-stat -Memory -realtime |select -first 10
$a|get-stat -CPU -realtime |select -first 10
参考:https://vdc-repo.vmware.com/vmwb-repository/dcr-public/6bd6daa3-08a8-4660-9159-23265b9d6c00/4d533cf0-f009-4fa0-8679-8d505fbe846b/doc/index.html#link5fd5346c5f6357d9d9f2ff0f7fcdec06f2f79a3e;Get-Stat.html