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 » WebSphere MQ - PCF to MQSC Document

Post new topic  Reply to topic Goto page Previous  1, 2
 WebSphere MQ - PCF to MQSC Document « View previous topic :: View next topic » 
Author Message
mqjeff
PostPosted: Fri Apr 06, 2012 2:18 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Michael Dag wrote:
Interesting discussion
mqjeff wrote:
Even though they're really just different ways of sending messages to the command server!

when using runmqsc locally the command server is not involved I was told once


That's at least somewhat true, as I understand it.

And part of the problem being complained about here.
Back to top
View user's profile Send private message
rcp_mq
PostPosted: Fri Apr 06, 2012 6:45 am    Post subject: Reply with quote

Centurion

Joined: 13 Dec 2011
Posts: 133

@mqjeff

You're absolutley right. That is why i take pdf prints of all pages i need, rename and categorize them according to subject, and put in a folder...(It's a lot of pain, but way easier to refer back than to browse through 50 pages and search)
Back to top
View user's profile Send private message
mqtablet
PostPosted: Fri Apr 06, 2012 1:11 pm    Post subject: Reply with quote

Acolyte

Joined: 09 Jun 2009
Posts: 71

MQSC commands will not use the command server.

Code:


DIS QL(SYSTEM.ADMIN.COMMAND.QUEUE) CURDEPTH DEFPSIST
     1 : DIS QL(SYSTEM.ADMIN.COMMAND.QUEUE) CURDEPTH DEFPSIST
AMQ8409: Display Queue details.
   QUEUE(SYSTEM.ADMIN.COMMAND.QUEUE)       TYPE(QLOCAL)
   CURDEPTH(0)                             DEFPSIST(NO)

       :
ALTER QL(SYSTEM.ADMIN.COMMAND.QUEUE) DEFPSIST(YES)
     2 : ALTER QL(SYSTEM.ADMIN.COMMAND.QUEUE) DEFPSIST(YES)
AMQ8008: WebSphere MQ queue changed.

       :
ALTER QMGR CMDEV(ENABLED)
     3 : ALTER QMGR CMDEV(ENABLED)
AMQ8005: WebSphere MQ queue manager changed.



After restarting the queue manager

Code:

       
DIS QL(SYSTEM.ADMIN.COMMAND.QUEUE) CURDEPTH
     1 : DIS QL(SYSTEM.ADMIN.COMMAND.QUEUE) CURDEPTH
AMQ8409: Display Queue details.
   QUEUE(SYSTEM.ADMIN.COMMAND.QUEUE)       TYPE(QLOCAL)
   CURDEPTH(0)

       :
DIS QL(SYSTEM.ADMIN.COMMAND.QUEUE) CURDEPTH
     2 : DIS QL(SYSTEM.ADMIN.COMMAND.QUEUE) CURDEPTH
AMQ8409: Display Queue details.
   QUEUE(SYSTEM.ADMIN.COMMAND.QUEUE)       TYPE(QLOCAL)
   CURDEPTH(0)



The CURDEPTH(0) indicates that no command events are generated when you run a command in runmqsc, and hence command server is not used.
Back to top
View user's profile Send private message
mvic
PostPosted: Fri Apr 06, 2012 1:52 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

I'm not sure what you have proved, with those commands.

Anyway, runmqsc does not communicate with the queue manager through the command server. You could seek to prove that point by ending the command server and then watching your MQSC commands continue to work.
Back to top
View user's profile Send private message
mqtablet
PostPosted: Sat Apr 07, 2012 12:07 am    Post subject: Reply with quote

Acolyte

Joined: 09 Jun 2009
Posts: 71

mvic wrote:
ending the command server and then watching your MQSC commands continue to work.


I've tried this way back in MQ 6 and the runmqsc commands work even when the command server is not running.

And it my previous post what I mean to say is - when the command events are enabled, and when you run a command - if it uses the command server to process the command an event is generated and put to SYSTEM.ADMIN.COMMAND.EVENT queue.

What I tried to explain there is - initially the command event queue is empty, later i enabled the command events of the queue manager, restarted the queue manager, ran a command in runmqsc to check if any messages were generated in the SYSTEM.ADMIN.COMMAND.EVENT. Since there were no messages in the above mentioned queue, it means that the command server is not used for runmqsc command. You can try this by sending a PCF command and you can see the event messages in the command event queue.

I enabled the queue to be persistant to hold the messages after the queue manager restart.

Thanks.
Back to top
View user's profile Send private message
mvic
PostPosted: Sat Apr 07, 2012 2:56 am    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

mqtablet wrote:
... ran a command in runmqsc to check if any messages were generated in the SYSTEM.ADMIN.COMMAND.EVENT. Since there were no messages in the above mentioned queue...

I enabled the queue to be persistant to hold the messages after the queue manager restart.

I see now what you were attempting - sensible enough, I guess.

Some things to say though:
1. the DIS QL and ALTER QL commands you ran were not for the event queue.
2. DEFPSIST has the effect you want because of defined behavior for event messages http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/mo11480_.htm But, to be pedantic, altering DEFPSIST does not make a queue persistent. Only messages are persistent. Check the manual here http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/fr18500_.htm and here http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/sc11190_.htm

The easiest test still would be to end the cmd server and observe runmqsc continuing to work.
Back to top
View user's profile Send private message
mqtablet
PostPosted: Sat Apr 07, 2012 9:38 am    Post subject: Reply with quote

Acolyte

Joined: 09 Jun 2009
Posts: 71

mvic wrote:
1. the DIS QL and ALTER QL commands you ran were not for the event queue.

You are right, I should have done this on the event queue. Sorry, my mistake. I tried now on the event queue. Same result though.

mvic wrote:

The easiest test still would be to end the cmd server and observe runmqsc continuing to work.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » General IBM MQ Support » WebSphere MQ - PCF to MQSC Document
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.