<font size=2 face="sans-serif">Thanks Richard for this example.</font>
<br><font size=2 face="sans-serif">Do you know hoe can I investigate the
storage \ space allocation for single instance ?</font>
<br>
<br><font size=2 face="sans-serif">Yaniv</font>
<br>
<table width=950 style="border-collapse:collapse;">
<tr height=8>
<td width=550 style="border-style:solid;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<table width=550 style="border-collapse:collapse;">
<tr valign=top height=8>
<td width=548 style="border-style:solid;border-color:#000000;border-width:0px 0px 0px 0px;padding:1px 1px;"><font size=3>Yaniv
Hadad<br>
Servers & Network Group, IBM R&D Labs in Israel<br>
Software Devloper<br>
yanivh@il.ibm.com, +972-4-829-65947<br>
Fax: +972-4-829-6111, Cell: +972-50-4078908</font></table>
<br>
<td width=400 style="border-style:solid;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<tr height=8>
<td width=950 colspan=2 style="border-style:solid;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"></table>
<br>
<p><font size=3> </font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">"Richard W.M.
Jones" <rjones@redhat.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">Yaniv Hadad/Haifa/IBM@IBMIL,
</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:      
 </font><font size=1 face="sans-serif">libvir-list@redhat.com</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">21/06/2013 05:39 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: [libvirt]
Investigate VM via Libvirt API</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>On Thu, Jun 20, 2013 at 01:42:06PM +0300, Yaniv Hadad
wrote:<br>
> Hi All,<br>
> <br>
> I am Java developer that want to start working with Libvirt API.<br>
> My first target is to investigate Host + all his instances. <br>
> (CPU,Storage,Network,State,Name..etc.)<br>
> Can some one give me good code example or article for that purpose.<br>
> <br>
> I prefer to use Java , but , python is also good for this target<br>
<br>
The Java API works the same as the C API.<br>
<br>
Here is an example program in Java:<br>
<br>
</font></tt><a href="http://libvirt.org/git/?p=libvirt-java.git;a=blob;f=src/test/java/test.java;h=3442becb01a325633ea4a5d499fbe4390ab06c54;hb=HEAD"><tt><font size=2>http://libvirt.org/git/?p=libvirt-java.git;a=blob;f=src/test/java/test.java;h=3442becb01a325633ea4a5d499fbe4390ab06c54;hb=HEAD</font></tt></a><tt><font size=2><br>
<br>
(Look for conn.listDefinedDomains etc)<br>
<br>
Rich.<br>
<br>
-- <br>
Richard Jones, Virtualization Group, Red Hat </font></tt><a href=http://people.redhat.com/~rjones><tt><font size=2>http://people.redhat.com/~rjones</font></tt></a><tt><font size=2><br>
virt-df lists disk usage of guests without needing to install any<br>
software inside the virtual machine.  Supports Linux and Windows.<br>
</font></tt><a href="http://people.redhat.com/~rjones/virt-df/"><tt><font size=2>http://people.redhat.com/~rjones/virt-df/</font></tt></a><tt><font size=2><br>
<br>
</font></tt>
<br>