WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] How can get information about a domain

To: Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] How can get information about a domain
From: "Mohammad Zohny" <mohamad.zohny@xxxxxxxxx>
Date: Mon, 2 Jul 2007 11:11:48 +0300
Delivery-date: Mon, 02 Jul 2007 01:09:57 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=qqwzicJP5g7rgRYDYmyVBU5wR5dk01Xy9Qj+U985E3cFp7cqRaIKOXK9bWlP7xhBE5NMdkmthxtopsl8cYMHVIO//Xqf4KlkFwOyawWJRx8edjVuN7SPsEKyhERA4rJQNviOOnWgob6s/QwqJxHLr3R5mG6XtnEPKryheHU6p0k=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=jq0kwJLRsI43/TwfOvT+rKCsMop7THBvjf4n+9if2hxTjtCow4YbygJHP2LSHJv5XWTCgDKvHnqpnttYE2HTqrYXVWHn8zMbWxkWnlGf61qfx7D7Z+1XvQuIx+qKeEdBCK4Q07Iyh5RRX/ziY4Cap3Sy/p3JMyGWGrZ9pDh0Xgs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070626174203.GD6220@xxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <817d8cc30706261008v55964438r47395caa3d4bf1aa@xxxxxxxxxxxxxx> <907625E08839C4409CE5768403633E0B02561E9D@xxxxxxxxxxxxxxxxx> <20070626174203.GD6220@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thanks for all,
I used virsh to display cpu , memory information.
is there any other method to display network interfaces and belong to which bridge, and
also display hard disks and their sizes?



On 6/26/07, Daniel P. Berrange <berrange@xxxxxxxxxx> wrote:
On Tue, Jun 26, 2007 at 07:13:39PM +0200, Petersson, Mats wrote:
> > You can use virsh dumpxml <domain_name>, then parse the
> > output with a Perl xml module to extract the tags.

That gives you hardware info & resource info. There's also a specific set
of APIs for more efficiently getting resource info on its own if needed,
as well as XML describing the capapbilities of the host/hypervisor.

> Yes, you could. The only problem with this is that you'd be dependant on
> a third party tool on top of xen to get the information.

<devils advocate>
As opposed to being locked into a specific implementation/vendor's API ;-)
</devils advocate>

> Of course, it also adds the benefit of being able to handle qemu and kvm
> guest - if that's of any importance.

Well I think it is, since the number of virtualization technologies on
Linux (unfortunately?) seems to be increasing over time rather than
consolidating - Xen, KVM, QEMU VirtualBox, VMWare, UserModeLinux to name
but 6!

> But it's probably better to use libvirt directly for this purpose - but
> it depends on what software tools you want to use at the web interface
> production, I suppose.

Indeed, there are APIs for libvirt in C, python, perl and OCaml, as well
as the shell tool. Using the APIs is recommeded since it gives you more
control over the process & greater efficiency.

Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/                -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=|

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] How can get information about a domain, Mohammad Zohny <=