Thank you for your reply.

Actually, the reason I expect that function from libvirt API was I don't want to install agent-like software on VM, which means I was trying to get such information without agent for cloud environment monitoring.

By the way, I have another question about libvirt-java binding API.

Does the API fully support libvirt C API functionally? I've been trying to get VM's current memory/cpu usages and network I/O of individual NICs, but the coding is not easy since the description how to use each libvirt-java binding API in Javadoc is barely sufficient. For example, Domain.memoryStats(int number) seems returning the memory usage or something related to that information, but I really don't know what "number" should be given for the parameter... The return values were even not one result per VM. What does the value exactly mean?

Thanks in advance.

Best regards

bgkim

2016-01-05 1:59 GMT+09:00 Vasiliy Tolstov <v.tolstov@selfip.ru>:
2016-01-04 16:33 GMT+03:00 BYEONG-GI KIM <kimbyeonggi@gmail.com>:
> hank you for the reply!
>
> I used the term "disk usage" as what you mentioned first; the information
> which can be retrieved via 'df' command on linux system...
>
> I'll then have to consider different approach to do what I want.
>
> Anyway, thanks again for your great help.
>
> Best regards

You can install under guest vm qemu-guest-agent and get info from it.

--
Vasiliy Tolstov,
e-mail: v.tolstov@selfip.ru