Hi,<div><br></div><div>You will need to open the OpenNebula xml-rpc port (or access it through a tunnel), and install the CLI and Ruby OCA files in your Host (those located in /usr/lib/one/ruby/OpenNebula).</div><div><br></div>

<div>Some distros package the opennebula client tools separately [1]. Or you can download the code and use the '-c' option of the install.sh file [2]. Skip the compilation step, everything you will install are ruby scripts. If you are going to use only the Ruby OCA, then the only gem you need is nokogiri, but you can execute the install_gems scripts to be on the safe side.</div>

<div><br></div><div>Regards</div><div><br></div><div>[1] <a href="http://packages.ubuntu.com/precise/opennebula-tools">http://packages.ubuntu.com/precise/opennebula-tools</a></div><div>[2] <a href="http://opennebula.org/documentation:rel3.4:compile">http://opennebula.org/documentation:rel3.4:compile</a></div>

<div><br clear="all">--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>

<br>
<br><br><div class="gmail_quote">On Tue, May 29, 2012 at 4:41 PM, Antonio Carlos Salzvedel Furtado Junior <span dir="ltr"><<a href="mailto:acsfj08@inf.ufpr.br" target="_blank">acsfj08@inf.ufpr.br</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello OpenNebula users,<br><br>Is it possible to retrieve pool elements in remote hooks?<br>I made a script that uses some ruby classes like VirtualMachine, VirtualMachinePool, Host, HostPool, etc. It works fine, but this hook is not run on the host.<br>



<br>I'm going to develop another hook to be used remotely. I want to be able to include the module OpenNebula in an easy way. Although "one.db" is located in a NFS shared folder, I don't know about the support OpenNebula offers for these kind of operations.<br>



<br><br>Cordially,<br><br><br>Antonio Carlos Furtado<br>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>