Archive for 'VMware'

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 [...]

vSphere 4 Hot Add Hardware and PowerShell

One of the most amazing new features of vSphere is the ability to hot add hardware into a supported guest OS. However, when you need to upgrade your 20 node web farm, all of the right clicks and slider moves can become cumbersome. That is where VMware PowerCLI (PowerShell) comes to the rescue! A few [...]

New PowerShell Snapin Versions All Around

I’m not sure how I missed this the first time around. Citrix and VMware have both rolled new versions of their PowerShell Snapins for new versions of their products.
Citrix XenServer 5.5 PowerShell SnapIn SDK
VMware PowerCLI (PowerShell Toolkit for vSphere)
As always, drop a line if you have any questions or comments.

Today’s Bit of PowerShell Awesome – Primal Forms

I often find myself with more tools to check out than I have time to do the checking out. One of the tools that has been on my laundry list for a while was Primal Forms from Sapien. In a single word, this tool is “Awesome”.
From the site:
PrimalForms is a free GUI builder tool for [...]

Building A Hypervisor Independent Script – Part 2

Last time we covered getting the information we care about out of the various PowerShell toolkits, and what that looks like. If you are just joining us, or want to refresh your knowledge, the first part in the series is here.
This time we’re going to cover the Pipeline, and the “Begin” and “Process” code blocks. [...]

Timmy Fell In The Well! – Get-Help To The Rescue

Timmy was always getting into some sort of trouble, wasn’t he? The famous collie running through the fields, may not be the first thing that comes to mind for a good PowerShell analogy, it does apply. Think about it. Timmy ran into trouble,and he told Lassie to “Get-Help”. Get-Help is one of the most useful [...]

Building A Hypervisor Independent Script – Intro

What good is having PowerShell everywhere, what do you do, when you run a “Heterogeneous” environment? Today we’ll show you the basics of building a hypervisor agnostic script. We’ll build on this knowledge over time. To do this, we’ll use a slight modification on our existing “get-uuid.ps1” script. We’ll break this out into a few [...]

Demo 4 – Mass Provisioning: csv-provision.ps1

Here is the sample code from our fourth and final demo during the presentation, the “Mass Provisioning”:

In order for this script to work, you need to supply it with a csv file that has a format similar to:
ServerName,CPU,RAM,DISK,OS Test1,1,1024,20480,rhel5guest Test2,1,1024,20480,winNetEnterprise64Guest
In fact, the above can be [...]

Count Those Chickens – Demo 3 count-chickens.ps1

This was covered in the ‘advanced topics’ section of our presentation. It is of course, the chicken counter script:

This script introduces a few new and advanced concepts (at least in the context of the presentation). The first having to do with VI Credential Stores (More Info). The second being custom properties (The Name, Expression [...]

Demo 2 – VMware

Here is the code from the “VM Easy Bake Oven” or Demo 2 for VMware.

This one flows much the same as Demo 1, connect, create a VM, change the VM, and delete the VM. These commands are useful from the command line to create single or multiple VMs, as well as for getting used [...]

« Older Entries