Displaying vSphere disk properties (including provisioning & persistence)
I was doing some tidying of old scripts and came across something I thought it might be useful, so I tidied it up and added some documentation.
I was doing some tidying of old scripts and came across something I thought it might be useful, so I tidied it up and added some documentation.
One-liner PowerCLI to output a list of machine names and screen resolutions.
As we are constantly creating, moving, renaming and deleting machines, it's difficult enough to keep track of machines I have deployed myself; never mind keeping track of what the other team members are doing.
I haven't been posting too much here recently I'm afraid. A lot of the things that I'm currently working on are pretty specific to the environment here, and are not particularly useful (or indeed, interesting) to anyone else.
We've started our first "proper" implementation of Linked Clones in our vSphere 4 environment. While we've done some limited proof-of-concept work, this is the first project to be entirely deployed using Linked Clones. The objective is to reduce the space used by our training…
We're currently neck-deep in migration at the moment, but despite the workload, it's always worth considering what we can do now, that might save us some time and effort later on.
We can use PowerShell to search through the event logs of a machine object ($virtualMachine in the example below) for events which match a specific pattern - in this case powering off a machine. Once we have the event object, we can access the properties of the first object in…
This is based on Carter Shanklin's PowerShell snippets to query VC and ESX build version numbers.
As part of the migration I'm working on, we needed to add a whole bunch of Virtual Port Groups with associated VLANs to the servers. The following script could do this in a few minutes (although Host Profiles would accomplish much the same thing, we're not running Enterprise).
I love it when I have an idea in my head of a script I need to write, and then I run across one that does exactly what I need!