how to check all the applications are in cluster using shell script

Hi
I have an application running in four different node.The server is tomcat.Each node in each tomcat server.How do i check whether all the nodes are in cluster using shell script.

any command to check this would be of great use.:slight_smile:

What OS? What type of cluster? Member of a cluster or up and running?

For member of a cluster you might want to use for your OS the appropriate command to list this information.
If the tomcat is up and running you could check centralized with nmap for example.

Its running in Linux OS.The application are in cluster using oracle coherence. I am writing a script to check whether all are in cluster. cos sometime the application come out of cluster and run as a stand alone application.

its like same application running in four server to equalize the load.