0

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!

  • 1
    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. – Mikael H Jun 02 '22 at 11:43
  • 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". – RichardWizards Jun 02 '22 at 12:49

2 Answers2

1

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

Gerald Schneider
  • 19,757
  • 8
  • 52
  • 79
1

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.