Parakkal, Navin S
2013-Feb-13 07:50 UTC
[libvirt-users] Host information from libvirt KVM/Xen
Hi, I'm able to get the CPU utilization metrics from libvirt for the guests (VM's) remotely . Is it possible to get the Host Cpu stat's through libvirt ? I didn't find any information regarding the host cpu cycles and memory utilization to collect them remotely. Libvirt is installed on all the hosts. Regards, Navin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130213/5d546a58/attachment.htm>
[no need to mail both libvir-list and libvirt-users; the former is more for development efforts, and since this is a usage question, it is sufficient to mail just libvirt-users] On 02/13/2013 12:50 AM, Parakkal, Navin S wrote:> Hi, > I'm able to get the CPU utilization metrics from libvirt for the guests (VM's) remotely . Is it possible to get the Host Cpu stat's through libvirt ? > I didn't find any information regarding the host cpu cycles and memory utilization to collect them remotely. Libvirt is installed on all the hosts.You want to use the virNodeGetCPUStats() and virNodeGetMemoryStats() APIs. In virsh, these are wrapped under 'nodecpustats' and 'nodememstats'. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 621 bytes Desc: OpenPGP digital signature URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130213/bc822133/attachment.sig>