Hello all,
I'm hoping one of the PowerCLI gurus out there can help me with a problem that's driving me nuts.
The issue; in our vSphere 5 environment we're using a dvSwitch across a cluster of hosts ... occasionally the hosts are running out of DVS proxy switch ports. The default it 256 ports, and I'd therefore like to increase it (e.g. 1024 or similar).
I can query the host object and determine the numPorts & maxPorts property:
get-vmhost blah.lab | Get-view -Property 'Config.Network' | %{ foreach ( $Switch in $_.Config.Network.ProxySwitch) {write-host "DVS Name: " $Switch.dvsName " NumPorts " $Switch.numPorts " configNumPorts " $Switch.configNumPorts } }
Kudos to the vSphere PowerCLI Reference team for giving me the seed code above to get this far. This gives me...
DVS Name: dvTest NumPorts 256 configNumPorts 256
So far, so good. According to the documentation (assumption: I'm interpreting it correctly) if I set the configNumPorts property of HostProxySwitch to a different value this will change the number of proxy DVS ports after a of the host reboot. I tried this, and it didnt work.
Perhaps I need to invoke a method of some sort to apply the change to the proxy switch on the host? Or am I heading in the wrong direction?
As you can see, at this stage I'm running out of PowerCLI skills. All help gratefully received!
Jason D