ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Message count

Post new topic  Reply to topic Goto page 1, 2  Next
 Message count « View previous topic :: View next topic » 
Author Message
Carla Viragh
PostPosted: Mon Apr 05, 2004 11:17 am    Post subject: Message count Reply with quote

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
View user's profile Send private message Send e-mail
gunter
PostPosted: Mon Apr 05, 2004 11:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Carla Viragh
PostPosted: Mon Apr 05, 2004 3:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
TonyD
PostPosted: Mon Apr 05, 2004 4:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
gunter
PostPosted: Mon Apr 05, 2004 8:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
techno
PostPosted: Tue Apr 06, 2004 7:33 am    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

That may happen when sequence number of the channel changes??
Back to top
View user's profile Send private message
Carla Viragh
PostPosted: Wed Apr 07, 2004 7:17 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
gunter
PostPosted: Wed Apr 07, 2004 11:06 am    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Wed Apr 07, 2004 5:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Wed Apr 07, 2004 5:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Carla Viragh
PostPosted: Thu Apr 08, 2004 8:09 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
EddieA
PostPosted: Thu Apr 08, 2004 10:01 am    Post subject: Reply with quote

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
View user's profile Send private message
Carla Viragh
PostPosted: Thu Apr 08, 2004 2:18 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
EddieA
PostPosted: Thu Apr 08, 2004 3:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Thu Apr 08, 2004 4:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » Message count
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.