Score:0

When a VM Template was last used (to create a VM)?

kr flag

I need to know when a VM Template was last used (to create a VM)? As I am working on a project of segregating unused templates in my vSphere environment, I need to know that answer.

I tried Get-Template TemplateName | select * But is not giving me the required information, Any help here is appreciated, Thank you!

Mikael H avatar
br flag
You might be able to parse your vCenter logs to find when TemplateName was last cloned. That's not very practical but it's the only way I can think of.
kr flag
That did work. The logs were present on "/var/log/vmware/output/vsphere_events_*.evt.out" I used a log data analytics tool, to pull the information on when that template was last "deployed on host".
Score:1
kr flag

The logs were present on "/var/log/vmware/output/vsphere_events_*.evt.out". I used a log data analytics tool, to pull the information on when a template was last "deployed on host", the aggregated result was the one I needed.

Thank you Mikael H for your insights. Thank you Gerald Schneider for taking a look.

Score:1
in flag

There is no way to retrieve this information, it is not stored within the template.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.