All of lore.kernel.org
 help / color / mirror / Atom feed
* Domid for just created domain?
@ 2008-05-31  3:01 Dan Magenheimer
  2008-05-31  4:20 ` Luke S Crawford
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Magenheimer @ 2008-05-31  3:01 UTC (permalink / raw)
  To: Xen-Devel (E-mail)

[-- Attachment #1: Type: text/plain, Size: 362 bytes --]

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)

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Domid for just created domain?
  2008-05-31  3:01 Dan Magenheimer
@ 2008-05-31  4:20 ` Luke S Crawford
  0 siblings, 0 replies; 4+ messages in thread
From: Luke S Crawford @ 2008-05-31  4:20 UTC (permalink / raw)
  To: dan.magenheimer@oracle.com; +Cc: Xen-Devel (E-mail)

"Dan Magenheimer" <dan.magenheimer@oracle.com> writes:
> Is there any easy way in a shell script to find out the
> domid of "the domain I just created" with xm create?

xm create domain
xm list domain 

is the best way I know of getting it... you just need to sed it out.  

But usually I try not to use the numeric domain id for anything;  if you
set vifname= on the vif= line, to my knowledge there isn't anything
you can't do with symbolic names that you can do with the numeric id.  

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Domid for just created domain?
@ 2008-05-31  8:25 James Harper
  2008-05-31 14:06 ` Dan Magenheimer
  0 siblings, 1 reply; 4+ messages in thread
From: James Harper @ 2008-05-31  8:25 UTC (permalink / raw)
  To: dan.magenheimer, xen-devel

xenstore-list /local/domain
And just get the last line or grep by name

-----Original Message-----
From: "Dan Magenheimer"<dan.magenheimer@oracle.com>
Sent: 31/05/08 1:04:01 PM
To: "Xen-Devel (E-mail)"<xen-devel@lists.xensource.com>
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)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Domid for just created domain?
  2008-05-31  8:25 Domid for just created domain? James Harper
@ 2008-05-31 14:06 ` Dan Magenheimer
  0 siblings, 0 replies; 4+ messages in thread
From: Dan Magenheimer @ 2008-05-31 14:06 UTC (permalink / raw)
  To: James Harper, xen-devel@lists.xensource.com

[-- Attachment #1: Type: text/plain, Size: 1194 bytes --]

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@bendigoit.com.au]
> Sent: Saturday, May 31, 2008 2:25 AM
> To: dan.magenheimer@oracle.com; xen-devel@lists.xensource.com
> 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@oracle.com>
> Sent: 31/05/08 1:04:01 PM
> To: "Xen-Devel (E-mail)"<xen-devel@lists.xensource.com>
> 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)
> 
> 

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-31 14:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-31  8:25 Domid for just created domain? James Harper
2008-05-31 14:06 ` Dan Magenheimer
  -- strict thread matches above, loose matches on Subject: below --
2008-05-31  3:01 Dan Magenheimer
2008-05-31  4:20 ` Luke S Crawford

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.