Author |
Message
|
WBI_user |
Posted: Mon Sep 15, 2014 9:52 am Post subject: Proper way to alter an auto defined receiver channel |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
I am running MQ V7 and had a need to ssl enabled a channel that was defined a long time ago. I than discovered that the channel was autodefined.
I cannot use runmqsc and the explorer to display or alter it.
I then stop the channel and then do the define a new receiver cahnnel with the same name. The define completed and then I am able to alter the channel attribute. Is this the right way to do it ? Did the new define actually deleted the original autodefined receiver ? I do not want to have unused residual MQ objects underneath the cover. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Sep 15, 2014 9:57 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Do you mean a cluster receiver channel? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
WBI_user |
Posted: Mon Sep 15, 2014 10:21 am Post subject: |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
No, just regular receiver channel |
|
Back to top |
|
 |
JosephGramig |
Posted: Mon Sep 15, 2014 11:26 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
I think the channel stop auto deleted the channel. Your new definition name matches what was coming in and should work the way you want it to.
Turn off auto defined channels on the Qmgr attributes. This is very bad mojo.
Trout the person that turned that on.  |
|
Back to top |
|
 |
WBI_user |
Posted: Wed Sep 17, 2014 6:30 am Post subject: |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
We had auto define disable for all Qmgrs. But as I said this was done long time ago and don't even know who did it. I just like to confirm that I did the right thing to fix the problem. This actually trigger one more question which is how can I find out how many more of these auto defined channels out there in my environment. I believe most of them are receiver channels. I am talking about non-cluster channels. |
|
Back to top |
|
 |
exerk |
Posted: Wed Sep 17, 2014 7:07 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
WBI_user wrote: |
...how can I find out how many more of these auto defined channels out there in my environment... |
Have a look at THIS. _________________ 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 |
|
 |
bruce2359 |
Posted: Wed Sep 17, 2014 10:29 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
WBI_user wrote: |
...how can I find out how many more of these auto defined channels out there in my environment. |
How many is far less important than identifying which channels are auto-defined.
Compare the MQSC script you use to populate your object definitions with the currently existing channel definitions. Those channel definitions that you did not create with your MQSC script must therefore be auto-defined. _________________ 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 |
|
 |
smdavies99 |
Posted: Wed Sep 17, 2014 10:41 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
bruce2359 wrote: |
Those channel definitions that you did not create with your MQSC script must therefore be auto-defined. |
Or defined by some Admin not following the normal procedures of documenting the changes and adding the define commands to the scripts that are under change control.
 _________________ 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 |
|
 |
hughson |
Posted: Thu Sep 18, 2014 9:48 am Post subject: Re: Proper way to alter an auto defined receiver channel |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
WBI_user wrote: |
I am running MQ V7 and had a need to ssl enabled a channel that was defined a long time ago. I than discovered that the channel was autodefined.
I cannot use runmqsc and the explorer to display or alter it. |
This surprises me - you should be able to see it just like any other defined channel. Once defined it's no different.
WBI_user wrote: |
I then stop the channel and then do the define a new receiver cahnnel with the same name. The define completed and then I am able to alter the channel attribute. Is this the right way to do it ? Did the new define actually deleted the original autodefined receiver ? I do not want to have unused residual MQ objects underneath the cover. |
If you used DEFINE REPLACE then the DEFINE command would over-ride what was there before.
As has been said by others, it would certainly do no harm to review your queue manager for any channels not following your shop's standards, or that are not in your back-up scripts, but they are just channel definitions like any other once they are created. So you should be able to just ALTER them as required to bring them into line with your requirements.
Cheers
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Sep 18, 2014 10:23 am Post subject: Re: Proper way to alter an auto defined receiver channel |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
hughson wrote: |
As has been said by others, it would certainly do no harm to review your queue manager for any channels not following your shop's standards, or that are not in your back-up scripts, but they are just channel definitions like any other once they are created. So you should be able to just ALTER them as required to bring them into line with your requirements.
Cheers
Morag |
You should determine the create/alter dates of channels; and any channels with create/alter dates newer than the last official, approved and documented definitions should be suspect. _________________ 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 |
|
 |
|