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-devel

RE: [Xen-devel] Domid for just created domain?

To: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Domid for just created domain?
From: "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx>
Date: Sat, 31 May 2008 08:06:30 -0600
Delivery-date: Sat, 31 May 2008 07:08:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <001f01c8c2f7$c5d497f0$cec8a8c0@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Oracle Corporation
Reply-to: "dan.magenheimer@xxxxxxxxxx" <dan.magenheimer@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcjCypygtKh0HPEqR9GIZaAqaeVTHgALSk3pAAvDVLA=
Thanks!  I hadn't realized that xenstore-ls
and xenstore-list were different so I was using:

# xenstore-ls | grep domid | tail -1 | \
 sed 's/.*\([0-9][0-9]*\).*/\1/'

but

# xenstore-list | tail -1

is even better!

> -----Original Message-----
> From: James Harper [mailto:james.harper@xxxxxxxxxxxxxxxx]
> Sent: Saturday, May 31, 2008 2:25 AM
> To: dan.magenheimer@xxxxxxxxxx; xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: RE: [Xen-devel] Domid for just created domain?
> 
> 
> xenstore-list /local/domain
> And just get the last line or grep by name
> 
> -----Original Message-----
> From: "Dan Magenheimer"<dan.magenheimer@xxxxxxxxxx>
> Sent: 31/05/08 1:04:01 PM
> To: "Xen-Devel (E-mail)"<xen-devel@xxxxxxxxxxxxxxxxxxx>
> Subject: [Xen-devel] Domid for just created domain?
> 
> Is there any easy way in a shell script to find out the
> domid of "the domain I just created" with xm create?
> 
> ===================================
> Thanks... for the memory
> I really could use more / My throughput's on the floor
> The balloon is flat / My swap disk's fat / I've OOM's in store
> Overcommitted so much
> (with apologies to the late great Bob Hope)
> 
> 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>