How to check whether some services are running in another
server or not?
Suppose i am currently in a server named A.I want to check
whether some services are running in server B without
logging into the server B.

Answer Posted / rohit kumar

Assuming that server A is reachable from server B and vice
versa:

We can execute the command remotely using rsh and by using
admin credentials of server B as below from server A:

rsh <server B IP> -l <admin login name> -n "ps -eaf | grep -
i <service_name>"

For eg; to find httpd service we can use the following
command assuming server B IP is 10.0.0.10 and root has
admin previledges:

rsh 10.0.0.10 -l root -n "ps -eaf | grep -i httpd"

Is This Answer Correct ?    19 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the unix commands?

557


what is the advaantage of each user having its own copy of the shell?

2034


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

957


Which unix command to make a new directory?

590


How do I search a whole word in vim?

693






What is the command to compare two files in unix?

619


What is the command to view process running?

574


Which command will print your home directory on screen?

546


What does 'mkdir' command do in UNIX?

660


What is the command to find maximum memory taking process on the server?

672


Who command in unix?

573


What is the use of egrep command in unix?

624


How do you grep recursively?

556


What does touch command do in unix?

729


What's a command word?

589