lohit wrote:
> Hi,
>
> Could someone please tell me how to extract the CPU details from zendmd ?
>
>
> Thanks & Regards
> Lohit
Hi,
like this:
---
output=''
for d in context.getSubDevices():
if (d.productionState > -1):
for c in d.hw.cpus():
output=output + d.id + ';' + c.id + ';' + str(c.clockspeed) + ';' +
c.productClass().id + '\n'
return output
---
Hope it helps.
christian
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=37891#37891
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users