Powershell

Calling all ESX admins!  I am looking for novel ideas for scripts to write for the upcoming VMware Toolkit for Windows PowerShell.  Yes–I am offering to do the writing.  I am doing research for a project (details of which to be announced in the coming weeks), and I could use some really great ideas of missing functionality or fixes to problems you have seen while working with VMware Virtual Infrastructure 3.  Pointers to something cool you have seen done with the VMware Perl Toolkit are good too.  It’ll be amusing to see how much simpler those will be in PowerShell.  :D

So please share anything you can come up with. You can leave them in the comments or contact me directly.  Thanks!

: http://halr9000.com/article/464

2008-02-21 09:17:10

Got one from IRC:

Well when you rename a network you have to go through all of the VM’s on that network and reassign them. A script that would rename the network and “fix” the network settings on those VMs that are attached to the network would be nice.

2008-02-22 10:53:00

Just thought of another one myself. I’d like to easily remove one or more virtual hardware devices (such as an unnecessary sound or USB controller) across multiple systems.

2008-03-01 12:16:12

You could write one to add multiple port groups across many host servers. This is so nice when trunking many VLANs at once.

2008-03-01 12:33:07

Thanks Andrew, I’ll add that to my list.

Mark Schill
2008-03-17 21:26:40

A way to create a snapshot that expires in a specified number of hours would be awesome.

2008-03-18 03:56:03

Hi

I would love to have a list of all active snapshots, the time they are running (or creation date), comment and VM they belong to.

Gabrie

2008-03-18 12:39:18

@Mark, cool idea, I’ll see if that’s doable. @Gabrie, try this:
$snap = get-vm | get-snapshot
$snap | ft @{l = "VM"; e = {$_.vm.name} },name,created,description

2008-03-20 20:41:18

From the VITK forum: “I want CPU Ready information, i.e. the amount of time a VM is READY to RUN but must WAIT for a the right number of cores to become available.”

Joose
2008-03-26 14:13:55

It would be nice if esxcfg-mpath commands could be used.

Comments for this post will be closed on 26 March 2009.