Author |
Message
|
veeruk |
Posted: Mon Mar 20, 2006 11:33 am Post subject: saveqmgr - a question |
|
|
Acolyte
Joined: 13 Mar 2006 Posts: 73
|
Hi all,
I was planning to see all the queue and channel definitions on AIX PRODUCTION SERVER because I have to replicate the production environment on a different server. But I have just read somewhere in the IBM support site that all the applications queues should be empty before we run this 'saveqmgr' command or else the data WILL BE LOST!
I am just worried whether to go ahead and use this command even in the production system or not. Is it advisable to straight away run this command or do we need to backup the data before we use it.Can someone guide me in this regard?
Thank you,
Veeru. |
|
Back to top |
|
 |
vennela |
Posted: Mon Mar 20, 2006 11:50 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
But I have just read somewhere in the IBM support site |
Where???
AFAIK, it is not necessary and you can run the utility anytime, unless Wayne contradicts me. |
|
Back to top |
|
 |
veeruk |
Posted: Mon Mar 20, 2006 11:59 am Post subject: |
|
|
Acolyte
Joined: 13 Mar 2006 Posts: 73
|
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Mar 20, 2006 12:03 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Of course the data will be lost.
You will have done nothing to save it and restore it.
Saveqmgr only creates an mqsc file that will recreate the objects.
It does not save messages.
You need to use some other mechanism for that. Like, perhaps, some process mentioned in the documentation on backing up and restoring queue managers. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
veeruk |
Posted: Mon Mar 20, 2006 12:07 pm Post subject: |
|
|
Acolyte
Joined: 13 Mar 2006 Posts: 73
|
Can you please suggest any other tool if so? I just want to see those queue & channel definitions and consequently create them with the same definitions on a different machine altogether. |
|
Back to top |
|
 |
wschutz |
Posted: Mon Mar 20, 2006 12:16 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Don't panic. Saveqmgr will NOT delete any queues or messages when you run it.
The reason the link you gave says that data will be lost is due to step 7:
Quote: |
7. Stop and delete each queue manager. |
For what you want to do, saveqmgr is what you need. As Jeff says, it will create a file with mqsc in it which you can then run on another machine. _________________ -wayne |
|
Back to top |
|
 |
veeruk |
Posted: Mon Mar 20, 2006 12:20 pm Post subject: |
|
|
Acolyte
Joined: 13 Mar 2006 Posts: 73
|
Oh! I didn't concentrate on that step properly. I got panicked to see the NOTE**NOTE** kind of statements at step 2!!
Thanks for your guidance. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Mar 20, 2006 12:21 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
But the messages on Machine A will not be moved to Machine B. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
veeruk |
Posted: Mon Mar 20, 2006 12:25 pm Post subject: |
|
|
Acolyte
Joined: 13 Mar 2006 Posts: 73
|
Yeah, You are right.
My plan is, since saveqmgr cretates a file which contains all the definitions and authorizations, I'll just copy that file to the new machine and run those commands to create the objects with the same privileges. |
|
Back to top |
|
 |
wschutz |
Posted: Mon Mar 20, 2006 12:28 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
saveqmgr creates the definitions, but as documented in its "read.me", you ned to run amqoamd -s to create the authorizations in a file. _________________ -wayne |
|
Back to top |
|
 |
|