<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>hi ,</FONT></DIV>
<DIV><FONT face=Arial size=2>     I had gone through the 
previous answers with the same subject as mentioned above but my problem is a 
little bit different .</FONT></DIV>
<DIV><FONT face=Arial size=2>        
I too wana know the nodes which are in cluster  ..but the cluster are 
on the different machines. </FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2>      Executing the 
following code will return me only the nodes that are clustered on a single 
machine . Is there any way by which i can get the names of all the nodes that 
are clustered on other machine along with my machine nodes.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>private static final int epmdPort = 
4369;<BR>private static final byte names4req = (byte) 110;<BR>private static int 
traceLevel = 0;<BR>private static final int traceThreshold = 4;</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>Socket s = null;</DIV>
<DIV> </DIV>
<DIV>try {<BR>final OtpOutputStream obuf = new OtpOutputStream();<BR>s = new 
Socket(InetAddress.getLocalHost(), 
epmdPort);<BR>obuf.write2BE(1);<BR>obuf.write1(names4req);<BR>// send 
request<BR>obuf.writeTo(s.getOutputStream());<BR>if (traceLevel >= 
traceThreshold) {<BR>System.out.println("-> NAMES (r4) ");</DIV>
<DIV> </DIV>
<DIV>// get reply<BR>final byte[] buffer = new byte[256];<BR>final 
ByteArrayOutputStream out = new ByteArrayOutputStream(256);<BR>while (true) 
{<BR>final int bytesRead = s.getInputStream().read(buffer);</DIV>
<DIV> </DIV>
<DIV>if (bytesRead == -1) {<BR>break;<BR>}<BR>out.write(buffer, 0, 
bytesRead);<BR>}</DIV>
<DIV> </DIV>
<DIV>final byte[] tmpbuf = out.toByteArray();<BR>final OtpInputStream ibuf = new 
OtpInputStream(tmpbuf);<BR>ibuf.read4BE(); // read port int<BR>final int n = 
tmpbuf.length;<BR>final byte[] buf = new byte[n - 
4];<BR>System.arraycopy(tmpbuf, 4, buf, 0, n - 4);<BR>final String all = new 
String(buf);</DIV>
<DIV> </DIV>
<DIV>return all.split("\n"); </DIV>
<DIV> </DIV>
<DIV></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks and Regards,<BR>Siddharth 
Pareek</FONT></DIV></BODY></HTML>