Hi,
Is this not supported for Xen ? I get something like the below for Xen+ssh .
libvir: error : this function is not supported by the connection driver:
virNodeGetCPUStats
libvir: error : this function is not supported by the connection driver:
virNodeGetMemoryStats
Regards,
Navin
-----Original Message-----
From: Eric Blake [mailto:eblake@redhat.com]
Sent: Wednesday, February 13, 2013 7:17 PM
To: Parakkal, Navin S
Cc: libvir-list(a)redhat.com; libvirt-users(a)redhat.com
Subject: Re: [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