[libvirt-users] printing domain information

Doug Goldstein cardoe at gentoo.org
Sun May 6 22:00:01 UTC 2012

On Sat, May 5, 2012 at 1:24 AM, John Wayne <m01z04-libvirt at yahoo.com> wrote:
> how do i print the features of a domain from functions that return a domain object?
> for instance mydomain = virdomain=libvirt.virConnect.lookupByID(conn,domainid)
> so mydomain is virDomainPtr, which is typedef virDomain * virDomainPtr
> i am not sure on how to print the domain object features in python, such as name, disk size, etc

Use python's built in help.

$ python
>>> import libvirt
>>> help (libvirt.virDomain)

Doug Goldstein

More information about the libvirt-users mailing list