<div>Hi,</div><div><br></div><div>I am facing issue with the calls getCPUStats and getMemoryStats. Please find the error below.</div><div><br></div><div>AttributeError: 'module' object has no attribute 'VIR_NODE_CPU_STATS_ALL_CPUS'</div>
<div>>>> print con.getCPUStats(2, None, 0, 0)</div><div>Traceback (most recent call last):</div><div>  File "<stdin>", line 1, in <module></div><div>  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 2173, in getCPUStats</div>
<div>    ret = libvirtmod.virNodeGetCPUStats(self._o, cpuNum, params, nparams, flags)</div><div><b>AttributeError: 'module' object has no attribute 'virNodeGetCPUStats'</b></div><div><br></div><div><div>>>> print con.getMemoryStats(2, None, 0, 0)</div>
<div>Traceback (most recent call last):</div><div>  File "<stdin>", line 1, in <module></div><div>  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 2245, in getMemoryStats</div><div>
    ret = libvirtmod.virNodeGetMemoryStats(self._o, cellNum, params, nparams, flags)</div><div><b>AttributeError: 'module' object has no attribute 'virNodeGetMemoryStats'</b></div></div><div><br></div><div>
<br></div><div>Kind let me know if this is a known issue. I came to know that this issue was fixed in 0.9.8 version of libvirt. I am executing these calls on libvirt-0.9.8 compiled (--with-netcf) on centos 6.2.</div><div>
Please let me know if any other option needs to be specified while compiling libvirt in order to get this working.</div><div><br></div>-- <br>Regards<br>Ananth<br>