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 Discussion » Script

Post new topic  Reply to topic
 Script « View previous topic :: View next topic » 
Author Message
Amit15
PostPosted: Mon Oct 10, 2005 3:21 am    Post subject: Script Reply with quote

Novice

Joined: 20 Sep 2005
Posts: 24

Can we write a script for creating the queue managers..How

Regards
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Oct 10, 2005 3:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Anirud
PostPosted: Mon Oct 10, 2005 8:16 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
sebastianhirt
PostPosted: Mon Oct 10, 2005 8:25 am    Post subject: Reply with quote

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
View user's profile Send private message
hopsala
PostPosted: Mon Oct 10, 2005 9:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Anirud
PostPosted: Mon Oct 10, 2005 9:40 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
sebastianhirt
PostPosted: Mon Oct 10, 2005 11:42 am    Post subject: Reply with quote

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
View user's profile Send private message
tkane
PostPosted: Mon Oct 10, 2005 12:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
hopsala
PostPosted: Mon Oct 10, 2005 3:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Amit15
PostPosted: Mon Oct 10, 2005 10:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Amit15
PostPosted: Mon Oct 10, 2005 10:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
sebastianhirt
PostPosted: Tue Oct 11, 2005 12:19 am    Post subject: Reply with quote

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

MQSeries.net Forum Index » General Discussion » Script
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.