Sharing scripts – an easier way

Still new to this blogging thing and so far all my posts have been about PowerCLI. I use Github to store my scripts after I sanitize them for public consumption – its a great tool for storing your scripts, versioning and getting input from others. One thing that bugged me between Github and Blog, though, was needing to copy and paste my code into the blog posts every time I wrote or updated them. The only way I could find the share the code and keep it up to date on Github was to start a Gist. This still meant keeping a copy in two places, until I stumbled upon this cool feature.

Read More

When was this VM Shutdown

Continuing with a theme of simple scripts for the every day administrator, I was inspired again by the VMTN forums. Similar to several questions regarding the date a VM was deployed, there have been several question as to when a VM was shut down. The simple answer is to parse the events, but depending on how old the VM is, you could lose the events to the 30 day default window. Once again, a scheduled task can help with this.

Read More

Happy Birthday! – Give your VM a Birth Certificate

My first post – I planned something more elaborate, technical and earth-shattering, but after seeing the same question come up twice is less than a week on VMTN, decided on something more practical. If you’ve ever been in a situation where you’re looking to see when a virtual machine was deployed, or who deployed it, you’ve got a slight problem –¬†VMWare did not include this handy information in the native properties, you need to find the VI event associated with it’s creation and gather it from there. This can be a problem in a busy environment with event roll-overs or even from a practical stand-point of having to do that search each time you need it. I would say, why not note it from the start?

Read More