How to activity trace the MO71 application

MO71 utilises the MQCNO_ACTIVITY_TRACE_DISABLED option so that while using it to view activity trace records, you are not also generating even more! This is of course, only honoured if the queue manager allows it which is controlled by the queue manager attribute ACTVCONO. So in addition, the MO71 Activity trace viewer also has some quick check boxes to hide from view all its records should they be generated.

Inspect MO71What if you want to see the activity trace for MO71 though? For example if you want to trace the API Exerciser?

There are two ways to over-ride the use of MQCNO_ACTIVITY_TRACE_DISABLED. One is to use the following command (which applies the over-ride to all applications that have specified it).

ALTER QMGR ACTVCONO(DISABLED)

The other is to add a stanza like the following to your queue manager’s mqat.ini file. Remember if MO71 is already connected, you can make an alteration to the queue manager object to get it to pick up the new mqat.ini file or just disconnect and reconnect to the queue manager to pick it up.

# Turn on tracing for MO71
ApplicationTrace:
  ApplName=mqmonntp.exe
  Trace=ON

Now looking at the Activity Trace window, on the “Settings” tab, uncheck “Exclude this process” so you can see records from this process ID, and also “Exclude MO71 processes” which just causes the filtering for the “Output” tab to hide any records that come from any “mqmonntp.exe”. Remember to press Apply Settings once you’ve made these and any other filtering changes.

Activity Trace Settings Exclude Checkboxes

Activity Trace Settings Page – Check boxes to exclude MO71 trace records

Note: With these two check boxes, you could run one instance of MO71 to view the Activity Trace records, and a second instance of MO71 doing the activity you want to trace, for example using the API Exerciser, then you could leave “Exclude this process” checked and only uncheck “Exclude MO71 processes”.

It may also be wise to turn off any automatic operations that are being done by MO71, such as exporting objects on a scheduled time interval, which would generate a lot of activity from MO71 in the trace.

Then you’ll be able to see any API calls made by the MO71 application, for example:-

13:38:35   8220( 21) [   85us] C:\MQGem\mqmonntp.exe MQOPEN INPUT.Q 
MQOPEN(
   Connection Id:414D51434D514731202020202020202027E1F55920005205
   Hobj         :8 QUEUE(MQG1/INPUT.Q)
   Open Options :00000010
                 00000010 MQOO_OUTPUT                    (Output)
   Dynamic Queue:AMQ.*
   CompCode     :0    
   Reason       :0     OK.
  )

Other resources that you may find useful about Activity Tracing.

Advertisements

MQGem Monthly (October 2017)

MQGem Monthly Banner
VOLUME III. – No. 10. TUESDAY, 31 OCTOBER, 2017 PRICE: FREE

Welcome to the October edition of the MQGem Monthly Newsletter, bringing you company news from MQGem Software, information about the MO71, MQSCX, MQEdit, and QLOAD products, and interesting articles about IBM MQ.

News

This month IBM announced the latest Continuous Delivery (CD) release of IBM MQ V9 and an update to the MQ Appliance. MQ V9.0.4 will be available for download on 6th November. Read more here.

Interesting IBM MQ links

Here are a few links that caught our eye this month.

We share all the above links on our Twitter feed and Facebook page so if you don’t want to wait until the end-of-month newsletter, follow us on there.

Upcoming events

There are a number of conference events where IBM MQ will be featured in the coming months. Hopefully you’ll be able to sign up to one near you and obtain some MQ technical education.

Upcoming online events

If you’re unable to get to any “in-person” events, then these online webcasts are just what you need.

Product Info

This months highlighted product information is a video which introduces the MO71 product.

IBM MQ Latest Maintenance

Make sure you’re on the latest maintenance level of your version of IBM MQ. These are the latest Fix Packs at the time of going to press. Check here for the latest versions now, and here for the planned dates for the next ones.

Handy IBM MQ Resources

If you have a question about IBM MQ that you can’t find the answer to, these resources are good places to ask your question.

Contact Information

MQGem wishes you a Spooky Halloween. We’d love to hear from you. Get in touch by email or follow us on one of our social media channels.
EmailFacebookTwitterLinkedInYouTubeWordPress

← Previous Newsletter

IBM MQ and MQ Appliance News – October 2017

On Tuesday October 24th, IBM Hursley announced the next in the series of Continuous Delivery releases for IBM MQ V9.0 and the MQ Appliance. IBM MQ V9.0.4 was made available on November 6th.

Here are the various announcement letters:-

Links of interest:-


We’ll collect up any other links about the new release as we find them and put them all here.

MQGem Monthly (September 2017)

