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.
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?