I am trying to read the host EVC setting using get-view. So far no success. Anybody?
You can try below code snippet, which will give you some details about host’s EVC
Connect-VIServer <server> -User <user> -Password <password> $vmHost = Get-VMHost -Name <host_name> | Get-View #unset if this host cannot participate in any EVC mode $maxEVC = $vmHost.Summary.MaxEVCModeKey If($maxEVC -eq $null){ "Host cannot participate in any EVC mode" } else{ Write-Host "The most capable ECV mode supported by the host hardware and software: $maxEVC" } #this will be unset if it will not match the cluster's EVC mode $currentEVC = $vmHost.Summary.CurrentEVCModeKey If($currentEVC -eq $null){ "Current EVC mode not available/unset" } else{ Write-Host "The Enhanced VMotion Compatibility mode that is currently in effect for this host: $currentEVC" }
Hope this helps.
You can try below code snippet, which will give you some details about host’s EVC
Connect-VIServer <server> -User <user> -Password <password> $vmHost = Get-VMHost -Name <host_name> | Get-View #unset if this host cannot participate in any EVC mode $maxEVC = $vmHost.Summary.MaxEVCModeKey If($maxEVC -eq $null){ "Host cannot participate in any EVC mode" } else{ Write-Host "The most capable ECV mode supported by the host hardware and software: $maxEVC" } #this will be unset if it will not match the cluster's EVC mode $currentEVC = $vmHost.Summary.CurrentEVCModeKey If($currentEVC -eq $null){ "Current EVC mode not available/unset" } else{ Write-Host "The Enhanced VMotion Compatibility mode that is currently in effect for this host: $currentEVC" }
Hope this helps.
Thanks a lot. That helps!
Hello
and how to set evc mode ?
$clusterview.Summary.CurrentEVCModeKey("intel-merom"), doesn't work !!
can use set_CurrentEVCModeKey ?
Thank you.
Régis