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 » Can I exclude queue/channel while generating save qmgr outpu

Post new topic  Reply to topic
 Can I exclude queue/channel while generating save qmgr outpu « View previous topic :: View next topic » 
Author Message
jeevan
PostPosted: Tue Jun 12, 2007 7:38 am    Post subject: Can I exclude queue/channel while generating save qmgr outpu Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

My need is to list only kinds of channel for as we were testing both mq and pm4data in test but in prod, we will only different qmgr for mq messaging and mq for pm4data. Using saveqmgr, how can I only generate script for certain queue/channel?

Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jun 12, 2007 8:13 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The output of saveqmgr is a text file.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jeevan
PostPosted: Tue Jun 12, 2007 2:01 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

Jeff,

Sorry for unclear post. My questions is when I run saveqmgr, can i exclude some channel/queues to be included in the script file?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jun 12, 2007 2:09 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

What does the documentation say?

Is there a command line switch that will let you do this?

This is what my copy says in the "read.me" file
Quote:
Usage is:
./saveqmgr.<platform> [options], where [options] are one or more of the following optional switches
-h | -? : gives help (this)
-v version : determines which version of MQSC to generate
and can be '2','5','51','52','53' or '6'
The default is to generate mqsc at the version of the connected queue manager
-m lqmgr : is the name of the local qmgr to connect (MQCONN)
-r rqmgr : is the name of the remote qmgr (XMITQ name)
-f [file] : allows the output file to be named,
if -f is not specified, the output file defaults to SAVEQMGR.TST
if -f is specified without a filename, it is named "qmgrname".MQS.
-o : specifies to replace (overwrite) the output file
if the -o flag is not specified, then the default is to append if the file exists
(on iSeries, *REPLACE,*APPEND must be specified after the -o flag)
-F [file] : behaves the same as -f except no header line is created in the output file
(and CURDEPTH, ALTDATE and ALTTIME are not reported)
-c : directs output to STDOUT and overrides use of -f flag
-s : suppress creation of objects that begin with "SYSTEM*"
-R : create RESET CHANNEL commands for non-client/svrconn channels
-p : Create 'local queue' definitions from PERMDYN queues.
-i : Ignore 'pcf' error codes 'damaged object' 'unknown object'.
Sets RetCode to WARNING if this error encountered.
-q : Quiet mode, do not issue warning about unknown PCF attributes
-1 : generate entire DEFINE command on one line (which does NOT include ALTDATE etc)
-2 : on a 2nd line, generate the DEFINE as a comment (which DOES include ALTDATE etc)

The Client version of this program supports these additional flags:

If either the -a or -x switch is used, then MQCONNX will be used for the client connection
-a host : is the address of the host for a client connection (default is "localhost")
-x channel : is the SVRCONN name for a client connection (default is "SYSTEM.DEF.SVRCONN")
-C cipher spec : indicates to use an SSL cipher spec for this client connection
-k key repository : name of key respository directory if using SSL for client connection
-eX channel exit: X = 'y' for security, 's' for send, 'r' for receive
-dX "channel exit data": X = 'y' for security, 's' for send, 'r' for receive


BUT, as I just said.

The output of this program is a text file.

So you can edit it, either with a text editor, or a script.
_________________
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 » Can I exclude queue/channel while generating save qmgr outpu
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.