AHV: How to get VM Creation Date? | Nutanix Community
Skip to main content

We are trying to pull VM Creation Date on one of our AHV Cluster, we also have PC in our environment. Kindly advise if any way to fetch the VM Creation date.

It has been posted on this link , Pls try it and let me know if that doesn't work 

 

https://next.nutanix.com/scripts-32/can-you-get-vm-creation-date-time-via-powershell-28233


@Paul Ilavarasu  I tried it multiple times, but when I select PC there is no output. Though, if you only select PE, it will not give VM Creation date.


What is your AOS version ? and API versioin?


Try this 

After downloading the script from My GitHub Reporting Repository or just copy and paste the script from this blog post you need to change the following parameters to make it work in your environment:

  • directory=”/Users/magander/Documents/script/REST”
  • clusterfqdn=”PE-FQDN”
  • user=”admin”
  • passwd=”secret”
  • pcinuse=”y”
  • pcfqdn=”PC-FQDN”
  • pcuser=”admin”
  • pcpasswd=”secret”The script has been tested on AOS 5.8.-5.8.2 and AHV 20170830.156-166 and from a few versions of MaxOS and a few Linux 

@Paul Ilavarasu 

@Paul Ilavarasu  Cluster AOS Version 5.10.9.1 , PC AOS version is 5.16.1.3. Rest API for Cluster seems to be 2 and for PC it’s 3. Do you know, how we can confirm Rest API Version?

 

Also, Yes, I was trying this  http://vcdx56.com/2018/09/nutanix-ahv-vm-reporting-via-rest-api-version-2-1/  background and get the required details i.e. VM Creation Date :)

Though, the tool mentioned in

 

https://next.nutanix.com/scripts-32/can-you-get-vm-creation-date-time-via-powershell-28233

  is very good, want more upgrade version of it.

Thanks