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 » IBM MQ Performance Monitoring » how to read MQCACF_LAST_PUT_DATE queue property

Post new topic  Reply to topic
 how to read MQCACF_LAST_PUT_DATE queue property « View previous topic :: View next topic » 
Author Message
sebastia
PostPosted: Sat Sep 23, 2006 11:58 am    Post subject: how to read MQCACF_LAST_PUT_DATE queue property Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

We are using C code and MQAI - Administration Interface.

We are trying to read some queue properties,
and we are successful with "MQIA_CURRENT_Q_DEPTH" - queue depth.

Now, we need to read the LPUTDATE timestamp ...
and always get "2309 0x00000905 MQRC_SELECTOR_NOT_PRESENT".
We are using the Selector ...

"mqAddInquiry ( adminBag, MQIACF_ALL, @ cc, @ rc ) ;"

Has anybody a sample code on how to do this ?

Thanks a lot. Sebastian.
Back to top
View user's profile Send private message Visit poster's website
sebastia
PostPosted: Sat Sep 23, 2006 12:08 pm    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

Well, we have improved a little :
we were using "MQCMD_INQUIRE_Q"
and it had to be "MQCMD_INQUIRE_Q_STATUS".

Now it is ok (code similar to "AMQSAILQ.C" in /samples/c/ )
but ...

If we want QUEUE_DEPTH and PUT_DATE ..
then
shall we issue TWO mqExecute() ??

Cheers. Sebastian.
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Sat Sep 23, 2006 2:51 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Inquire Queue Status is the "same" as the MQSC command Display QStatus.

Do you want "LastPutDate"?

That's an attribute of the PCF response message.

You can either put MQCIACF_ALL, MQCACF_LAST_PUT_DATE, or MQIACF_MONITORING into the PCF command to get it to return LastPutDate in the response.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sebastia
PostPosted: Sat Sep 23, 2006 4:07 pm    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

.
Well, I did make it work with TWO mqExecute() calls
but don't like it :

have to create lots of Bags, manage lots of RC's, etc

a) can it be done with ONQ mqExecute ?

b) any sample ?

()
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Performance Monitoring » how to read MQCACF_LAST_PUT_DATE queue property
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.