MQGem Monthly Banner
VOLUME III. – No. 9. FRIDAY, 29 SEPTEMBER, 2017 PRICE: FREE

Welcome to the September edition of the MQGem Monthly Newsletter, bringing you company news from MQGem Software, information about the MO71, MQSCX, MQEdit, and QLOAD products, and interesting articles about IBM MQ.

News

A minor update was made to MO71 to provide a preference option to cause compare dialogs to use all attributes including InhibitGet and Trigger (which change a lot).

We’ve just been to the MQTCv2.0.1.7 Conference, the only dedicated IBM MQ Conference. Paul and Morag were both there as speakers and with an MQGem booth in the Sponsor Pavilion. Read more here.

Interesting IBM MQ links

Here are a few links that caught our eye this month.

We share all the above links on our Twitter feed and Facebook page so if you don’t want to wait until the end-of-month newsletter, follow us on there.

Upcoming events

There are a number of conference events where IBM MQ will be featured in the coming months. Hopefully you’ll be able to sign up to one near you and obtain some MQ technical education.

Product Info

This months highlighted product information is an article to show you how to use MO71 to generate emailed alerts whenever an interesting event happens.
MO71 Monitor Tab

IBM MQ Latest Maintenance

Make sure you’re on the latest maintenance level of your version of IBM MQ. These are the latest Fix Packs at the time of going to press. Check here for the latest versions now, and here for the planned dates for the next ones.

Contact Information

MQGem enjoyed the MQTCv2.0.1.7 conference. Were you there? We’d love to hear from you. Get in touch by email or follow us on one of our social media channels.
EmailFacebookTwitterLinkedInYouTubeWordPress

← Previous Newsletter

MQGem at MQTCv2.0.1.7

We’ve just finished a great three days at the MQTC v2.0.1.7 conference in Sandusky, Ohio. MQTC is the only conference dedicated to IBM MQ education, and was again very well attended by speakers, sponsors and attendees. Both Paul and Morag gave technical presentations as we mentioned in an earlier blog post.

For the first time in the 5-year run of this conference, we started the conference with an unopposed session, “What’s New in IBM Messaging”, before splitting into 5 tracks as in previous years. Roger Lacroix, who is the founder of the conference, made some opening remarks prior to that session, and then took his first ever selfie with the audience!

MQGem was a Gold Sponsor of the conference, and so also had a couple of vendor presentation sessions which were presented by Paul; the first on Monday, was about our MQ administration products, MO71 and MQSCX. Then on Wednesday, the second presentation was about our Message Manipulation products, MQEdit and QLOAD.

In the lab room this year, complementing the z/OS platform lab exercises provided by Lyn Elkins and Mitch Johnson, we made freely available our soon-to-be-released education courses. These were available for those people wanting to learn things on the distributed platforms, and a number of people tried them out. Our prize draw this year was to win access to five free courses, when they go live in around a months time. It was very heartening to see people learn new things while doing the courses, and good feedback was received on the exercises.

We also had a booth in the Sponsor Pavilion on Monday and Tuesday evening, where we gave personalised demos of any of the products to attendees who came by, gave out product brochures, free mouse mats, and beer koozies, and collected entries for our prize draw.

Yet again, the Kalahari Resort has done this conference proud, and huge thanks go to Capitalware for putting on a great three days.

Other blog posts about the conference:

Configuring List Dialogs in MO71

MO71 is our graphical administration tool for IBM MQ. You can manage all the different object types in MQ using its lists and object dialogs. The lists are fully flexible allowing you to determine which fields are interesting to you and which are not and choosing only to display those columns in the list as a result.

You can make these changes temporarily, just to the instance of the dialog you are currently using. You can make them more permanently, so that every time you bring up that list on that queue manager, you have the same columns. Or finally, you can make these changes across all your queue managers, because the columns you want are the ones you think should be the default set. You can also change the columns in a dynamic manner using filters.

This post will cover these various different mechanisms.

Temporarily alter the list shown

When looking at a list of objects you can change the columns that are displayed by selecting the Options -> Alter List… item from the context menu.

MO71 Alter List Menu

This will bring up a dialog where you can locate the additional columns you want to display. So I’ve got a list of queues, with some cluster queues and I want to see the Cluster Queue Manager that hosts the cluster queues, so I locate the field Cluster Queue Manager Name (CLUSQMGR) in the right hand side of the window in the list of “Remaining Fields”, and move it to the “List Contents” by pressing the  <<  button. Then I can move its position in the columns on the left hand side using the up and down buttons, and press   OK   to complete the change.

MO71 Change Queue List attributes

