<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText41481 dir=ltr>
<DIV dir=ltr><FONT face="Courier New" color=#000000 size=2>Hi,</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>I am using <FONT color=#800080>OpenNebula Client Utility</FONT> to get the Front-end (ONE) details.</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>I am calling <STRONG><FONT color=#0000ff>oneClient.allHostsIds(session)</FONT></STRONG> method from my java program.</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>I am getting the following error :</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>--------------------------------------------------------------------------------------------</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>org.apache.xmlrpc.XmlRpcException: Method <FONT color=#ff0000><STRONG>'one.allhostsids'</STRONG></FONT> not defined<BR> at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:186)<BR> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:145)<BR> at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:94)<BR> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:44)<BR> at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)<BR> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)<BR> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:157)<BR> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:146)<BR> at org.opennebula.stubs.OpenNebulaClientImpl.execute(OpenNebulaClientImpl.java:115)<BR> at org.opennebula.stubs.OpenNebulaClientImpl.allHostsIds(OpenNebulaClientImpl.java:272)</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>--------------------------------------------------------------------------------------------</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Why am I getting the error ?</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>I have added one machine as host using "onehost create" command.</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>How can I get the <STRONG>HID</STRONG> for a given <STRONG>hostname</STRONG> from Front-End using Client Utility ?</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Can anybody give me a sample code for this.</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Any help is appreciated.  Anticipating for a response.</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" color=#000000 size=2></FONT> </DIV></DIV>
<DIV id=idSignature32283 dir=ltr><PRE>Thanks and Regards,
Lalithamba.
</PRE></DIV><P><strong><span style='font-size:10.0pt;font-family:
"Palatino Linotype","serif";color:green'> Please do not print this email unless it is absolutely necessary. </span></strong><span style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>


<p> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. </p>

<p>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. </p>
<p>
www.wipro.com
</p>
</BODY></HTML>