<HTML>
<p> </p><p>Hi,</p><p>How i can calculate cpu utilization percentage for host using python libvirt API.<br />Which function can i use for calulating cpu percentage of host and Virtual Machines?<br /><br />1)Host cpu utilization<br /> ====================<br /> I tried getCPUStats() function,it gives the following output.Is there any way to calculate cpu percentage from the following output?<br /> Is there any other function availabe for calculating cpu utilization percentage? <br /> <br /> output:{'kernel': 34870000000L, 'idle': 3522190000000L, 'user': 209930000000L, 'iowait': 132240000000L}<br /><br /><br /> import libvirt<br /> conn=libvirt.open('qemu+ssh://root@192.168.1.4/system')<br /> conn.getCPUStats(-1,0)</p><p> </p><p> </p><p>Thanks and Regards,<br />Deepak S</p><BR><hr />Message sent via Atmail Open - http://atmail.org/</HTML>