Archive for 'VMware Powershell'

Four PowerCLI One-Liners That Saved The World!

Ok, So maybe they didn’t save the world, but the sure saved my weekend. Rather than spend a lot of time on the intro, let’s dive right in. These will be in Problem/PowerShell/Output format.
The Problem:
More spaghetti environments, this time we need to count some resources. The first counts CPU, the second Memory. Yes there are [...]

VMworld Day 1 Wrap Up

I was going to try live blogging some of this, however that is not quite my style if you will. So I will try to summarize in a few posts where I went and what I did. So without further adieu:
Lab 1 – Scripting Virtual Infrastructure with PowerShell &  Perl
All and all a good lab. [...]

Now Where Did I Put My VMotion?

Let’s say you have a metric heck ton of hosts, and you need to check them… all. To see if VMotion has been enabled properly. How do you do it?
Well, you could hire that out of work banker now out in front of the grocery store to come and click through all of the hosts [...]

Log Bundles, of the Virtual Center Variety

Things break. They always do. Chaos is inevitable. So how do you get insight into some of the chaos that was occurring in your Virtual Center when disaster strikes? Turns out, the VI Client makes this quite easy.
After you get your Virtual Center service running again, connect using the VI Client. Once connected… well follow [...]

1 Day Left – The Most Awesome PowerShell One-Liner in the History of PowerShell One-Liners!

get-datacenter MyVC | get-vm | Get-NetworkAdapter | Where-Object { $_.Name -like "*1"} | Set-NetworkAdapter -NetworkName NotThatNetwork -Confirm:$false
So, say you provision all of your VM’s on one host, with one set of networks, that is completely removed from the remainder of your infrastructure. You then Cold-Migrate the new VM’s to their new homes. You now need [...]

Book: Managing VMware Infrastructure With Windows PowerShell: TFM

Keep an eye out for this one early next year. I’ve been tech reviewing it since the beginning, and can tell you it’s something that you’ll want to keep next to your pillow at night. Ok, so maybe I’m the only one who does that, but it is nonetheless a good read. (I may [...]

On Laziness – VMware Infrastructure Toolkit (for Windows)

I have a confession to make. It is dire in nature, and will likely surprise most of you. I’m lazy. So much so, that I’m a professional at it. I suppose that sounds pretty bad, and if my boss is reading this (I doubt he is), it’s also quite incriminating, so lets qualify a bit. [...]