Post by Mike Laverick, Senior Cloud Infrastructure Evangelist, Competitive Team
This post originally appeared on Mike Laverick’s blog
In this final part of the three parter on the Standard vSwitch I look at exactly the same configuration as achieved with the Web Client. Standard vSwitch benefit greatly from the strategic use of Foreach loops. In my case I use Foreach loop to list all my ESX hosts (I only 3 per vCenter environment!) and then repeat the configuration. In a larger environment you may well want to use the get-cluster cmdlet to limit the scope of your configuration to particular ESX hosts in a particular cluster.
The other thing I would say is that these are quite crude examples – deliberately so. There’s no error checking or validation.
One thing I am stumped by is how to use PowerCLI to add management ports to the VMware ESX host. I’ve worked that out for VMotion and FT, but not for management. My main reason is to show how to do that for high-availability to avoid network split-brain. If anyone can help me out on that I would update this post, and credit you…