Author |
Message
|
Amit15 |
Posted: Mon Oct 10, 2005 3:21 am Post subject: Script |
|
|
Novice
Joined: 20 Sep 2005 Posts: 24
|
Can we write a script for creating the queue managers..How
Regards |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Oct 10, 2005 3:24 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
depends on what you mean by a script.
There is the "crtmqm" command.
Please read the manuals, and try harder. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Anirud |
Posted: Mon Oct 10, 2005 8:16 am Post subject: |
|
|
 Master
Joined: 12 Feb 2004 Posts: 285 Location: Vermont
|
Just curious ...
May I know why do you need a script to create queue managers? I can understand a script to create queue manager objects (queues, channels etc.) but, never heard of a script to create a queue manager. Ofcourse,
jefflowrey wrote: |
depends on what you mean by a script |
Script to create a queue manager just made me curious... am I missing something  |
|
Back to top |
|
 |
sebastianhirt |
Posted: Mon Oct 10, 2005 8:25 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
Anirud wrote: |
Just curious ...
May I know why do you need a script to create queue managers? I can understand a script to create queue manager objects (queues, channels etc.) but, never heard of a script to create a queue manager. Ofcourse,
jefflowrey wrote: |
depends on what you mean by a script |
Script to create a queue manager just made me curious... am I missing something  |
I could imagine many reasons why to want it.
One might be for example if you have a tool that is generating standard definitions for you based on naming conventions.
Another one could be that you want to have it for change management reasons...
Or that is at least the reason why we do it  |
|
Back to top |
|
 |
hopsala |
Posted: Mon Oct 10, 2005 9:06 am Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
sebastianhirt wrote: |
One might be for example if you have a tool that is generating standard definitions for you based on naming conventions.
Another one could be that you want to have it for change management reasons... |
You would admit, that this doesn't really qualify as a "script" per se... I mean, a script actually has *logic* - this is just two commands (crtmqm, saveqmgr) in sequence... |
|
Back to top |
|
 |
Anirud |
Posted: Mon Oct 10, 2005 9:40 am Post subject: |
|
|
 Master
Joined: 12 Feb 2004 Posts: 285 Location: Vermont
|
sebastianhirt wrote: |
I could imagine many reasons why to want it.
One might be for example if you have a tool that is generating standard definitions for you based on naming conventions.
Another one could be that you want to have it for change management reasons...
Or that is at least the reason why we do it  |
hmm.
Never did that.
Thanks for your input.
Regards,
Anirud. |
|
Back to top |
|
 |
sebastianhirt |
Posted: Mon Oct 10, 2005 11:42 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
hopsala wrote: |
sebastianhirt wrote: |
One might be for example if you have a tool that is generating standard definitions for you based on naming conventions.
Another one could be that you want to have it for change management reasons... |
You would admit, that this doesn't really qualify as a "script" per se... I mean, a script actually has *logic* - this is just two commands (crtmqm, saveqmgr) in sequence... |
Well, I guess you are right somehow.
But as soon I can doubleclick it and it does take some work from me it is IMHO a script. Maybe a really small one but a script.
Maybe that is a bit like calling 'Hallo World' a Programm. |
|
Back to top |
|
 |
tkane |
Posted: Mon Oct 10, 2005 12:12 pm Post subject: |
|
|
 Voyager
Joined: 23 Dec 2002 Posts: 82 Location: Kansas City
|
It really depends on how many things you want to do in a script, no?
run setmqcap
Decide on the queue manager name based on your standards.
Decide on how many logs and of what type?
Put your standard objects or change IBM's SYSTEM.DEFAULT objects to your standards.
Update the qm.ini
Good Luck
Tom |
|
Back to top |
|
 |
hopsala |
Posted: Mon Oct 10, 2005 3:14 pm Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
tkane wrote: |
Decide on how many logs and of what type?
Update the qm.ini |
I'd love to hear how you automate these - how do you calculate log sizes and types on the fly, and what have you to change in qm.ini? - the first is a much debated topic here...
As for the rest, I will rephrase - not "two commands" but "three commands"...
(p.s never noticed the [list] option, cheers!) |
|
Back to top |
|
 |
Amit15 |
Posted: Mon Oct 10, 2005 10:27 pm Post subject: |
|
|
Novice
Joined: 20 Sep 2005 Posts: 24
|
Hi Anirud
Can you tell me the script for crating the queue manager opjects
Regards |
|
Back to top |
|
 |
Amit15 |
Posted: Mon Oct 10, 2005 10:34 pm Post subject: |
|
|
Novice
Joined: 20 Sep 2005 Posts: 24
|
Hi All
Can any one tell me the script for creating the MQ objects
Regards |
|
Back to top |
|
 |
sebastianhirt |
Posted: Tue Oct 11, 2005 12:19 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
hopsala,
in times of unlimited diskspace, I don't see a reaseon of having small logs. I usually set them to max and vary just with the number of logs.
Easy enough to have that as a parameter
Amit15,
I would recomend you to look at the MQSC Command Manual to figure out how you do your scripts for MQObjects.
What exactly are you looking for when you say queuemanager scripts?
As mentioned by Jeff before, look at the usage of amqmdain and crtmqm. This can all be found in the System Admin Guide |
|
Back to top |
|
 |
|