Skip to contentSkip to conversation

Domid for just created domain?

DISCUSSION James Harper 2 participants 2 messages May 31, 2008

lore
Share & tools
lore
#0 lore raw

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

-----Original Message-----
From: "Dan Magenheimer"<[email protected]>
Sent: 31/05/08 1:04:01 PM
To: "Xen-Devel (E-mail)"<[email protected]>
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)

#1 lore raw

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!

Quoted 19 lines

-----Original Message-----
From: James Harper [mailto:[email protected]]
Sent: Saturday, May 31, 2008 2:25 AM
To: [email protected]; [email protected]
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"<[email protected]>
Sent: 31/05/08 1:04:01 PM
To: "Xen-Devel (E-mail)"<[email protected]>
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?

Quoted 8 lines

===================================
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
[email protected]
http://lists.xensource.com/xen-devel