Author |
Message
|
Merlin_jacob |
Posted: Tue Feb 17, 2015 9:58 am Post subject: Automating the QM |
|
|
Novice
Joined: 15 Jan 2015 Posts: 13
|
Hi,
i have an question like
how to automate the recreating the objects
of a queue manager
and also how to recreate the queue manager
from the backup
1. Suppose queue manager went down
and the queue manager is not coming up as it corrupted
backup is already in place in the any of the drive..
so how to automate that the queue manager and objects will be created automatically without any manual efforts
i mean what can be done to remove the manual work from
rcrmqobj -m QMNAME -t obj
2. what all can be done in Linux environment to improvent the functionality
Pls share your ideas..i have like using some scripts but dont know whether its a correct choice or no? |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 17, 2015 10:13 am Post subject: Re: Automating the QM |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Merlin_jacob wrote: |
i have like using some scripts but dont know whether its a correct choice or no? |
Yes. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Merlin_jacob |
Posted: Tue Feb 17, 2015 10:23 am Post subject: |
|
|
Novice
Joined: 15 Jan 2015 Posts: 13
|
So can u pls help me out with the script or if u have then pls share it or suggest from where i can get? |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 17, 2015 11:11 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Merlin_jacob wrote: |
So can u pls help me out with the script or if u have then pls share it or suggest from where i can get? |
So what help do you need? What have you tried? What happened?
Or do you want someone to give you a script to use, or tell you where you can get a script to use, so you don't have to waste valuable time thinking? The same principle you apply to attending interviews? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 17, 2015 11:13 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Thread moved to more relevent forum, as the OP was too busy not thinking about what the script should contain to read section titles. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Feb 17, 2015 11:34 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
here's what I do to verify that my scripts match a running QMGR
1) Create a dump of the Running QMGR objects with saveqmgr or dmpmqqmgr (or correct commend if this is wrong)
You may have to play with the options a bit (eg -1 for one line output)[1]
2) Take your scripts and create a new QMGR with a different name
3) Dump the objects using the same set of saveqmgr options
4) Compare the output using a tool like UltraCompare.
Repeat and fix until the scripts create a qmgr with the same attributes as the running one.
Do the same for the Authorizations.
Don't forget to look at the Non Object settings like Logfiles size, log type and Logfile numbers (-lp)
It does work but may take some time.
Then put the scripts into source control and relax.
[1] A one line output removes the ALTDATE, ALTTIME, CRTDATE, CRTTIME values which will be different on the dummy qmgr. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Merlin_jacob |
Posted: Tue Feb 17, 2015 11:35 am Post subject: |
|
|
Novice
Joined: 15 Jan 2015 Posts: 13
|
As i m new to it so i dont have idea, but i need guidance like logic for the script... |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 17, 2015 11:41 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Merlin_jacob wrote: |
As i m new to it so i dont have idea, but i need guidance like logic for the script... |
And this forum is the worst place to get such guidance (which I think is commonly called "training"). Push back on whoever gave you this task and point out that asking you to do this without training (or at least mentoring) is going to be as successful (and as pleasant) as asking you to play the violin without training or mentoring.
If you don't fancy that, read the documentation. Get an idea, possibly the wrong one. Like (and this is a hint) thinking you can use rcdmqobj when you should be thinking dmpmqcfg. Write a script. Try it. Watch it fail. Try to fix it. Or watch it work and try to improve it.
When you get stuck, post your script here with details of what you're trying, details of what happened. Generalised training we will not give. Specific answers to specific questions, especially when you've demonstrated you've had a go, we will.
But get training. It's not fair on you to throw you into the deep end. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|