How to test SharePlex can communicate between the source and target.
1) Shutdown SharePlex on source and target as we shall be using the network connection that SharePlex normally uses.
2) On the source cd to $SP_SYS_PRODDIR/util
3) On the source $ ./socket_test server -p <port number for SharePlex>
4) On the target cd to $SP_SYS_PRODDIR/util
5) On the target $ ./socket_test client <IP address of source> <port number for SharePlex>
The output should include the message;
SUCCESSFULLY read/write messages from server
If not then SharePlex will not be able to communicate due to a networking issue. SharePlex requires an open path for TCP and UDP traffic between servers.
In many cases failure of socket_test is due to a firewall. Please refer this to your network administrator.
A sample execution of socket_test follows;
Source
--------
$ ./socket_test server -p 2105
socket_test - version: 1.2
SunOS uksupu01 5.8 Generic_117350-11 sun4u sparc SUNW,Ultra-5_10
Program executing as server..., Tue Jul 26 16:37:43 2005
SP_SYS_HOST_NAME was not set.
server host name: uksupu01
server IP: 10.10.0.150
socket_test server -p 2105
Port Number: 2105
Connected to client
WB(512):ReadWriteCnt = 0, readCnt=0, readBytes=0, writeCnt=0, writeBytes=0
WE:ReadWriteCnt = 1, readCnt=0, totalRBytes=0, writeCnt=1, totalWBytes=512
SE:ReadWriteCnt = 1, readCnt=0, totalRBytes=0, writeCnt=1, totalWBytes=512
Server completed successfully, Tue Jul 26 16:38:02 2005
Program exiting..., Tue Jul 26 16:38:02 2005
$
Target
---------
$ ./socket_test client 10.10.0.150 2105
socket_test - version: 1.2
SunOS uksupu02 5.9 Generic_117171-11 sun4u sparc SUNW,Sun-Blade-100
Program executing as client..., Tue Jul 26 16:37:26 2005
SP_SYS_HOST_NAME was not set.
client host name: uksupu02
client IP: 10.10.0.151
Client is try to connect to.....
Server Host: 10.10.0.150
Server Port: 2105
rb(512):ReadWriteCnt = 0, readCnt=0, readBytes=0, writeCnt=0, writeBytes=0
re:ReadWriteCnt = 1, readCnt=1, totalRBytes=512, writeCnt=0, totalWBytes=0
-m,0,0,-s,0,-l,10000000,-t,0,-r,0,-o,0,-x,0,0,0,0,0,0,
SUCCESSFULLY read/write messages from server
CE:ReadWriteCnt = 1, readCnt=1, totalRBytes=512, writeCnt=0, totalWBytes=0
Client completed successfully, Tue Jul 26 16:37:26 2005
Program exiting..., Tue Jul 26 16:37:26 2005
$