# RPC2 nebula asking

**URL:** <https://forum.opennebula.io/t/rpc2-nebula-asking/8658>\
**Category:** Integration Support\
**Created:** [July 20, 2020, 2:55am UTC](https://forum.opennebula.io/t/rpc2-nebula-asking/8658 "2020-07-20T02:55:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jehe](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/jehe/32/6461_2.png) [@Jehe](https://forum.opennebula.io/u/Jehe)\
**Post date:** [July 20, 2020, 2:55am UTC](https://forum.opennebula.io/t/rpc2-nebula-asking/8658/1 "2020-07-20T02:55:15Z")

</div>

Hello.  
Where i can check in which measurements OpenNebula returns values with xml-rpc quering ?  
As example, i am getting information about net\_tx from VM and it is not comparable with information from sunstone.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/a/a17d0dccd3cb58d736637098be6b9038f0c6d0d6.png)  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/a/aca050185bc8d4370099f797488d7c765e044c8c.png)

Also mine vm has 5 cores, but info from rpc, i dont even know.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/2/237c79c832efa6206b091d64c9d664d54381414e.png)  
Thanks.

---

<div class="post-metadata">

**Author:** ![cgonzalez](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/cgonzalez/32/7096_2.png) [@cgonzalez](https://forum.opennebula.io/u/cgonzalez)\
**Post date:** [July 24, 2020, 7:40am UTC](https://forum.opennebula.io/t/rpc2-nebula-asking/8658/2 "2020-07-24T07:40:04Z")

</div>

Hello @Jehe,

The XML-RPC API docs is available here: [http://docs.opennebula.io/5.12/integration/system\_interfaces/api.html](http://docs.opennebula.io/5.12/integration/system_interfaces/api.html).

Probably, the information there is not enough for you, as you probably are retrieving the VM information and checking the corresponding values. So let me give you more info, for the `NET_TX` value, it’s retrieved during the monitoring using `virsh --connect LIBVIRT_URI --readonly domstats` command, you have the code available [here](https://github.com/OpenNebula/one/blob/aac8c7b1cbe01c561d4d55234c46997ecdabed64/src/im_mad/remotes/lib/kvm.rb#L287).

Regarding the CPU, which exact value are you printing there?

---

<div class="post-metadata">

**Author:** ![Jehe](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/jehe/32/6461_2.png) [@Jehe](https://forum.opennebula.io/u/Jehe)\
**Post date:** [July 28, 2020, 7:57pm UTC](https://forum.opennebula.io/t/rpc2-nebula-asking/8658/3 "2020-07-28T19:57:27Z")

</div>

//VM/MONITORING/CPU from answer on xml-rpc request  
vm.info method

---

<div class="post-metadata">

**Author:** ![cgonzalez](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/cgonzalez/32/7096_2.png) [@cgonzalez](https://forum.opennebula.io/u/cgonzalez)\
**Post date:** [August 10, 2020, 8:36am UTC](https://forum.opennebula.io/t/rpc2-nebula-asking/8658/4 "2020-08-10T08:36:38Z")

</div>

Hello @Jehe,

The information you are printing is the actual usage of the CPU inside the VM not the number of cores. If you want to check the number of virtual cores that the VM will see from inside you can check `/VM/TEMPLATE/VCPU`.

---

<div class="post-metadata">

**Author:** ![Jehe](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/jehe/32/6461_2.png) [@Jehe](https://forum.opennebula.io/u/Jehe)\
**Post date:** [August 10, 2020, 8:48am UTC](https://forum.opennebula.io/t/rpc2-nebula-asking/8658/5 "2020-08-10T08:48:12Z")

</div>

My old measure, which i am asking is it usage in percent ?

---

<div class="post-metadata">

**Author:** ![cgonzalez](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/cgonzalez/32/7096_2.png) [@cgonzalez](https://forum.opennebula.io/u/cgonzalez)\
**Post date:** [August 10, 2020, 8:57am UTC](https://forum.opennebula.io/t/rpc2-nebula-asking/8658/6 "2020-08-10T08:57:01Z")

</div>

Yes, you can find the description of the VM monitoring values here: [http://docs.opennebula.io/5.12/integration/infrastructure\_integration/devel-im.html#monitor-vm-message](http://docs.opennebula.io/5.12/integration/infrastructure_integration/devel-im.html#monitor-vm-message)