Now you’ll see that your queue list has the additional column you selected. However, if you close the queue list dialog, and later open another queue list dialog, you’ll see that your alteration to the list of fields shown has been forgotten, it was a temporary change that you made.

Permanently alter the list for one queue manager

Following exactly the same process as above, with one small change, you can make the change permanent for that queue manager. On the dialog which allows you to change the columns shown, instead of just pressing   OK   to make the change, first press Apply All which applies the change to all instances of that particular list dialog for this queue manager, both those currently open, and any future invocations of that list dialog. This change is also remembered across a restart of the MO71 program.

MO71 Change Queue List attributes Apply All

Permanently alter the list for all queue managers

In essence, this mechanism is changing the defaults for list dialogs. If you add a new queue manager to MO71, it will pick up the default columns too.

Using the menu option View -> Set Default Lists -> Queue List… (or whichever list dialog you want to change), you will be presented with a very similar dialog to the one above, except instead of referring to a single queue manager in the window title, it will indicate that it is a “global” list.

MO71 Change global Queue List attributes

Pressing   OK   or  Apply  on the global change list dialog will set the new default and all queue managers that have not had their list changed by the above mechanisms will pick up these new defaults. Pressing Apply All on this dialog will set all queue managers to use this list instead of anything that may have previously been altered by the above mechanisms. Because this is a ‘destructive’ setting (i.e. you lose previous set up you might have done), there is a confirmation dialog for this change. This change is also remembered across a restart of the MO71 program.

MO71 Change global Queue List attributes Confirmation

Changing columns in a filter

You can also change the column display from within a filter. This can particularly useful when creating pre-defined dialogs. Especially if you want to have several different ‘default’ sets of columns.

This can be done in two ways. Firstly by adding a ‘#’ character after a keyword or user variable name, to show it as a column on the end of the display. The example below has a filter which creates a user variable called “Fullness” and as a result of the ‘#’ character on the end, also displays that as a column.

MO71 Fullness column

The other way to manipulate columns from within a filter is to use the showcol and hidecol functions. This is very useful in a pre-defined dialog, allowing you to change the default set of columns to exactly what you need for this dialog. You might, for example, have several different queue lists, one for cluster queues, one for transmission queues, and one for dead-letter queues across all your queue managers. You can imagine wanting slightly different columns on display for each one.

The showcol function takes the MQSC spelling of the keyword and the column position, and the hidecol function just takes the keyword.

MO71 showcol hidecol

Heopfully now you can have exactly the columns you want on display in any list you are viewing. If you have any questions please leave a comment below, or get in touch.


If you don’t have a licence and would like to try out MO71 then send an email to support@mqgem.com and a 1-month trial licence will be sent to you.

MQGem Monthly (August 2017)

MQGem Monthly Banner
VOLUME III. – No. 8. THURSDAY, 31 AUGUST, 2017 PRICE: FREE

Welcome to the August edition of the MQGem Monthly Newsletter, bringing you company news from MQGem Software, information about the MO71, MQSCX, MQEdit, and QLOAD products, and interesting articles about IBM MQ.

News

A new version of MO71, V9.0.5, providing column filters, was released earlier this month. Read more about it here.

Also this month, MQEdit was updated, with V9.0.2 providing formatters for JSON, FIX and CSV (OFS) messages. Read more about it here.

Preparation is well underway for the MQTC conference later in September. Both Paul and Morag will be there, giving MQ technical sessions and at the MQGem Booth in the Sponsor’s Pavilion in the evenings. Come by and say hello.

Interesting IBM MQ links

Here are a few links that caught our eye this month.

We share all the above links on our Twitter feed and Facebook page so if you don’t want to wait until the end-of-month newsletter, follow us on there.

Upcoming events

There are a number of conference events where IBM MQ will be featured in the coming months. Hopefully you’ll be able to sign up to one near you and obtain some MQ technical education.

Upcoming online events

If you’re unable to get to any “in-person” events, then these online webcasts are just what you need.

Product Info

This months highlighted product information is a video showing the API Exerciser in MO71.

IBM MQ Latest Maintenance

Make sure you’re on the latest maintenance level of your version of IBM MQ. These are the latest Fix Packs at the time of going to press. Check here for the latest versions now, and here for the planned dates for the next ones.

Handy IBM MQ Resources

If you want to read blog posts on IBM MQ subject matter, these resources are good places to follow. There are a great number of IBM MQ Experts that write in the IBM MQ Blogosphere.

Contact Information

MQGem hopes to see you at the MQTC Conference. We’d love to hear from you. Get in touch by email or follow us on one of our social media channels.
EmailFacebookTwitterLinkedInYouTubeWordPress

← Previous Newsletter