Устанавливаю APO Optimizer. Там надо настроить TCP/IP RFC соединение. Вроде делаю все как описано, но connection test не проходит. В чем может быть дело?
Не заню, какая инфа может быть полезна. Я к connection поставил set RFC trace и вот что в журнале SMGW появилось:
Code:
*** found trace flag (2) in appc header ***
GwReadSapWpRq: request: request from sap wp 1
-IN- tid 17 uid 21 mode 0
-IN- appc_ca_blk 15 len 375 rq_id 45808
-IN- wait_f_answ 1 cmd 0
GwReadSapWpRq2: wp 1 waits for data
Adresse Offset Appc-Data to Gateway
0000000010189700 000000 06ca0600 0015ffff 00000102 00000000 ................
0000000010189710 000016 40ffffff ff000000 00000000 00008500 @...............
0000000010189720 000032 00000000 00000000 00000000 00000000 ................
0000000010189730 000048 4f505453 45525645 73757065 72736b69 OPTSERVEsuperski
0000000010189740 000064 653a5c61 706f6f70 46020000 0000ffff e:\apoopF.......
DpGetCpicCommIdx: found index 0 via appc_hdr
found comm entry 0 (tid/uid/mode/conv_id/a_r: 17/21/0/ /0)
GwInitLocCommAdmEntry: init gw_comm_adm entry 0
GwListRemove: elem 0 not in comm_write_list
GwListRemove: elem 0 not in comm_wait_list
GwInitLocCommAdmEntry: 0 waiting writes to rem gw
GwSearch: connect to myself
GwFoundSysAddr: found addr
GwFoundWaitingAddr: found addr
GwSendToRemGw: request for myself (len=375)
GwGetMemory: allocated 0000000010A7A0B0 (len=563)
GwGetMemory: act_overflow_size = 563 (+ 563)
REL APPC ca_blk 15
GwSendToRemGw: comp req = adr/total/alloc/hdr/param_hdr/data 0000000010A7A0B0/563/563/80/295/0
IN:
ReqType : CPIC SysIdx : 0 ReqLen : 80 ReqId : 83
CommIdx : 0 ConnIdx : -1 ReqVer : 6 Trace : 2
conn : -1 wp_no : -1 ReqBlk : -1
RqType : SAP_INIT Prot : NE UID : 21 Mode : 0
User : SapRc : 0 AppcRc : 0 ConvId :
Vector :
Info : SYNC_CPIC_FUNCTION WITH_GW_SAP_PARAMS_HDR R3_CPIC_LOGIN_WITH_TERM
Info2 : WITH_LONG_LU_NAME
Info3 : GW_EXTENDED_INIT_OPTIONS
LU : superski TP : e:\apoop CType : F Cli Info: R3_CLIENT
Sec Usr : SecUsrLn: 0 Sec Type: 0
long TP : e:\apoopt\snp\bin\snpopsvr.exe
long LU : superskin
GwUpdConvStatistik: conv_no/tcp_conv_no/sna_conv_no: 1/1/0
GwGetConnEntry: found conn 0 in free list
GwListRemove: remove elem 0 from conn_free_list
GwListRemove: 499 elems in conn_free_list
GwListInsert: insert elem 0 into conn_inuse_list (at end)
GwListInsert: 1 elems in conn_inuse_list
GwIHandleRq: new conn_tbl index: 0
GwIHandleRq: increment conv_no of client 0: 1
GwIHandleRq: own_index: 0
GwIHandleRq: set act rq type SAP_INIT
R3INIT(0, cpic_vector=1)
GwMkTimeStamp: create conversation id 59784921
GwFiCreateConvId: created 59784921
R3INIT: received extended init options
timeout = -2
keepalive_timeout = -2
export_trace = 1
start_type = 0
net_protocol = 0
local_addr = 0:0:0:0:0:0:0:0
R3INIT: use extended init options
timeout = 20
keepalive_timeout = 300
export_trace = 1
start_type = 1
start cmd = rsh
net_protocol = 0
local_addr = 0:0:0:0:0:0:0:0
GwBufInit: initialize buffer info for conn 0
R3ALLC(59784921, cpic_vector=1, ..)
I am the client (0)
GwICheckSecInfo: check tp=e:\apoopt\snp\bin\snpopsvr.exe, user=LEVON , host=*, addr=192.168.25.25
GwICheckSecInfo: check entry [1] tp=*, lu=*
GwICheckSecInfo: entry found, finish search, access=PERMIT
R3ALLC: wait for connect
NiHsLGetNodeAddr: found hostname 'superskin' in cache
NiIGetNodeAddr: hostname 'superskin' = addr 192.168.25.25
R3ALLC: generated Partner-Host-Addr: 192.168.25.25
GwListInsert: insert elem 0 into conn_search_list (at begin)
GwListInsert: 1 elems in conn_search_list
GwSetCPICState: state of conn/index 0/0: SEND
GwSendToClient: send data to conn/target/client 0/0/0
GwSendToClient: ErrInfo set without error
OUT:
ReqType : CPIC SysIdx : 0 ReqLen : 80 ReqId : 83
CommIdx : 0 ConnIdx : 0 ReqVer : 6 Trace : 2
conn : 0 wp_no : -1 ReqBlk : -1
RqType : SAP_INIT Prot : NE UID : 21 Mode : 0
User : SapRc : 0 AppcRc : 0 ConvId : 59784921
Vector :
Info : SYNC_CPIC_FUNCTION WITH_GW_SAP_PARAMS_HDR R3_CPIC_LOGIN_WITH_TERM
Info2 : WITH_LONG_LU_NAME
Info3 : GW_EXTENDED_INIT_OPTIONS
GwRqDpSendTo: (superskin / sapgw01, gw_id=0, appc_ca_blk=-1, len=80, comm_index=-1)
LOCK APPC ca_blk 5
DpGetCpicCommIdx: found index 0 via appc_hdr
found comm entry 0 (tid/uid/mode/conv_id/a_r: 17/21/0/ /0)
GwIsAWaitingSWP: wp 1 waiting
GwSapWpWakeUp: send answer to sap wp 1
GwSapWpWakeUp: make wp 1 owner of appc_ca_blk 5
-OUT- tid -1 uid -1 mode 255
-OUT- appc_ca_blk 5 len 80 rq_id 1740
-OUT- wait_f_answ 0 cmd 0
NiIWrite: hdl 4 sent data (wrt=28,pac=1,MESG_IO)
GwFreeMemory: free 0000000010A7A0B0 (len=563)
GwFreeMemory: act_overflow_size = 0 (- 563)
*** trace switched off ***
*** trace for connection 0 enabled ***
GwIHandleRq: own_index: 0
GwIHandleRq: set act rq type SAP_SEND
R3SEND(59784921, cpic_vector=1, ..)
I am the client (0)
GwBufInsert: insert data/status for conn/target 0/1, req_block_no: -1
GwBufInsert: insert data
GwBufInsert: use_req_block_addr (0000000010A7A0B0, len=1136)
GwBufInsert: (after insert): no/old/new: 1/0/0, conn/target: 0/1
R3RCV(59784921, cpic_vector=1, ..)
GwISaveRcv: wait for 28000 bytes
GwISaveRcv: data for partner buffered
R3RCV: state of conn/index 0/0: RECEIVE_WAIT_FOR_DATA
*** trace switched off ***
Sun Feb 21 13:20:56 2010
*** ERROR => GwISearchPartner: timeout, partner LU: >superskin<, TP: >e:\apoopt\snp\bin\snpopsvr.exe< [gwr3cpic.c 6135]
*** ERROR => GwISearchPartner: HOST: superskin, conv ID: 59784921 [gwr3cpic.c 6148]
Нашел похожую тему
http://www.sapboard.ru/forum/viewtopic.php?t=29143, там у коллеги было что то не то с hosts, но тут IP определился правильно - 192.168.25.25.