Author |
Message
|
Carla Viragh |
Posted: Mon Apr 05, 2004 11:17 am Post subject: Message count |
|
|
 Voyager
Joined: 31 Oct 2003 Posts: 92 Location: São Paulo - Brasil
|
Hello all.
Please, does anybody know a exit or something that could count the messages that is passing through my channels? Something that I could restart when necessary if I need to count how many messages passed today in my channels, for example.
I need it for AIX and Windows.
Thanks very much. _________________ Carla Viragh |
|
Back to top |
|
 |
gunter |
Posted: Mon Apr 05, 2004 11:31 am Post subject: |
|
|
Partisan
Joined: 21 Jan 2004 Posts: 307 Location: Germany, Frankfurt
|
The channel has a counter. You can inquire the value or read it with runmqsc.
If nessessary, you can reset the value. _________________ Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3 |
|
Back to top |
|
 |
Carla Viragh |
Posted: Mon Apr 05, 2004 3:27 pm Post subject: |
|
|
 Voyager
Joined: 31 Oct 2003 Posts: 92 Location: São Paulo - Brasil
|
Yes...
CURMSGS parameter I can´t use because it´s set to zero each batch is commited.
MSGS is restarted each time channel is inactive/active.
So I will try to use CURSEQNO. I can calculate how many messages I received each day.
As you can see, it is not good if I need to count messages setting it to zero. That´s why I´d like to use a exit. Do you know a exit or other parameter that could help me?
Thanks for your assistance. _________________ Carla Viragh |
|
Back to top |
|
 |
TonyD |
Posted: Mon Apr 05, 2004 4:40 pm Post subject: |
|
|
Knight
Joined: 15 May 2001 Posts: 540 Location: New Zealand
|
Quote: |
http://www-306.ibm.com/software/integration/support/supportpacs/individual/ma06.html |
- could probably be adapted without to much trouble to provide you with a count of messages passing through the MCA. |
|
Back to top |
|
 |
gunter |
Posted: Mon Apr 05, 2004 8:48 pm Post subject: |
|
|
Partisan
Joined: 21 Jan 2004 Posts: 307 Location: Germany, Frankfurt
|
Be aware, that CURSEQNO isn't always right. A few times, I saw that the queuemanager had reseted the channel, but I don't know if it was a bug or a feature. _________________ Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3 |
|
Back to top |
|
 |
techno |
Posted: Tue Apr 06, 2004 7:33 am Post subject: |
|
|
Chevalier
Joined: 22 Jan 2003 Posts: 429
|
That may happen when sequence number of the channel changes?? |
|
Back to top |
|
 |
Carla Viragh |
Posted: Wed Apr 07, 2004 7:17 am Post subject: |
|
|
 Voyager
Joined: 31 Oct 2003 Posts: 92 Location: São Paulo - Brasil
|
techno wrote: |
That may happen when sequence number of the channel changes?? |
I don´t think so! Why would the sequence number be changed whithout intervention?
But I know the curseqno is not a good way to monitor messages, that why I am looking for another way.
Gunter, which parameter you were thinking about in your first post?
TonyD, I will take a look at the MA06.
Thank you! _________________ Carla Viragh |
|
Back to top |
|
 |
gunter |
Posted: Wed Apr 07, 2004 11:06 am Post subject: |
|
|
Partisan
Joined: 21 Jan 2004 Posts: 307 Location: Germany, Frankfurt
|
I think there is only CURSEQNO usable, don't take it from receiver channel if you use a receiver for more than one sender. Probably it's not usable in a cluster.
If you use a exit, the perforemance is always affected.
I played around with a API exit at the listener, I believe there are all information you need, but I don't know if it's really usable. Maybe it's not the use to be it intended. _________________ Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3 |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Apr 07, 2004 5:10 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Check out Queue Statistics for the Transmit Queue. It will tell you how many messages went in and out of the transmit queue that feeds the channel. That should give you the number you need.
Be aware that any time you check it, or anyone else checks it, it gets reset to 0. But if you can insure you are the only one doing it, it will give you what you need. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Apr 07, 2004 5:13 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Check out Queue Statistics for the Transmit Queue. It will tell you how many messages went in and out of the transmit queue that feeds the channel. That should give you the number you need.
Be aware that any time you check it, or anyone else checks it, it gets reset to 0. But if you can insure you are the only one doing it, it will give you what you need. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
Carla Viragh |
Posted: Thu Apr 08, 2004 8:09 am Post subject: |
|
|
 Voyager
Joined: 31 Oct 2003 Posts: 92 Location: São Paulo - Brasil
|
PeterPotkay wrote: |
Check out Queue Statistics for the Transmit Queue. It will tell you how many messages went in and out of the transmit queue that feeds the channel. That should give you the number you need.
Be aware that any time you check it, or anyone else checks it, it gets reset to 0. But if you can insure you are the only one doing it, it will give you what you need. |
I didn´t understand, how can I get this queue statistic? _________________ Carla Viragh |
|
Back to top |
|
 |
EddieA |
Posted: Thu Apr 08, 2004 10:01 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
It's a PCF command: Reset Queue Statistics.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
Carla Viragh |
Posted: Thu Apr 08, 2004 2:18 pm Post subject: |
|
|
 Voyager
Joined: 31 Oct 2003 Posts: 92 Location: São Paulo - Brasil
|
EddieA wrote: |
It's a PCF command: Reset Queue Statistics.
Cheers, |
Hello Eddie!
Am I wrong or do I need to create a program to do this?
Is there any other way to get this value?
Thanks! _________________ Carla Viragh |
|
Back to top |
|
 |
EddieA |
Posted: Thu Apr 08, 2004 3:30 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
do I need to create a program to do this |
Yep. To PUT the PCF message in the Command Queue and then to GET and interpret the response.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Apr 08, 2004 4:04 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
The free MO71 support pac will also display this stat for you.
But if you need to compile a long running list of what goes thru this queue, you will have to write a program to issue these commands periodically, and store the results somewhere for future referance. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
|