客户端SCO5.0.5
服务端AIX(192.168.11.54)
客户端环境变量:
TUXDIR /usr/tuxedo
LIBPATH /usr/tuxedo/lib
WSNADDR //192.168.11.54:3457
客户端编译:buildclient -w -v -o simpcl -f simpcl.c
服务端:
WSL SRVGRP=MYTEST
SRVID=4
RESTART=Y
MAXGEN=10
GRACE=3600
CLOPT="-A -t -- -n //192.168.11.54:3457 -m 2 -M 15 -x 5"
client与server 间网络通畅
tmboot顺利.
用netstat -a | grep 3457显示如下:
tcp4 0 0 s80.3457 *.* LISTEN
这样是不是就是说端口已经打开了(没在/etc/services里面修改)?
但是客户端在tpinit的时候报错(-6),
ubbconfig:
#ident "@(#) apps/simpapp/ubbsimple $Revision: 1.3 $"
#Skeleton UBBCONFIG file for the TUXEDO Simple Application.
#Replace the <bracketed>; items with the appropriate values.
*RESOURCES
IPCKEY 98765
DOMAINID simpapp
MASTER simple
MAXACCESSERS 200
MAXSERVERS 5
MAXSERVICES 10
MASTER simple
MODEL SHM
LDBAL N
*MACHINES
DEFAULT:
"s80" LMID=simple
APPDIR="/home/jack/test/"
TUXCONFIG="/home/jack/test//tuxconfig"
TUXDIR="/tuxedo/v8_64"
MAXWSCLIENTS=20
ULOGPFX="/home/jack/test//ULOG"
*GROUPS
GROUP1
LMID=simple GRPNO=1 OPENINFO=NONE
MYTEST
LMID=simple GRPNO=40
*SERVERS
DEFAULT:
CLOPT="-A -t --"
simpserv SRVGRP=GROUP1 SRVID=1
WSL SRVGRP=MYTEST
SRVID=4
RESTART=Y
MAXGEN=10
GRACE=3600
CLOPT="-A -t -- -n //192.168.11.54:3457 -m 2 -M 15 -x 5"
*SERVICES
TOUPPER
服务编译:
buildserver -o WSL -f simpserv.c -s TOUPPER
buildserver -o simpserv -f simpserv.c -s TOUPPER
tmboot后:
>; psr
Prog Name Queue Name Grp Name ID RqDone Load Done Current Service
--------- ---------- -------- -- ------ --------- ---------------
BBL 98765 simple 0 0 0 ( IDLE )
simpserv 00001.00001 GROUP1 1 0 0 ( IDLE )
WSL 00040.00004 MYTEST 4 0 0 ( IDLE )
>; psc
Service Name Routine Name Prog Name Grp Name ID Machine # Done Status
------------ ------------ --------- -------- -- ------- ------ ------
TOUPPER TOUPPER simpserv GROUP1 1 simple 0 AVAIL
TOUPPER TOUPPER WSL MYTEST 4 simple 0 AVAIL
--------------------------------------------------------------------------------
ULOG纪录如下:
165706.smart!?proc.23386: LIBWSC_CAT:1027: ERROR: Unable to connect to WSH
165706.smart!?proc.23386: LIBWSC_CAT:1020: ERROR: Unable to obtain authentication level
是不是有什么环境(客户端或者服务端)配置不对呀?