# Getting statistics on VMs instantiated

**URL:** <https://forum.opennebula.io/t/getting-statistics-on-vms-instantiated/1889>\
**Category:** Product Support\
**Created:** [March 4, 2016, 2:24pm UTC](https://forum.opennebula.io/t/getting-statistics-on-vms-instantiated/1889 "2016-03-04T14:24:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![muyiscoi](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@muyiscoi](https://forum.opennebula.io/u/muyiscoi)\
**Post date:** [March 4, 2016, 2:24pm UTC](https://forum.opennebula.io/t/getting-statistics-on-vms-instantiated/1889/1 "2016-03-04T14:24:11Z")

</div>

I’m pretty new to Opennebula.  
I would like to know how to get statistics on how long it takes to instantiate multiple virtual machines. It could be timestamps on when the VM moves through the different states till it is fully running.  
Any info on this would be super helpful!.

Thanks.

---

<div class="post-metadata">

**Author:** ![cmartin](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/cmartin/32/4278_2.png) [@cmartin](https://forum.opennebula.io/u/cmartin)\
**Post date:** [March 4, 2016, 4:22pm UTC](https://forum.opennebula.io/t/getting-statistics-on-vms-instantiated/1889/2 "2016-03-04T16:22:59Z")

</div>

Hi,

You can get the [extended VM information](http://docs.opennebula.org/4.14/integration/system_interfaces/api.html#schemas-for-virtual-machine) with `onevm show -x`, or the [ruby](http://docs.opennebula.org/4.14/integration/system_interfaces/ruby.html#ruby) and [java](http://docs.opennebula.org/4.14/integration/system_interfaces/java.html#java) api bindings.

Each VM has a global STIME (start time) and ETIME (end time). Then for each history record (each time a VM is deployed, migrated, suspended, etc) you have:

- STIME, ETIME: start/end time
- PSTIME, PETIME: prolog start/end time
- RSTIME, RETIME: running start/end time
- ESTIME, EETIME: epilog start/end time

Another option is to open the [individual VM log file](http://docs.opennebula.org/4.14/administration/references/log_debug.html), it will contain each state change with a timestamp.

---

<div class="post-metadata">

**Author:** ![muyiscoi](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@muyiscoi](https://forum.opennebula.io/u/muyiscoi)\
**Post date:** [March 7, 2016, 12:34pm UTC](https://forum.opennebula.io/t/getting-statistics-on-vms-instantiated/1889/3 "2016-03-07T12:34:35Z")

</div>

Thanks. I’ll give this a try and report back.
