1.使用MQ安装用户登录Linux,例如:su - mqm
2.runmqsc Qm1
#Queue 代表要查询的队列
3.DISPLAY CONN(*) WHERE(OBJNAME EQ Queue)
查询的结果:(说明此刻有两个机器连接队列Queue)
AMQ8276: Display Connection details.
CONN(7CE89C50191E0020)
EXTCONN(414D5143516D31202020202020202020)
TYPE(CONN)
AMQ8276: Display Connection details.
CONN(7CE89C5003BC0020)
EXTCONN(414D5143516D31202020202020202020)
TYPE(CONN)
4.分别查询不同的机器
DISPLAY CONN(7CE89C50191E0020) ALL
查询的结果:(CONNAME(192.168.x.1) 在连接)
AMQ8276: Display Connection details.
CONN(7CE89C50191E0020)
EXTCONN(414D5143516D31202020202020202020)
TYPE(CONN)
PID(17449) TID(54)
APPLTAG(WebSphere MQ Client for Java) APPLTYPE(USER)
ASTATE(STARTED) CHANNEL(CHAN_SERVER_CON)
CONNAME(192.168.x.1)
CONNOPTS(MQCNO_HANDLE_SHARE_BLOCK,MQCNO_SHARED_BINDING)
USERID(mqm) UOWLOG( )
UOWSTDA(2012-11-09) UOWSTTI(19.29.53)
UOWLOGDA( ) UOWLOGTI( )
URTYPE(QMGR)
EXTURID(XA_FORMATID[00000000] XA_GTRID[] XA_BQUAL[])
QMURID(0.130) UOWSTATE(ACTIVE)
DISPLAY CONN(7CE89C5003BC0020) ALL
查询的结果:(CONNAME(192.168.x.2))
AMQ8276: Display Connection details.
CONN(7CE89C5003BC0020)
EXTCONN(414D5143516D31202020202020202020)
TYPE(CONN)
PID(17449) TID(6313)
APPLTAG(WebSphere MQ Client for Java) APPLTYPE(USER)
ASTATE(STARTED) CHANNEL(CHAN_SERVER_CON)
CONNAME(192.168.x.2)
CONNOPTS(MQCNO_HANDLE_SHARE_BLOCK,MQCNO_SHARED_BINDING)
USERID(mqm) UOWLOG( )
UOWSTDA(2012-11-10) UOWSTTI(04.08.11)
UOWLOGDA( ) UOWLOGTI( )
URTYPE(QMGR)
EXTURID(XA_FORMATID[00000000] XA_GTRID[] XA_BQUAL[])
QMURID(0.12671)