Author |
Message
|
hp1411 |
Posted: Thu May 12, 2016 4:06 pm Post subject: Removing all MQ authorizations |
|
|
Newbie
Joined: 17 Oct 2015 Posts: 9
|
Hello,
I messed up my queue manager authorizations while playing around with the settings and would like to remove all current authorizations for all objects(topics, queues, channels etc) and then set them up again
Is there a way to remove all current authorizations on the queue manager?
Unfortunately, i did not make a back up of the authorizations before i started monkeying around.
any help would be much appreciated.
Thanks |
|
Back to top |
|
 |
hughson |
Posted: Thu May 12, 2016 8:15 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
There's no command that I can think of that would delete them all, but if you have a GUI MQ administration tool that allows you to select multiple things and then delete them, that would be one way. MQGem's MO71 does that, and I'm sure others do that too.
Cheers
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu May 12, 2016 9:50 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
You could just take a dump of the QMGR configs using dmpmqcfg and remove all 'authrec' type records from the file.
Then delete the QMGR and apply the clean (i.e. uses all the default settings) set of objects to the new 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 |
|
 |
fjb_saper |
Posted: Fri May 13, 2016 1:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
smdavies99 wrote: |
You could just take a dump of the QMGR configs using dmpmqcfg and remove all 'authrec' type records from the file.
Then delete the QMGR and apply the clean (i.e. uses all the default settings) set of objects to the new qmgr. |
Why remove all the authrecs when you can tailor your dump not to include authrecs??  _________________ MQ & Broker admin |
|
Back to top |
|
 |
markt |
Posted: Fri May 13, 2016 2:29 am Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
Personally, I do it rather differently ... from a dummy queue manager I take the SYSTEM!AUTH!DATA!QUEUE file and copy it over the top of the file on the real (STOPPED) queue manager. That saves me having to recreate qmgrs frequently during testing cycles, getting back to a known state. Sometimes things like @class records may hang around otherwise.
This approach is not official, documented, guaranteed to work and all the other usual caveats. |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri May 13, 2016 4:12 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
I'm guessing that you actually meant...
This approach is not official, not documented, not guaranteed to work, and all the other usual caveats. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
|