Author |
Message
|
qwerty123 |
Posted: Fri May 19, 2006 10:05 am Post subject: Export MQ Definitions |
|
|
Novice
Joined: 09 Oct 2003 Posts: 23
|
Folks:
I'd like to know if there is way to export the definitions of the various MQ objects (QM, Queues, channels etc) created using the MQ Explorer into a text/script file ?
Thanks in advance
~N |
|
Back to top |
|
 |
sandiksk |
Posted: Fri May 19, 2006 10:08 am Post subject: |
|
|
Centurion
Joined: 08 Jun 2005 Posts: 133
|
even if you created with Mq explorer or in runmqsc you could save all the defiitions through the save_qmgr support pack. Search this forum for more results.  |
|
Back to top |
|
 |
wschutz |
Posted: Fri May 19, 2006 10:27 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
|
Back to top |
|
 |
qwerty123 |
Posted: Fri May 19, 2006 10:38 am Post subject: |
|
|
Novice
Joined: 09 Oct 2003 Posts: 23
|
Thanks for your help guys  |
|
Back to top |
|
 |
rhomolka |
Posted: Wed Oct 18, 2006 2:12 pm Post subject: Remember authorizations |
|
|
Newbie
Joined: 18 Oct 2006 Posts: 1
|
savemgmgr does NOT save authorizations. If you have any custom authorization, they should be backed up with dmpmqaut. Unfortunately the contencts of this file can not be fed into any MQ tools, but a simple perl script can parse this and change it into setmqaut commands. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Oct 18, 2006 2:20 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Saveqmgr does save authorizations in the most recent version.
Also, amqoamd -s is a much better tool for saving authorizations than dmpmqaut. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
jcrmqput |
Posted: Thu Dec 14, 2006 1:40 pm Post subject: |
|
|
Newbie
Joined: 14 Dec 2006 Posts: 3
|
jefflowrey wrote: |
Saveqmgr does save authorizations in the most recent version.
Also, amqoamd -s is a much better tool for saving authorizations than dmpmqaut. |
The "-z" option of saveqmgr will extract the same data as amqoamd -s. This feature works only on qmgrs >=V6. So, for earlier versions, amqoamd -s is a good option. |
|
Back to top |
|
 |
Michael Dag |
Posted: Thu Dec 14, 2006 11:19 pm Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
jcrmqput wrote: |
jefflowrey wrote: |
Saveqmgr does save authorizations in the most recent version.
Also, amqoamd -s is a much better tool for saving authorizations than dmpmqaut. |
The "-z" option of saveqmgr will extract the same data as amqoamd -s. This feature works only on qmgrs >=V6. So, for earlier versions, amqoamd -s is a good option. |
there is NO "-z", it's "-s" !
"-s" was introduced in MQ 5.2 CSD 4 btw _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
wschutz |
Posted: Fri Dec 15, 2006 3:30 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Michael Dag wrote: |
there is NO "-z", it's "-s" ! |
Michael, I believe the reference is to "saveqmgr", where, since v6.0.3, the "-z" flag generates "setmqaut" commands. _________________ -wayne |
|
Back to top |
|
 |
Michael Dag |
Posted: Fri Dec 15, 2006 3:36 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
wschutz wrote: |
Michael Dag wrote: |
there is NO "-z", it's "-s" ! |
Michael, I believe the reference is to "saveqmgr", where, since v6.0.3, the "-z" flag generates "setmqaut" commands. |
ah! I see...  _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
euphoria |
Posted: Fri Dec 15, 2006 3:22 pm Post subject: |
|
|
Acolyte
Joined: 08 Feb 2004 Posts: 51
|
sorry to barge into this thread.... I have not found a way to save just a particular definition. say i have 100 queues defined on a queue manager and i want the definition of just one particular queue (to recreate it elsewhere) can we just save the one queue definition to a file? |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Dec 15, 2006 3:53 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Use save qmgr and save all definitions.
Use find to get to the start of the queue.
Clear to top of file.
Navigate to the bottom of the definition
Clear to the bottom of the file ....
Et voila...
Or use the -1 flag, grep and then modify the file to have all the lines as needed....
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
wschutz |
Posted: Fri Dec 15, 2006 4:09 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
Or use the -1 flag, grep and then modify the file to have all the lines as needed....
|
fj is correct, that's why the -1 flag was introduced..... _________________ -wayne |
|
Back to top |
|
 |
exerk |
Posted: Mon Dec 18, 2006 9:06 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Alternatively if you are using the MO71 support pac you can save down to file individual object definitions. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Dec 18, 2006 4:05 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
exerk wrote: |
Alternatively if you are using the MO71 support pac you can save down to file individual object definitions. |
If you happen to be running on Windows.
Otherwise, grep solves most problems. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|