[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [libvirt-users] Host information from libvirt KVM/Xen

[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

Attachment: signature.asc
Description: OpenPGP digital signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]