如何從sarpccp show mapping輸出內容找到CICS process/port/transaction信息

如何從sarpccp show mapping輸出內容找到CICS process/port/transaction信息

TXSeries提供SARPC(Stand Alone Remote Procedure Call),它主要用於CICS進程間的RPC通訊。對於每個CICS server進程,都會把它的binding信息註冊到sarpcd中去。因此,通常我們可以通過命令sarpccp show mapping查看RPC bindings,那麼又如何根據它找到對應的CICS processport, 甚至是transaction信息呢?

1. 使用sarpccp show mapping命令查看RPC bindings,例如,CICS application server(簡稱CICSAS) 進程的RPC bindings
  <object>         5d049ffc-cd6a-11e6-b43f-fa461e734520
  <interface id>   004c9bcc-bf17-1bef-b1d9-9e62091c0000,1.0
  <string binding> ncacn_cics_ipc:[1905099608] 
  <annotation> /.:/encina/trpc/52474e3331323238313935383539320000000000000065 –>(0X65/16
進制): CICSAS server annotation, 對應CICSAS ID 101(10進制), 注意: 它不是CICSAS process id(PID)
  <object>         5d049ffc-cd6a-11e6-b43f-fa461e734520
  <interface id>   004c9bcc-bf17-1bef-b1d9-9e62091c0000,1.0
  <string binding> ncacn_ip_tcp:9.112.241.26[10211]                          –>
表示CICSAS進程使用的TCP port ‘10211’
  <annotation>     /.:/encina/trpc/52474e3331323238313935383539320000000000000065
  <object>         5d049ffc-cd6a-11e6-b43f-fa461e734520
  <interface id>   004c9bcc-bf17-1bef-b1d9-9e62091c0000,1.0
  <string binding> ncadg_ip_udp:9.112.241.26[13666]                         –>
表示CICSAS進程使用的UDP port ‘13666’
  <annotation>     /.:/encina/trpc/52474e3331323238313935383539320000000000000065

2.根據CICSAS server annotation獲取對應的CICSAS process id(PID):

# tkadmin query process -server /.:/encina/trpc/52474e3331323238313935383539320000000000000065
10813568      –>
對應的CICSAS process id(PID)
# ps -ef|grep 10813568
   cics 10813568 24510610   0   Dec 28      –  0:13 cicsas RGN3 6291483 101 a0000000 b0000000

3.根據CICSAS server annotation獲取運行在該進程上的交易:
# tkadmin list tran -server  /.:/encina/trpc/52474e3331323238313935383539320000000000000065
     6 active    
然後,根據transaction id(tid) 6獲取交易詳細信息:     
# tkadmin query tran -server /.:/encina/trpc/52474e3331323238313935383539320000000000000065 6
Global identifier:      00000006011752474e3331323238313935383539320000000000000065
State:  active
Originator:     52474e3331323238313935383539320000000000000065 
Participants:   52474e3331323238313935383539320000000000000065
Start time:     Wed Dec 28 19:58:59 CST 2016 

以下文章點擊率最高

Loading…

     

如果這文章對你有幫助,請掃左上角微信支付-支付寶,給於打賞,以助博客運營