Hi Florian,<br><br>Works perfectly.<br><br>vm['TEMPLATE/CPU']<br>vm['TEMPLATE/MEMORY']<br>vm['TEMPLATE/CONTEXT/IP_PUBLIC']<br><br>It was in XMLElement page [1].<br><br>Thanks a lot!<br><br>[1] <a href="http://opennebula.org/doc/2.2/oca/ruby/classes/OpenNebula/XMLElement.html">http://opennebula.org/doc/2.2/oca/ruby/classes/OpenNebula/XMLElement.html</a><br>
<br><div class="gmail_quote">2011/6/20 <span dir="ltr"><<a href="mailto:florian.feldhaus@tu-dortmund.de">florian.feldhaus@tu-dortmund.de</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Paulo,<br>
<br>
try:<br>
vmpool=VirtualMachinePool.new(@one_client)<br>
<a href="http://vmpool.info" target="_blank">vmpool.info</a><br>
vm['TEMPLATE/MEMORY']<br>
vm['TEMPLATE/CPU']<br>
<br>
There's also some documentation on this somewhere in the OpenNebula API<br>
pagesŠ<br>
<br>
Cheers,<br>
Florian<br>
<br>
<br>
<br>
Von: Paulo A L Rego <<a href="mailto:pauloalr.alu@gmail.com">pauloalr.alu@gmail.com</a>><br>
Datum: Mon, 20 Jun 2011 11:37:14 -0300<br>
An: <<a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a>><br>
Betreff: [one-users] Get VM info with Ruby OCA API<br>
<div><div></div><div class="h5"><br>
<br>
Hello,<br>
<br>
I'm trying to get informations about ip, memory and cpu from Virtual<br>
Machine.<br>
I was using the method VirtualMachine.info, but i saw at documentation<br>
that it returns nil in case of success.<br>
The info method is just for error check?<br>
<br>
Is there any method that get this informations ou should i use<br>
xmlrpc/client and implement my own?<br>
<br>
Thanks<br>
<br>
</div></div>_______________________________________________<br>
Users mailing list<br>
Users@lists.opennebula.orghttp://<a href="http://lists.opennebula.org/listinfo.cgi/users-op%0Aennebula.org" target="_blank">lists.opennebula.org/listinfo.cgi/users-op<br>
ennebula.org</a><br>
<br>
</blockquote></div><br>