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 does the md command do?

764


What is used to type command?

746


How can you see the command line history?

815


What is in grep command?

843


Which command is used to kill the last background job?

1003


Which command should you use to find the remaining disk space in unix server?

953


What is the difference between grep and grep?

789


What does find command return in unix?

838


What is difference between grep and find command in unix?

828


What is updatedb?

762


Explain command to show the space allocation of files?

831


How do I search for text in vi?

758


How does the system know where one command ends and another begins?

1852


What is ctrl d?

798


What is the use of egrep command in unix?

814