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.

Answers were Sorted based on User's Feedback



How to check whether some services are running in another server or not? Suppose i am currently in..

Answer / 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

How to check whether some services are running in another server or not? Suppose i am currently in..

Answer / shh

rsh command
executes command on the specified hostname. To do so, it
must connect to a rshd service (or daemon) on the hostname
machine


rsh [username@]hostname [-DNn] [-l username] command

-D
enables socket debugging on the TCP sockets used for
communication with the remote host. This option also
displays the locuser and remuser being sent to rshd

-l username
specifies the remote user name to be used when executing
the command. This can also be specified by including
username@hostname on the command line


-N
does not generate a separate standard error stream. All
output is sent to standard output. This is useful when you
are running an interactive command


-n
redirects input from the special device /dev/nul.

Is This Answer Correct ?    3 Yes 0 No

How to check whether some services are running in another server or not? Suppose i am currently in..

Answer / sai kiran

ex:
if u r connecting from server B to A

ssh A ls

but make sure that to create a private key for these servers

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Unix Commands Interview Questions

what do you understand by 'unix is a portable os'?

3 Answers   Infosys,


Where LOG fiels resides in AIX and pls tel me how to remove the log file

6 Answers   Vestas,


Assume that a file’s permissions give you read and write access. What operations can you perform on the file if it is in a directory which has “r”(read) only process? What operations can you perform on the file if it is in a directory which has “x”(execute) only access?

1 Answers  


what is tar command and what are the different types of tar commands?

5 Answers  


What's a command word?

0 Answers  


How do I run a bash script?

0 Answers  


Can you write a command to erase all files in the current directory including all its sub-directories?

1 Answers  


Is grep faster than awk?

0 Answers  


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

0 Answers  


What command is used to check the current users?

0 Answers  


What are the differences among a system call, a library function, and a unix command?

0 Answers  


what is the use of "grep" command?

6 Answers   HCL,


Categories