|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
selecting appropriate trace output |
« View previous topic :: View next topic » |
Author |
Message
|
ivanachukapawn |
Posted: Thu Mar 19, 2015 11:46 am Post subject: selecting appropriate trace output |
|
|
 Knight
Joined: 27 Oct 2003 Posts: 561
|
I'm relying on command documentation for strmqtrc on a Linux MQ7.5.0.4 system. My objective is to get detail about client applications' connection attempts - I am considering:
strmqtrc -m QMGRNAME -t api
do you think this command will yield enough information for determining what was supplied by the client application on the connection attempt? |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Mar 19, 2015 12:04 pm Post subject: Re: selecting appropriate trace output |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
ivanachukapawn wrote: |
I'm relying on command documentation for strmqtrc on a Linux MQ7.5.0.4 system. My objective is to get detail about client applications' connection attempts - I am considering:
strmqtrc -m QMGRNAME -t api
do you think this command will yield enough information for determining what was supplied by the client application on the connection attempt? |
What are you trying to do? The error logs on the server side should have nice information on failed connection attempts. If you need to look at successful attempts you may indeed need to trace... Have you thought about the activity trace? It should be far less invasive than the qmgr trace... and can be limited to a specific application...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
ivanachukapawn |
Posted: Thu Mar 19, 2015 12:19 pm Post subject: |
|
|
 Knight
Joined: 27 Oct 2003 Posts: 561
|
FJB
trying to find out what data (like userID) supplied on a connection attempt over a SVRCONN. These are successful attempts. Not worried about invasiveness. I tried -m qmgrname -t api option and then connected my own ID using M071; Don't see my userID in the trace. |
|
Back to top |
|
 |
