Hello,
After checking several hosts in a cluster I have found that some of the advanced setting Net.UseHwTSO set to 1 on some hosts and 0 on others.
Is there a powercli command I can use to check this setting for all hosts in a paritular cluster rather than checking each host via the GUI?
Thanks.
Hello,
you can check that by using the Get-AdvancedSetting cmdlet. With the command below you can get the list of all hosts which includes Name + the value of the Net.UseHwTSO.
Get-VMHost | Select Name,@{n='Net.UseHwTSO';e={($_ | Get-AdvancedSetting -Name 'Net.UseHwTSO').Value}}
Try something like this
$clusterName = 'cluster'
Get-Cluster -Name $clusterName |
Get-VMHost |
ForEach-Object -Process {
$esxcli = Get-EsxCli -VMHost $_ -V2
$esxcli.system.settings.advanced.list.Invoke(@{option='/Net/UseHWTso'}) |
Select @{N='Cluster';E={$clusterName}},
@{N='VMHost';E={$esxcli.VMHost.Name}},
@{N='/Net/UseHWTso';E={$_.IntValue}}
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi LucD,
Thanks for the quick reply. Something doesn't seem right, all the hosts came back with a /Net/UseHwTso setting of 1, however when I check in the GUI I can see that this isn't the case. Is it possible that it is pulling the NetUseHwTS06 setting(IPv6)?
Hello,
you can check that by using the Get-AdvancedSetting cmdlet. With the command below you can get the list of all hosts which includes Name + the value of the Net.UseHwTSO.
Get-VMHost | Select Name,@{n='Net.UseHwTSO';e={($_ | Get-AdvancedSetting -Name 'Net.UseHwTSO').Value}}
Worked flawlessly, thanks LucD!
That property should have said IntValue instead of DefaultIntValue.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference