White Papers
Abstract
You want to use the MQ monitoring utility amqsmon to parse the accounting and statistics records, but you want to show only certain attributes in the output.
You understand that you can use the -l parameter to specify the desired attributes, but the utility expects integer numbers and it is not obvious from the documentation, how to find the mapping of the attribute names and their integer numbers.
Content
The online manual shows an example for displaying the Queue accounting fields ConnectionId and ApplicationName:
amqsmon -m saturn.queue.manager -t accounting -b -a -l 7006,3024
amqsmon -m saturn.queue.manager -t accounting -b -a -l 7006,3024
It is necessary to specify integer numbers 7006 and 3024, instead of the names of the attributes.
A sample output from amqsmom is shown below:
ConnectionId: x'414d51435452455631202020202020208d0b374203090020'
ApplicationName: 'runmqsc'
However, the mapping of the attribute ConnectionId to the integer 7006 is not obvious.
Now you want to display the Queue statistics fields QMaxDepth and AvgTimeOnQ and you ask:
How do you find out which integers to use?
How do you find out which integers to use?
The objective of this tutorial is to show you all the steps to find out the mapping.
For illustration purposes, real output data is shown from a queue manager that has been configured to record the statistics and accounting data.
The function of statistics and accounting was introduced many versions ago and thus, it is included in all supported versions of MQ. For illustration purposes, MQ 9.0.5 CD on Windows 10 is being used, but the principles and commands apply to all versions.
The chapters are:
Chapter 1: Configuring a queue manager to record statistics and accounting data
Chapter 2: Information on the utility “amqsmon” from the online manual
Chapter 3: Finding the mapping for ConnectionId (7006) and ApplicationName (3024)
Chapter 4: Finding the mapping for QMAXDETH (?) and AVGTIMEONQ (?)
Chapter 1: Configuring a queue manager to record statistics and accounting data
Chapter 2: Information on the utility “amqsmon” from the online manual
Chapter 3: Finding the mapping for ConnectionId (7006) and ApplicationName (3024)
Chapter 4: Finding the mapping for QMAXDETH (?) and AVGTIMEONQ (?)
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYHRD","label":"IBM MQ"},"ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Was this topic helpful?
Document Information
Modified date:
03 April 2020
UID
ibm16152391