I am trying to make a simple script that will get various information about starting domains on the xen host.
So far I have:
import libvirt import pprint conn = libvirt.open('xen:///') for id in conn.listDomainsID(): dom = conn.lookupByID(id) infos = libvirt.virDomainGetInfo(dom)
which gives me the following error:
AttributeError: 'module' object has no attribute 'virDomainGetInfo'
Which, according to the API (http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetInfo), should at least return something to me.
Any clue? (I'm new to python)
Disco source share