July, 2009
PowerCLI: Daily Report
This script will save you time and resources. I have been using this script for the past month and it has highlighted a number of issues which would have been harder to find without it. Daily Report does what it says on the tin, it runs as a scheduled task before you get into the [...]
PowerCLI: Local stored VM’s One-Liner
So, you have installed ESX on your nice pair of RAID 1 72GB or 146GB disks and have a whole bunch of disk space left over, what do you do with it, well if your anything like me you will format it as a VMFS partition and use it for storing Templates or temporary VMs [...]
PowerShell Toolbar
If you are a fan of Powershell and PowerCLI then you have to check this out, Shay Levy has updated his PowerShell toolbar which has been around for a while now and added some new sections. The Powershell toolbar is a toolbar (downloadable here) which gives you all the powershell links and resources you will [...]
Running a PowerCLI Scheduled task
There are a fair few PowerCLI scripts which can be run as scheduled tasks, some that email you or maybe a monitoring script but recently I have been asked how this can be done, what do you put in the Run line for the script to work properly. There are two ways of doing this [...]
PowerCLI: Host Hardware One-Liner
A quick one-liner which gives you an outline of your Host hardware information: Get-VMHost |Sort Name |Get-View | Select Name, @{N=“Type“;E={$_.Hardware.SystemInfo.Vendor+ “ “ + $_.Hardware.SystemInfo.Model}}, @{N=“CPU“;E={“PROC:“ + $_.Hardware.CpuInfo.NumCpuPackages + “ CORES:“ + $_.Hardware.CpuInfo.NumCpuCores + “ MHZ: “ + [math]::round($_.Hardware.CpuInfo.Hz / 1000000, 0)}}, @{N=“MEM“;E={“” + [math]::round($_.Hardware.MemorySize / 1GB, 0) + “ GB“}} | Export-Csv c:\hostinfo.csv Output [...]
PowerCLI: More One-Liner Power
A few one-liners inspired by the people who I follow on twitter, firstly Jason Boche was working on a script to reset CPU and Memory limits to “Unlimited” for all VMs in vCenter, I joked with him that this was a one liner, firstly we can set the memory limits with the following: Get-VM | [...]
PowerCLI: Stats One-liner
Ever wondered how your VM’s are doing ? What resources are they using, do they have too many CPU’s or too much memory ? This simple one-liner will give you a list of each of your vms, it will tell you how many cpu’s, the amount of memory, average cpu usage for x amount of [...]










