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 to know processes running inside domU

To: Nux <nux@xxxxxxxxx>
Subject: Re: [Xen-users] how to know processes running inside domU
From: Zane Rockenbaugh <zane@xxxxxxxxxxxx>
Date: Wed, 03 Mar 2010 10:48:59 -0600
Cc: yashwanth <yashwanth.reddy@xxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 26 Mar 2010 08:55:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.LRH.2.00.1003031009320.30359@xxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <1267596552.21613.15.camel@xxxxxxxxxxxxxxxxxxxxx> <alpine.LRH.2.00.1003031009320.30359@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.23 (X11/20090817)
In the same vein, you still log in, but if you wanted to automate, you could do 
something like:

ssh admin@xxxxxxxx "ps aux | grep someprocessname"

Or, to completely automate it you can set up SSH with certificate based 
authentication between the
dom0 and domU, then you don't even need to enter a password to get the above to 
work (after
unlocking the cert for the session).

I've written a script to do this, which I describe here:

http://www.zanecorp.com/wiki/index.php/SSH_with_Certificates

There's also a link at the bottom to the tutorial which I derived the script 
from which shows you
how to manually set it up.

Nux wrote:
> On Wed, 3 Mar 2010, yashwanth wrote:
> 
>> Dear all,
>>
>>      I wanted to know the processes running inside domU from dom0.
>>      Is it possible? if yes,how to know?
>>
>> Thanks & Regards,
>> Yashwanth
> 
> Hi,
> 
> You must be logged in to it, either via console or ssh and issue a ps
> command.
> I don't think there is other way.
> 
>>
>>
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-users
>>
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
> 


-- 
twitter: zanerock

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

<Prev in Thread] Current Thread [Next in Thread>