|   | 
	 
  
    | 
RSS Feed - WebSphere MQ Support
 | 
RSS Feed - Message Broker Support
 |   
 
  
	     | 
	 | 
   
 
  
	|  The structure of MQ message | 
	« View previous topic :: View next topic »  | 
   
  
  	
	  
		
		
		  | Author | 
		  Message
		 |  
		
		  | claire | 
		  
		    
			  
				 Posted: Thu Jul 01, 2004 4:26 am    Post subject: The structure of MQ message | 
				     | 
			   
			 
		   | 
		 
		
		   Apprentice
 
 Joined: 10 Apr 2002 Posts: 32
  
  | 
		  
		    
			  
				Hello,
 
 
   I use iptrace(iptrace -i lo0 -a -b /tmp/iptrace.out) on AIX to trace the MQ message traffic, and the result is as following:
 
 
IP:  	< SRC =       127.0.0.1 >  (loopback)
 
IP:  	< DST =       127.0.0.1 >  (loopback)
 
IP:  	ip_v=4, ip_hl=20, ip_tos=0, ip_len=532, ip_id=38528, ip_off=0
 
IP:  	ip_ttl=60, ip_sum=0, ip_p = 6 (TCP)
 
TCP: 	<source port=1414(MQSeries), destination port=60027 >
 
TCP: 	th_seq=ab39cc24, th_ack=ed1914e9
 
TCP: 	th_off=5, flags<PUSH | ACK>
 
TCP: 	th_win=65535, th_sum=0, th_urp=0
 
TCP: 00000000     54534820 000001ec 01953000 00000000     |TSH ......0.....|
 
TCP: 00000010     00000000 00000111 03b60000 000001ec     |................|
 
TCP: 00000020     00000002 000007f1 200d15c8 4d442020     |........ ...MD  |
 
TCP: 00000030     00000002 00000003 00000008 ffffffff     |................|
 
TCP: 00000040     00000000 00000111 000003b6 4d514852     |............MQHR|
 
TCP: 00000050     46322020 00000004 00000001 00000000     |F2  ............|
 
TCP: 00000060     00000000 00000000 00000000 00000000     |................|
 
TCP: ********
 
TCP: 00000090     4541492e 5253312e 31202020 20202020     |EAI.RS1.1       |
 
TCP: 000000a0     20202020 20202020 20202020 20202020     |                |
 
TCP: ********
 
TCP: 000000c0     4d514541 49542020 20202020 20202020     |MQEAIT          |
 
TCP: 000000d0     20202020 20202020 20202020 20202020     |                |
 
TCP: ********
 
TCP: 000000f0     6d716d20 20202020 20202020 00000000     |mqm         ....|
 
TCP: 00000100     00000000 00000000 00000000 00000000     |................|
 
TCP: 00000110     00000000 00000000 00000000 20202020     |............    |
 
TCP: 00000120     20202020 20202020 20202020 20202020     |                |
 
TCP: 00000130     20202020 20202020 20202020 0000001c     |            ....|
 
TCP: 00000140     20202020 20202020 20202020 20202020     |                |
 
TCP: ********
 
TCP: 00000170     00000000 00000000 00000000 00000000     |................|
 
TCP: 00000180     00000000 00000000 00000001 00000000     |................|
 
TCP: 00000190     00000000 ffffffff 474d4f20 00000002     |........GMO ....|
 
TCP: 000001a0     00003001 00001388 00000000 00000000     |..0.............|
 
TCP: 000001b0     00000000 00000000 00000000 00000000     |................|
 
TCP: ********
 
TCP: 000001e0     00000003 20202000 00001000              |....   .....    |
 
 
 
 
Where is the message id of MQ message? Thanks  a lot. | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | bower5932 | 
		  
		    
			  
				 Posted: Thu Jul 01, 2004 5:34 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    Jedi Knight
 
 Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA 
  | 
		  
		    
			  
				If you are looking for the message id, I'd suggest that you try looking at it with amqsbcg (or another browsing type of tool).
 
 
If you are going to try and sniff it off of the wire, I'd suggest that you look for the MQMD (see cmqc.h).  You can look for the eyecatcher and work your way down to where the message id is in the structure. | 
			   
			 
		   | 
		 
		
		  | 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
  | 
  		 
	   
	 | 
   
 
  	 | 
	  |