We’re excited to release another video in the series on PowerCLI tips and tricks! This time we’re covering how to use PowerCLI for distributed switch management.
This video shows how to perform the following tasks easily:
- Creating a vSphere Distributed Switch
- Adding Hosts to the Created vSphere Distributed Switch
- Creating Distributed Port Groups
- Creating a VMKernel NIC with vMotion Enabled
- Creating a VMKernel NIC with Fault Tolerance Enabled
- Backing Up a vSphere Distributed Switch Configuration
- Restoring a vSphere Distributed Switch Configuration
Watch the Video
Other videos in this series are available below. If you haven’t seen them yet, I highly recommend them. They are all quick, easy to learn and easy to reproduce in your own environment.
A question keeps coming up more and more often around accessing the vSphere API with PowerCLI. The conversation is normally centered around when to use Get-View versus when referencing an object’s ExtensionData property should be used.
This provided a great opportunity to create a lightboard video to highlight the different methods:
To answer the actual question though, the choice is yours. You get access to the same information available by the vSphere API either way!
Recently, the new book Learning PowerCLI – Second Edition was published by Packt Publishing. Learning PowerCLI – Second Edition contains 517 pages of PowerCLI goodness. The book starts with downloading and installing PowerCLI. It continues with basic PowerCLI concepts, and working with PowerShell objects. Managing vSphere host, virtual machines, virtual networks, storage, high availability, clusters, and vCenter Server are the following topics. After patching ESXi hosts and upgrading virtual machines using vSphere Update Manager, managing VMware vCloud Director and vCloud Air, using Site Recovery Manager, vRealize Operations Manager, and REST API to manage NSX and vRealize Automation, the book finishes with a chapter about reporting.
If you are new to PowerCLI or have some PowerCLI experience and want to improve your PowerCLI skills, Learning PowerCLI – Second Edition will teach you to use PowerCLI to automate your work!
Compared to the first edition, the following new topics are added in Learning PowerCLI – Second Edition:
- Importing OVF or OVA packages
- Using Tags
- Using VMware vSAN
- Using vSphere storage policy-based management
- Configuring enhanced vMotion compatibility (EVC) mode
- Patching ESXi hosts and upgrading virtual machines
- Managing VMware vCloud Director and vCloud Air
- Using Site Recovery Manager
- Using vRealize Operations Manager
- Using REST API to manage NSX and vRealize Automation
Learning PowerCLI – Second Edition is available exclusively from Packt Publishing: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
About the Author
Learning PowerCLI – Second Edition is written by Robert van den Nieuwendijk. Robert is a freelance system engineer living and working in the Netherlands. He is a VMware vExpert since 2012 and a moderator of the VMware VMTN Communities. Robert has a blog at http://rvdnieuwendijk.com. You can follow Robert on Twitter as @rvdnieuwendijk.