PowerCLI 11.2 has now been released. The additions for vSAN include updates to some existing cmdlets.
Storage UpdatesThe cmdlets updated include: Get-VsanSpaceUsage, Get/Set-VsanClusterConfiguration, and Test-VsanNetworkPerformance. vSAN 6.7 Update 1 added the ability to estimate the amount of free capacity for a vSAN cluster using a selected Storage Policy in the UI: The Get-VsanSpaceUsage cmdlet can now accept a -StoragePolicy parameter and report what the estimated free capacity for a vSAN Cluster would be. The Get/Set-VsanClusterConfiguration cmdlet adds some additional parameters that can be reported against and configured respectively these include:
- CustomizedSwapObjectEnabled – This configures the VM swap file to inherit the VM’s Namespace policy
- GuestTrimUnmap – Enables TRIM & UNMAP support for vSAN 6.7 U1
More information can be found on vSAN Space Efficiency Technologies section.
- LargeClusterSupported – Enable large cluster support (>32 hosts), which is now exposed in Cluster Quickstart in 6.7 U1 as well
- ObjectRepairTimerMinutes – Configure the Object Repair Timer value for the cluster – Also in the vSphere Client in 6.7 U1 The Test-VsanNetworkPerformance cmdlet adds a -DurationInSecond parameter to adjust the duration of a vSAN Network Performance test. A few samples have been added to the PowerCLI Cookbook for vSAN (now v1.4)
More InformationWhile not necessarily related to Storage, those Administrators that are security conscious, PowerCLI also introduces some additional authentication options, including support for GovCloud. More information can be found on the PowerCLI blog: https://blogs.vmware.com/PowerCLI/2019/02/powercli-11-2-0.html
In this video, Senior Product Manager Alan Renouf covers some of the concepts of reporting using PowerCLI and gives you examples of reports that can help you manage your vSphere and vCloud environments.
Kyle Ruddy covers examples of adding a host to a vCenter Server system, setting the host to be in maintenance mode, licensing the host, adding an NTP server, setting up the networking and adding datastores to the host.
In this video, Kyle Ruddy shows you examples of creating a vSphere Distributed Switch, adding hosts to the switch, creating distributed port groups, creating VMKernel network adapters, backing up a vSphere Distributed Switch and then restoring it.