Re: Web Interface Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 07, 2008 at 04:12:42PM +0100, Henri Cook wrote:
> Yes, the perl bindings with 0.4.0 at least often error - e.g. how do I
> check whether a domain is online? I could list all the domains or I
> could simply try and retrieve the domain by name, if error 42 (the
> 'unknown' error) comes back then the domain is not online.

Yes, you should try to retrieve the domain by name, and you'll either
get the domain object (if it exists) or a NULL + some sort of error.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]