Find the process in different server


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Find the process in different server
# 1  
Old 11-19-2009
Find the process in different server

suppose there are in 10 different server
how can i know in which server a process (exSmilieracle )is running
# 2  
Old 11-19-2009
simple way is.,

In each server ...
Code:
ps ax | grep oracle

If network related process, and if you dont want to use ps, then netstat... to find which state it is...

Or you are expecting something else ?!
# 3  
Old 11-19-2009
The reply of thegeek is correct, I just want to add some projects that helps to manage clusters or multiple servers to execute the same commands across multiple servers:

Multixterm

Tentakel

ClusterSSH
# 4  
Old 11-20-2009
Quote:
Originally Posted by thegeek
simple way is.,

In each server ...
Code:
ps ax | grep oracle

If network related process, and if you dont want to use ps, then netstat... to find which state it is...

Or you are expecting something else ?!
there are lots of serveres are there so it is very hectic if i want to check in 100 server .iam expecting some thing else
# 5  
Old 11-20-2009
Quote:
Originally Posted by alokjyotibal
there are lots of serveres are there so it is very hectic if i want to check in 100 server .iam expecting some thing else

Configure the ssh and use ssh id@servername "command"
# 6  
Old 11-20-2009
Quote:
Originally Posted by dennis.jacob
Configure the ssh and use ssh id@servername "command"
can u give me a exemple
# 7  
Old 11-20-2009
Quote:
Originally Posted by alokjyotibal
can u give me a exemple

1. Create an ssh connection using ssh-keygen command
ssh-keygen -t dsa
this will create the private and public keys.
2. Add the pubic key to the authorised_keys2 file in the ~user_id/.ssh/ directory of all servers.(Assuming you are having ssh 2)

3. From the source machine,
ssh user_id@remote_server1 ps -ef | grep "oracle"
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. How to Post in the The UNIX and Linux Forums

Command to find if a server is a VIP or normal server

I have a list of servers which has both VIP and normal server. Is there a command to identify which server is a VIP and which is a normal server? Please help. (1 Reply)
Discussion started by: Usha Rajesh
1 Replies

2. Programming

Find parent process (not process ID)

Hi: I have a program written in FORTRAN running on AIX platform. It is because missing of documentation and without root password, therefore we want to modify the program so that we can find out which script/program that call this FORTRAN program. I have google for few days, all of them are... (3 Replies)
Discussion started by: cstsang
3 Replies

3. Shell Programming and Scripting

server process id

Hi Guys, I am running RHEL 2.6.18-164.el5. How do I get the information of the process id that was running yesterday? I do have the process id (9520), but i need more info as to what was this process doing. Thanks, Please Help!!!!!!!!!!!! (2 Replies)
Discussion started by: Phuti
2 Replies

4. UNIX for Dummies Questions & Answers

Help in server building process.

Hi, I am fresher in Unix and hence need your help in understanding the basic concepts in Server Building. Please guide me with the next steps in building our own server after Assembling hardware and installing OS. (1 Reply)
Discussion started by: laxmi Sharma
1 Replies

5. UNIX for Dummies Questions & Answers

Process on distant server

Hello, I have a question regarding how to manage a process on a distant unix server. I perform calculations on a dedicated Unix server (RedHat ELS5.5) using Matlab (installed on the server). The commands are written in a terminal session (via ssh) on my laptop (MacBook Pro6,2 - MacOS X 10.6.7).... (1 Reply)
Discussion started by: antonino_ch
1 Replies

6. Linux

Find out process that crashed the server

Hi everybody, I want to find out all the processes that ran before a server crashed. Is that possible? I've looked in /var/log/messages and found out that the system was out of memory. A user probably wrote a script (in Perl or Python) that used up all available memory and crashed the... (11 Replies)
Discussion started by: z1dane
11 Replies

7. Shell Programming and Scripting

script to monitor process running on server and posting a mail if any process is dead

Hello all, I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted. Thanks in advance Regards, pradeep kulkarni. :mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies

8. Solaris

How to find the process that is using the port 80 and apache server.

How to find the process that is using the port 80 and apache server. When i used the command 'netstat -a|grep 80' it given that port 80 is in listening mode. I had used the following command: telnet localhost 80 GET / I had got some HTML script. But when I accessed the GUI ( url is... (7 Replies)
Discussion started by: vamshikrishnab
7 Replies

9. Solaris

Need to find whether my unix server is a stand alone server or its in a cluster

Hi All, Could any one pls tell me how to find whether a unix server is a stand alone server or its in a cluster. I need a command through which i can find whether the unix m/c is clustered or not. Thanx in advance Regards, Naveen (1 Reply)
Discussion started by: Naveen Kumar V
1 Replies

10. Shell Programming and Scripting

how to find the chid process id from given parent process id

how to find the chid process id from given parent process id.... (the chid process doesnot have sub processes inturn) (3 Replies)
Discussion started by: guhas
3 Replies
Login or Register to Ask a Question