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 » crtmqm

Post new topic  Reply to topic Goto page 1, 2  Next
 crtmqm « View previous topic :: View next topic » 
Author Message
masteringmq
PostPosted: Mon Feb 02, 2009 6:41 pm    Post subject: crtmqm Reply with quote

Master

Joined: 20 Oct 2008
Posts: 200

crtmqm -q -d abc def

-q = default queue manager
-d = transmission queue

by issuing the command above, "def" is the default queue manager being created. This is tested by running the control command strmqm only. So the default transmission queue created is abc. Why is it that the creation of the default queue manager and transmission queue does not follow the sequence of the option -q -d. In other words abc is the default queue manager and def is the transmission queue.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Mon Feb 02, 2009 6:59 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Review the syntax of the command in the InfoCenter, and ask any followup question. Its working as designed and documented.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
AkankshA
PostPosted: Mon Feb 02, 2009 7:48 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Usage: crtmqm [-z] [-q] [-c Text] [-d DefXmitQ] [-h MaxHandles]
[-g ApplicationGroup] [-ss | -sa | -si]
[-t TrigInt] [-u DeadQ] [-x MaxUMsgs] [-lp LogPri] [-ls LogSec]
[-lc | -ll] [-lf LogFileSize] [-ld LogPath] QMgrName


its working as designed
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
masteringmq
PostPosted: Tue Feb 03, 2009 7:21 am    Post subject: Reply with quote

Master

Joined: 20 Oct 2008
Posts: 200

confusing but then it's ok.

crtmqm -q [-d abc] def

[-d abc] as default transmission queue

-q ......] def as default queue manager
Back to top
View user's profile Send private message
masteringmq
PostPosted: Tue Feb 03, 2009 6:58 pm    Post subject: Reply with quote

Master

Joined: 20 Oct 2008
Posts: 200

This looks much organized:

crtmqm -u m -d mes -q zaza

m - dead letter queue
mes - transmission queue
zaza - default queue manager

when compared to crtmqm -q -d abc def

abc - transmission queue
def - default queue manager
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Feb 04, 2009 3:56 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

-q does not hold a value.

It does not say "this qmgr named <abc> is the default qmgr".

It is a flag.

It says "this qmgr that I am creating, with all of these other options, should be made the default qmgr".

Don't use a default qmgr. It's not helpful in most cases.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Feb 04, 2009 4:06 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqjeff wrote:
-q does not hold a value.


As you will discover to your cost if you type:

Code:
crtmqm -u m -d mes -q zaza


and then

Code:
crtmqm -u m -d mes -q zaza abc


to define a non-default queue manager called abc. Worse still is someone else typing

Code:
crtmqm -u m -d mes -q abc




mqjeff wrote:
Don't use a default qmgr. It's not helpful in most cases.




See my example above.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
masteringmq
PostPosted: Wed Feb 04, 2009 6:11 pm    Post subject: Reply with quote

Master

Joined: 20 Oct 2008
Posts: 200

weired:

crtmqm -q gaza -u m -d mes

says:
AMQ7027: Argument -u supplied to command crtmqm is invalid.
Usage: crtmqm [-z] [-q] [-c Text] [-d DefXmitQ] [-h MaxHandles]
[-g ApplicationGroup]
[-t TrigInt] [-u DeadQ] [-x MaxUMsgs] [-lp LogPri] [-ls LogSec]
[-lc | -ll] [-lf LogFileSize] [-ld LogPath] QMgrName

I will take the advice
Back to top
View user's profile Send private message
AkankshA
PostPosted: Wed Feb 04, 2009 10:13 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

crtmqm -q gaza -u m -d mes

gaza which i suppose is QM name is placed wrongly


crtmqm -q -u m -d mes gaza
shall work
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Thu Feb 05, 2009 12:56 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

masteringmq wrote:
I will take the advice


Read the earlier posts, the documentation and in extremis the text of the error message!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
sumit
PostPosted: Thu Feb 05, 2009 1:58 am    Post subject: Reply with quote

Partisan

Joined: 19 Jan 2006
Posts: 398

Quote:
crtmqm -q gaza -u m -d mes


As full stop (.) always comes at the end of a statement (no matter what you write) in the same way queue manager name always comes at the end of 'crtmqm' command (no matter what/how many parameter you pass).
_________________
Regards
Sumit
Back to top
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Thu Feb 05, 2009 2:09 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sumit wrote:
Quote:
crtmqm -q gaza -u m -d mes


As full stop (.) always comes at the end of a statement (no matter what you write) in the same way queue manager name always comes at the end of 'crtmqm' command (no matter what/how many parameter you pass).


Nicely put!


_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
masteringmq
PostPosted: Thu Feb 05, 2009 7:42 am    Post subject: Reply with quote

Master

Joined: 20 Oct 2008
Posts: 200

Yes. I was just highlighting the concept used to build the crtmqm control command

Last edited by masteringmq on Thu Feb 05, 2009 8:18 am; edited 1 time in total
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Feb 05, 2009 7:55 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

masteringmq wrote:
Yes. I was just highlighting the concept used to build the strmqm control command


Highlighting what concept? And what has strmqm got to do in any sense with crtmqm? Except that the queue manager name (if specified) is not a parameter but the last arguement? A concept you seemed to be having trouble with earlier in the post?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
masteringmq
PostPosted: Thu Feb 05, 2009 8:21 am    Post subject: Reply with quote

Master

Joined: 20 Oct 2008
Posts: 200

The concept in which the software developer build the crtmqm control command.
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 » crtmqm
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.