Archive for 'API'

New Script – Get VM or ESX Host UUIDs (get-uuid.ps1)

UUIDs are wonderful! Really. They’re just not all that easy to get to, at least not when you need more than a few of them at a time. That is where this script comes in:
# get-uuid.ps1 # # Takes either a VMHost or VM object from [...]

VMware Developer Community EXTREME MAKEOVER EDITION!

Well, I’m not sure how “Extreme” it is, but over the weekend VMware’s Developer community site got a face lift.
Unlike Joan Rivers, this one actually kinda looks good afterwards:

VIXated with VMware’s VIX

Since my first few posts on this got a bit of attention, I thought I’d add some more to this. In today’s post we’ll cover adding or deleting a route, and setting a default route. I’ve got requests for others that will keep the next few weeks worth of VIX posts busy.
We’ll cover this against [...]

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

ESXi 3.5 Update 3 API’s Unlocked By Accident

Found out from VM/Etc and a few other sources today, that the recent opening of the ESXi 3.5 Update 3 API’s was an accident, and they’re going to be locked down again soon. That sucks.

3 Days… 3 Ways To Setup a vSwitch

What happens in 3 days? You know, don’t you? Well, I’m sure you do. That said, here are 3 ways to configure a vSwitch. (Yes there are more ways than this, but alas… one has to stick with the theme.).
Using the Virtual Infrastructure Client:

 
Using The VI Toolkit (PowerShell)
Before:

PowerShell:
PS [...]

More PowerShell Goodness

One of the greatest things about working with/on VMware is the attention they pay to the community that has built up around their products. The community itself becomes a great resource for feedback to the company and for support to new users. Their PowerShell community is no exception to this. Here is a post on [...]

VMware VIX – Changing IP’s of a Guest VM

As a demonstration of the power of VIX, I’ve chosen to show you how to change IP addresses of a Windows VM. You may want to buckle up for this.
First, grab the VIX API installable from VMware’s site. In this case we’ll be using the Windows version (because that is the VM I happen to [...]

VMware VIX – More API’s

So this will need further investigation on my part. On the surface it looks really cool:
“The VIX API allows development of scripts and programs to automate operations in guest virtual machines.”
Read that again. Now process. Automate operations IN the guest VM. Go here for the release notes.

ESXi 3 Update 3, Now With a Side of Awesome

This has been reported by vm/etc and vinternals, but I think it deserves quite a bit more attention. Take a moment to read the posts. The free version of ESXi Update 3 now supports read/write FULL remote admin via the RCLI, and the other api’s. Meaning, that VMware took and made it just that much [...]