Here is a little trick I keep re-using to output csv files of data from vCenter. [powershell]$reportArray = @() foreach($cluster in get-cluster){ foreach($vm in get-vm -Location$cluster){ foreach($ds in get-DataStore -VM$vm.name){ »

As an example of Powershell vs the Perl toolkit in VMware I want to show you triggering a storage rescan on a host in both. [perl] !/usr/bin/perl -w use strict; my @hbas = /usr/sbin/esxcfg-info \| grep vmkernel -i \| grep hba \| awk -F\. \{\'print »

I use powershell all the time now to manage VMware, with the PowerCLI commandlets you can achieve a lot and it matches Alan Kay’s motto Simple things should be simple, complex things should be possible. The simple: I want to go and set all the LUNs »