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
What is the use of sed command in unix?
Using unix command how to display no of records in oracle?
What is sed awk grep?
What is grep in bash?
What is time_t?
What is command statement?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
How do I clear my terminal history?
What is the difference between cat command and more command?
What does the metacharacter mean?
What does sed command do in unix?
How many unix commands are there?
What does the command ' $who | sort –logfile > newfile' do?
How do you repeat a command in terminal?
What difference between cmp and diff commands?