Hi,<div><br></div><div>I am trying to connect to a server running esx and collect system metrics like cpu usage, network and disk iops. I am able to establish the connection successfully and obtain VM information such as ids, domain names, config xml etc. But I am unable to collect statistics. </div>

<div><br></div><div>I am using the python interface and if I do , </div><div><br></div><div>conn=libvirt.openAuth(uri, auth, 0)</div><div>dom-conn.lookupByID(id) // Where id is the domain id of the vms</div><div><br></div>

<div>netstats=dom.interfaceStats(interface)</div><div><br></div><div>gives an error libvirt.libvirtError: this function is not supported by the connection driver: virDomainInterfaceStats</div><div><br></div><div>The same goes for block stats. For the cpu, I used,</div>

<div><br></div><div>cpu=<a href="http://dom.info">dom.info</a>()[4]</div><div><br></div><div>but, that always returns 0 (I thought it was cumulative and returns a huge value)</div><div><br></div><div>I have used similar scripts with xen and kvm and it worked well. Can someone tell me what mistake I am doing or if the driver doesnt support these functions, is there any other way of getting the stats ?? Thank you. </div>

<div><br>-<br>Regards,<br>Sethuraman Subbiah<br><br>Graduate Student - NC state University<br>M.S in Computer Science<br>
</div>