Home » Eclipse Projects » DSDP - Target Management » How to get remote process PID
|
Re: How to get remote process PID [message #33265 is a reply to message #33192] |
Thu, 12 March 2009 14:33 |
David McKnight Messages: 244 Registered: July 2009 |
Senior Member |
|
|
Hi Wendy,
There is a process subsystem that can be used depending on the system type
of your host. Which system type are you using?
Once you have a connection that has a process subsystem, the following
IRemoteProcessSubSystem API is available:
/**
* Return a list of all processes on the remote system.
* This version is called directly by users.
* @param processNameFilter filter the results according to this object
* @param context A context object that will be associated with each returned
process
* @param monitor the progress monitor
* @return the list of all processes running on the host machine that
correspond to the filter,
* or null if there are none.
*/
public IRemoteProcess[] listAllProcesses(IHostProcessFilter
processNameFilter, IRemoteProcessContext context, IProgressMonitor monitor)
throws InterruptedException, SystemMessageException;
Dave
"Wendy Zheng" <wezheng@cisco.com> wrote in message
news:65a528e121c02ae41835b4db294cef21$1@www.eclipse.org...
> Hi,
>
> Does RSE SDK provide API to query the remote process PID? If I have IHost
> object, which API can I invoke to query all the processes
> in IHost machine?
> Thank you for sharing.
> Regards,
> Wendy
>
|
|
| | | | | | | |
Re: How to get remote process PID [message #34258 is a reply to message #34188] |
Mon, 06 April 2009 18:04 |
David McKnight Messages: 244 Registered: July 2009 |
Senior Member |
|
|
Hi Wendy,
For your linux system, you may want to create a "Linux" connection (instead
of an SSH Only connection) and configure the services (via the wizard) to
use Sftp, SSH shells and linux shell processes.
For each of your solaris systems, you may need the dstore server to be
installed. In that case, you might use a "Unix" connection and configure
the services (via the wizard) to use the dstore shell processes.
Dave
"Wendy Zheng" <wezheng@cisco.com> wrote in message
news:87c90986f5c0a0be3020e9860cd8dc71$1@www.eclipse.org...
> Hi Dave,
>
> I tried both "SSH - only" and "Unix" system types, they end up in the same
> result.
>
> My goal is to run RSE application from Window or Linux desktop to connect
> to remote Linux host or Solaris host programmatically. Then launch the
> process in the remote host and monitor the process status.
> Will you suggest "dstore service" in this case? Do I need to install
> dstore server in each remote host the application will connect to?
> Besides "dstore service", do I have other choices that my application will
> be able get remote process infomatiion in either Linux or Solaris hosts?
> Thank you!
>
> Regards,
> Wendy
>
>
>
|
|
| |
Re: How to get remote process PID [message #579784 is a reply to message #33192] |
Thu, 12 March 2009 14:33 |
David McKnight Messages: 244 Registered: July 2009 |
Senior Member |
|
|
Hi Wendy,
There is a process subsystem that can be used depending on the system type
of your host. Which system type are you using?
Once you have a connection that has a process subsystem, the following
IRemoteProcessSubSystem API is available:
/**
* Return a list of all processes on the remote system.
* This version is called directly by users.
* @param processNameFilter filter the results according to this object
* @param context A context object that will be associated with each returned
process
* @param monitor the progress monitor
* @return the list of all processes running on the host machine that
correspond to the filter,
* or null if there are none.
*/
public IRemoteProcess[] listAllProcesses(IHostProcessFilter
processNameFilter, IRemoteProcessContext context, IProgressMonitor monitor)
throws InterruptedException, SystemMessageException;
Dave
"Wendy Zheng" <wezheng@cisco.com> wrote in message
news:65a528e121c02ae41835b4db294cef21$1@www.eclipse.org...
> Hi,
>
> Does RSE SDK provide API to query the remote process PID? If I have IHost
> object, which API can I invoke to query all the processes
> in IHost machine?
> Thank you for sharing.
> Regards,
> Wendy
>
|
|
| | | | | | | |
Re: How to get remote process PID [message #580263 is a reply to message #34188] |
Mon, 06 April 2009 18:04 |
David McKnight Messages: 244 Registered: July 2009 |
Senior Member |
|
|
Hi Wendy,
For your linux system, you may want to create a "Linux" connection (instead
of an SSH Only connection) and configure the services (via the wizard) to
use Sftp, SSH shells and linux shell processes.
For each of your solaris systems, you may need the dstore server to be
installed. In that case, you might use a "Unix" connection and configure
the services (via the wizard) to use the dstore shell processes.
Dave
"Wendy Zheng" <wezheng@cisco.com> wrote in message
news:87c90986f5c0a0be3020e9860cd8dc71$1@www.eclipse.org...
> Hi Dave,
>
> I tried both "SSH - only" and "Unix" system types, they end up in the same
> result.
>
> My goal is to run RSE application from Window or Linux desktop to connect
> to remote Linux host or Solaris host programmatically. Then launch the
> process in the remote host and monitor the process status.
> Will you suggest "dstore service" in this case? Do I need to install
> dstore server in each remote host the application will connect to?
> Besides "dstore service", do I have other choices that my application will
> be able get remote process infomatiion in either Linux or Solaris hosts?
> Thank you!
>
> Regards,
> Wendy
>
>
>
|
|
| |
Goto Forum:
Current Time: Thu Sep 19 21:38:28 GMT 2024
Powered by FUDForum. Page generated in 0.05466 seconds
|