In March, I created my PowerCLI GitHub Repo with just two cmdlets. By the end of March, I had many more cmdlets in the repo. Here are the updates:
PowerCLI-Administrator-Cmdlets
Via http://tenthirtyam.org/per-cluster-cpu-and-memory-utilization-and-capacity-metrics-with-powercli/ (@medavamshi):
- Get-ClusterStats – A very detailed report on current Cluster resources and rough estimates of resources available after 1 or 2 cluster member failures. Useful in predicting failure scenarios as well as an eyeball view of capacity management.
Via http://hostilecoding.blogspot.com/ (@hostilecoding):
- Edit-v10VMs – An alternative GUI to vCenter that can edit VMs with vHW 10. Useful for those without vCenter or who do not like the vSphere Web Client.
Via http://myvirtualcloud.net/?p=5924 (@StevenPoitras and @andreleibovici) are a pair of cmdlets useful for stress-testing your storage (and vCenter, if you’re not careful):
- Clone-VM – Spin up a specified number of clones of the named VM, using VAAI by default.
- Unclone-VM – Provide the name of the cloned VM and stop/delete all the clones.
Via http://pelicanohintsandtips.wordpress.com/2014/03/13/creating-multiple-virtual-machines-with-powercli/ is a single cmdlet for Template deployments
- Deploy-Template – Use an existing Template and OSCustomizationSpec to deploy multiple instances of a Template into a specified Datacenter/Folder with sequential IPs.
PowerCLI-User-Cmdlets
Via http://www.shogan.co.uk/vmware/three-powercli-scripts-for-information-gathering-vms-hosts-etc/ (@shogan85) come three cmdlets that all have the option to output to CSV as well:
- Get-VMHostBIOSInfo – Report on the Model and BIOS of all VMHosts attached to your connected vCenter.
- Get-VMHostESXInfo – Report on the ESX(i) version and build of all VMHosts attached to your connected vCenter.
- Get-VMHardwareInfo – Report on the vHW version of all VMs in a specified datacenter.
Via http://hostilecoding.blogspot.com/ (@hostilecoding):
- Get-VMConsoleGoogleChart – Use Google’s chart tools to graph stats like mem.usage.average for all VMs on a VMHost.
One thought on “PowerCLI GitHub Repo – March 2014 Updates”