如何从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…


发表评论

邮箱地址不会被公开。 必填项已用*标注