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 is the command to find hidden files in the current directory?

570


Write a command to kill the last background job?

608


Why is it called a shebang?

564


What happens when we execute a unix command?

589


Is command prompt unix?

570






What does the command '$ls | wc –l > file1' do?

672


What is updatedb?

576


How many unix commands are there?

615


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

752


Which command is used to copy files?

547


What do chmod, chown, chgrp commands do?

624


Name the various commands that are used for the user information in unix.

533


What is the command to view process running?

566


how to sort the content of the file based on numeric values

1240


What do know about tee command and its usage?

580