ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » How to recover the default channel definitions?

Post new topic  Reply to topic
 How to recover the default channel definitions? « View previous topic :: View next topic » 
Author Message
Yannanlu
PostPosted: Thu Mar 29, 2007 12:50 pm    Post subject: How to recover the default channel definitions? Reply with quote

Apprentice

Joined: 23 Jan 2002
Posts: 27

Due to security reason, we have removed most of the default channels. Now we want to create some of the channels. But we can not do that since the default channel is gone. We do not have any channels of the same type (RCVR). Is there any way to create the channel without the default definitions? How to recover the default channel definitions?

Thanks in advance
Back to top
View user's profile Send private message
Michael Dag
PostPosted: Thu Mar 29, 2007 10:21 pm    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

strmqm -c Qmgrname
_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Yannanlu
PostPosted: Fri Mar 30, 2007 4:26 am    Post subject: Reply with quote

Apprentice

Joined: 23 Jan 2002
Posts: 27

Thanks. I tried and it works. But it is almost same as to recreate the qmgr and to restore the definitions. I guess there is no way to recover them without stopping the qmgr.

From now on, I will set mcauser to disable those default channels rather than deleting them.

Thanks for the help,

Yannan
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Mar 30, 2007 4:55 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Well, you can also use saveqmgr against a different qmgr that has the default channels, and then use the resulting mqsc to recreate the definitions.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Yannanlu
PostPosted: Sat Mar 31, 2007 1:00 pm    Post subject: Reply with quote

Apprentice

Joined: 23 Jan 2002
Posts: 27

I have tried that. It did not work. It complains about missing object.

Thanks for reply.

Yannan
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Mar 31, 2007 5:26 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Yannanlu wrote:
Thanks. I tried and it works. But it is almost same as to recreate the qmgr and to restore the definitions. I guess there is no way to recover them without stopping the qmgr.

From now on, I will set mcauser to disable those default channels rather than deleting them.

Thanks for the help,

Yannan
Good call
We set a non existant user in the mcauser field.
You have to remember however to put the right value into every channel you create...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Sun Apr 01, 2007 2:18 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Yannanlu wrote:
I have tried that. It did not work. It complains about missing object.


Try creating SYSTEM.DEFAULT.LOCAL.QUEUE with a LIKE clause that points to an existing queue.

Then ALTER that to match the definitions you need. This should allow you to at least create all the rest of the qlocals.

Similarly, if you can't create any MODEL queues, do the same with SYSTEM.DEFAULT.MODEL.QUEUE, and etc.

Or go back to strmqm -c.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Michael Dag
PostPosted: Sun Apr 01, 2007 2:24 am    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

Jeff,
he wants to create a receiver channel, but has no channels of type receiver anymore... so there is no LIKE to use...
using another channel type as model will result in:
AMQ8151: WebSphere MQ object has different type
_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
jefflowrey
PostPosted: Sun Apr 01, 2007 4:15 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Oh, yeah. I guess strmqm -c is about the only way.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » How to recover the default channel definitions?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.