tczielke |
Posted: Thu Mar 19, 2015 12:35 pm Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
You should definitely look at the Application Activity Trace. You can get the MQCD (channel descriptor) that is negotiated between the CLNTCONN and SVRCONN channel (you might need to have TraceLevel=HIGH). It will be a raw hex dump, but here are the field/offsets, in case you are interested.
Code: |
Layout of a MQCD structure for a 64 bit queue manager (i.e. MQPTR = 8 bytes).
Server was x86, so MQLONG binary integer fields like ChannelType are in little endian (little byte in lowest address) and need to be byte reversed to read properly. (i.e 07 (byte 1) 00 (byte 2) 00 (byte 3) 00 (byte 4) needs to be byte reversed = 00 (byte 4) 00 (byte 3) 00 (byte 2) 07 (byte 1) = 7.
MQCD Structure:
00000000: 434C 4945 4E54 2E54 4F2E 5345 5256 4552 'CLIENT.TO.SERVER'
ChannelName (+0 for 20) = 'CLIENT.TO.SERVER '
00000010: 2020 2020 0000 0000 0700 0000 0200 0000 ' ............'
Version (+14 for 4) = 0
ChannelType (+18 for 4) = 7 (MQCHT_SVRCONN)
TransportType (+1C for 4) = 2 (MQXPT_TCP)
00000020: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
Desc (+20 for 64)
00000030: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000040: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000050: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000060: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
QMgrName (+60 for 48)
00000070: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000080: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000090: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
XmitQName (+90 for 48)
000000A0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
000000B0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
000000C0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
ShortConnectionName (+C0 for 20)
000000D0: 0000 0000 2020 2020 2020 2020 2020 2020 '.... '
MCAName (+D4 for 20)
000000E0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
ModeName (+E8 for 8)
000000F0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
TpName (+F0 for 64)
00000100: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000110: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000120: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000130: 3200 0000 0000 0000 0A00 0000 3C00 0000 '2...........<...'
BatchSize (+130 for 4) = 50 = x'32'
DiscInterval (+134 for 4) = 0
ShortRetryCount (+138 for 4) = 10 = x'A'
ShortRetryInterval (+13C for 4) = 60 = x'3C'
00000140: FFC9 9A3B B004 0000 2020 2020 2020 2020 '...;.... '
LongRetryCount (+140 for 4) = 999,999,999 = x'3B9AC9FF'
LongRetryInterval (+144 for 4) = 1,200 = x'4B0'
SecurityExit (+148 for 128)
00000150: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000160: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000170: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000180: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000190: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
000001A0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
000001B0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
000001C0: 2020 2020 2020 2020 0000 0000 0000 0000 ' ........'
MsgExit (+1C8 for 128)
000001D0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000001E0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000001F0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000200: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000210: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000220: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000230: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000240: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
SendExit (+248 for 128)
00000250: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000260: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000270: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000280: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000290: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000002A0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000002B0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000002C0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
ReceiveExit (+2C8 for 128)
000002D0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000002E0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000002F0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000300: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000310: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000320: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000330: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000340: 0000 0000 0000 0000 FFC9 9A3B A086 0100 '...........;....'
SeqNumberWrap (+348 for 4) = 999,999,999 = x'3B9AC9FF'
MaxMsgLgth (+34C for 4) = 100,000 = x'186A0'
00000350: 0100 0000 0000 0000 2020 2020 2020 2020 '........ '
PutAuthority (+350 for 4) = 1
DataConversion (+354 for 4) = 0
SecurityUserData (+358 for 32)
00000360: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000370: 2020 2020 2020 2020 0000 0000 0000 0000 ' ........'
MsgUserData (+378 for 32)
00000380: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000390: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
SendUserData (+398 for 32)
000003A0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000003B0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
ReceiveUserData (+3B8 for 32)
000003C0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000003D0: 0000 0000 0000 0000 2020 2020 2020 2020 '........ '
UserIdentifier (+3D8 for 12)
000003E0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
Password (+3E4 for 12)
000003F0: 0000 0000 0000 0000 0000 0000 0100 0000 '................'
MCAUserIdentifier (+3F0 for 12)
MCAType (+3FC for 4) = 1
00000400: 3132 372E 302E 302E 3100 0000 0000 0000 '127.0.0.1.......'
ConnectionName (+400 for 264)
00000410: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000420: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000430: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000440: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000450: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000460: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000470: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000480: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000490: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000004A0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000004B0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000004C0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000004D0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000004E0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000004F0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000500: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
RemoteUserIdentifier (+508 for 12)
00000510: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
RemotePassword (+514 for 12)
00000520: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
MsgRetryExit (+520 for 128)
00000530: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000540: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000550: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000560: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000570: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000580: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000590: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
MsgRetryUserData (+590 for 32)
000005A0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
000005B0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
000005C0: 0A00 0000 E803 0000 2C01 0000 0000 0000 '........,.......'
MsgRetryCount (+5C0 for 4) = 10 = x'A'
MsgRetryInterval (+5C4 for 4) = 1,000 = x'3E8'
HeartBeatInterval (+5C8 for 4) = 300 = x'12C'
BatchInterval (+5CC for 4) = 0
000005D0: 0200 0000 0000 0000 0000 0000 0000 0000 '................'
NonPersistentMsgSpeed (+5D0 for 4) = 2
SrucLentgh (+5D4 for 4)
ExitNameLength (+5D8 for 4)
ExitDataLength (+5DC for 4)
000005E0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
MsgExitsDefined (+5E0 for 4)
SendExitsDefined (+5E4 for 4)
ReceiveExistDefined (+5E8 for 4)
+5EC has structure padding of 4 bytes to align next 8 byte pointer!
000005F0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
MsgExitPtr (+5F0 for 8)
MsgUserDataPtr (+5F8 for 8)
00000600: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
SendExitPtr (+600 for 8)
SendUserDataPtr (+608 for 8)
00000610: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
ReceiveExitPtr (+610 for 8)
ReceiveUserDataPtr (+618 for 8)
00000620: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
ClusterPtr (+620 for 8)
ClustersDefined (+628 for 4)
NetworkPriority (+62C for 4)
00000630: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
LongMCAUserIdLength (+630 for 4)
LongRemoteUserIdLength (+634 for 4)
LongMCAUserIdPtr (+638 for 8)
LongRemoteUserIdPtr (+63C for 8)
00000640: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
LongRemoteUserIdPtr (+640 for 8)
MCASecurityId (+648 for 40)
00000650: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000660: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000670: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
RemoteSecurityId (+670 for 40)
00000680: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000690: 0000 0000 0000 0000 2020 2020 2020 2020 '........ '
SSLCipherSpec (+698 for 32)
000006A0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
000006B0: 2020 2020 2020 2020 0000 0000 0000 0000 ' ........'
SSLPeerNamePtr (+6B8 for 8)
000006C0: 3400 0000 0000 0000 FFFF FFFF 2020 2020 '4........... '
SSLPeerNameLength (+6C0 for 4) = 52 = x'34'
SSLClientAuth (+6C4 for 4) = 0
KeepAliveInterval (+6C8 for 4) = -1 = x'FFFFFFFF'
LocalAddress (+6CC for 48)
000006D0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
000006E0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
000006F0: 2020 2020 2020 2020 2020 2020 0000 0000 ' ....'
BatchHeartbeat (+6FC for 4) = 0
00000700: 0000 0000 FFFF FFFF 0000 0000 FFFF FFFF '................'
HdrCompList (+700 for 4) = 0
MsgCompList (+704 for 4) = -1 = x'FFFFFFFF'
CLWLChannelRank (+708 for 4) = 0
CLWLChannelPriority (+70C for 4) = -1 = x'FFFFFFFF'
00000710: FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF '................'
CLWLChannelWeight (+710 for 4) = -1 = 'FFFFFFFF'
ChannelMonitoring (+714 for 4) = -1 = 'FFFFFFFF'
ChannelStatistics (+718 for 4) = -1 = 'FFFFFFFF'
SharingConversations (+71C for 4) = -1 = 'FFFFFFFF'
00000720: FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF '................'
PropertyControl (+720 for 4) = -1 = 'FFFFFFFF'
MaxInstances (+724 for 4) = -1 = 'FFFFFFFF'
MaxInstacnesPerClient (+728 for 4) = -1 = 'FFFFFFFF'
ClientChannelWeight (+72C for 4) = -1 = 'FFFFFFFF'
00000730: FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF '................'
ConnectionAffinity (+730 for 4) = -1 = 'FFFFFFFF'
BatchDataLimit (+734 for 4) = -1 = 'FFFFFFFF'
UseDLQ (+738 for 4) = -1 = 'FFFFFFFF'
DefReconnect (+73C for 4) = -1 = 'FFFFFFFF'
00000740: FFFF FFFF FFFF FFFF 0000 0000 0000 0000 '................'
CertificateLabel (+740 for 64)
00000750: 3200 0000 FDFF FFFF FDFF FFFF 0A00 0000 '2...............'
00000760: 0000 0000 FFC9 9A3B FFC9 9A3B 0000 0000 '.......;...;....'
00000770: 0100 0000 8813 0000 0200 0000 0000 0000 '................'
|
_________________ Working with MQ since 2010. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|