VMware Cloud Community
dbutch1976
Hot Shot
Hot Shot
Jump to solution

get TSO setting for hosts in a cluster

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.

0 Kudos
1 Solution

Accepted Solutions
fannol
Enthusiast
Enthusiast
Jump to solution

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}}

 

Blog: PowerCli.net

View solution in original post

0 Kudos
5 Replies
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos
dbutch1976
Hot Shot
Hot Shot
Jump to solution

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)? 

dbutch1976_0-1699909393263.png

 

0 Kudos
fannol
Enthusiast
Enthusiast
Jump to solution

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}}

 

Blog: PowerCli.net
0 Kudos
dbutch1976
Hot Shot
Hot Shot
Jump to solution

Worked flawlessly, thanks LucD!

Tags (1)
0 Kudos
LucD
Leadership
Leadership
Jump to solution

That property should have said IntValue instead of DefaultIntValue.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos