Need help with viewing process on another server


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Need help with viewing process on another server
# 1  
Old 12-01-2008
Need help with viewing process on another server

Greetings everyone,

I am new to the unix environment and I need help with my question below.

I need to monitor certain critical processes on several servers and we have scripts that will grep and display those we need to monitor but we need to open new PuTTy sessions to each server in order to do that.

I would like to know if I could open only one PuTTy session in one of the server and somehow run scripts on the other servers then display the output in that one PuTTy session.

Thank you all for your kind assistance.
# 2  
Old 12-01-2008
Using ssh with key-based authentication, you could run a command like this from one system on the others w/o a password:

ssh username@hostname command option1 option2 etc.
# 3  
Old 12-03-2008
Thank you jimbalaya for your suggestion but unfortunately it did not work. I was prompting for the password.

Anyway I have managed to a telnet script and run the grep command then exit successfully.

Now I have 2 other questions, would telnetting to the server every 30 seconds or so impact the server performance and is there a way to suppress the screen output except for grep command output?

Thanks again for your assistance.
# 4  
Old 12-03-2008
Follow jimbalaya's suggestion: use ssh and read the manuals !
to use ssh without passwd requires a few tasks (like copying keys...)
Or you could use once on one server rcommands like rcp but here also it requires some configuration in order to not have to enter passwd...
The easiest of course would be a cron job on each server that writes to a log on a same NFS mounted directory...
# 5  
Old 12-04-2008
I totally agree with vbe and jimbalaya

What you are currently doing may be a work around .. but not a proper and reliable solution.. configuring ssh is far easier and effective ...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script for viewing multiple logs from multiple server

I am new to Shell scripting and below is my requirement. I need to search some specific word e.g. "exception" or "transaction" from log file. We have multiple env e.g. Level1 , Level2 etc and each env have Multiple boxes e.g. For Level 1 env we have "test11.test.com" , "test12.test.com". Each... (1 Reply)
Discussion started by: peeyush
1 Replies

2. 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

3. 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

4. UNIX for Dummies Questions & Answers

Killing a process which is running in different server

Consider two servers tst01 and tst02. i need to log in tst01 and check for the processes which run in tst02. then based on pid , i need to kill that process. is it possible to achieve? I am able to connect to tst02 using ftp. But the problem is, if i use ps it says invalid command. ... (3 Replies)
Discussion started by: pandeesh
3 Replies

5. HP-UX

BOGGLED!! User information incorrect when viewing "ps" Process Status

Hello Anyone: I have run into an issue that I have never seen or heard of. Recently on a specific server I have encountered a random issue that I've not been able to repliate on demand... When I view the processes status of a certain process, the information returned to the screen has a... (2 Replies)
Discussion started by: DEN1022
2 Replies

6. 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

7. 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

8. Shell Programming and Scripting

Find the process in different server

suppose there are in 10 different server how can i know in which server a process (ex:oracle )is running (6 Replies)
Discussion started by: alokjyotibal
6 Replies

9. 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

10. UNIX for Dummies Questions & Answers

Viewing files of another unix server (in a folder)

I think that's what I'm trying to do. This is the problem: I log onto my comp, Comp1. Then, from the terminal, since my web server is on another comp, I type: xrlogin Comp2, so I log on to that computer. I then navigate to my directory by typing: cd /domain/myDir, so I am in my directory, on the... (3 Replies)
Discussion started by: Djaunl
3 Replies
Login or Register to Ask a Question