Author |
Message
|
rocky |
Posted: Wed Jun 25, 2008 2:17 am Post subject: Saveqmgr Query |
|
|
Novice
Joined: 01 Jun 2008 Posts: 20
|
Hi all,
I am using solaris box,
When i use saveqmgr -m Qmanagername -f filename
I get the following error..
(mqutils.c) Received message is not of type MQADMIN (got )
(mqutils.c) MQGET failed for reply queue. MQCC=2 MQRC=2317
Can you please tell me what might be the error?
Its a production box |
|
Back to top |
|
 |
Gaya3 |
Posted: Wed Jun 25, 2008 2:28 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
2317: MQRC_FORMAT_NOT_SUPPORTED
whats your MQ Version? and saveqmgr version too _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
rocky |
Posted: Mon Jun 30, 2008 11:44 pm Post subject: |
|
|
Novice
Joined: 01 Jun 2008 Posts: 20
|
Hi,
MQ V5.3 and saveqmgr support pac MS03. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jul 01, 2008 3:27 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
MS03 is not the version of Saveqmgr. It's the number of the support pack that Saveqmgr comes in. The version is hopefully 6.0.3a, which is what you will get if you download it right now.
rocky - last week I sent you a private message asking you to contact me for direct assistance with this problem and included an email address for you to contact me AT.
Please contact me at that email address so I can help you with this. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Gaya3 |
Posted: Tue Jul 01, 2008 3:33 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
rocky
Jeff is the right person to contact ....
MS03 is his child _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
rocky |
Posted: Tue Jul 01, 2008 3:51 am Post subject: |
|
|
Novice
Joined: 01 Jun 2008 Posts: 20
|
Hi Jeff,
I did not get any mail id of yours to contact,i used the same version of saveqmgr.Can you please clarify me regarding this.
Thanks,
Rocky. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jul 01, 2008 4:22 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
MS03 is my adopted child, loved none the less for that.
Rocky - near the top of this page, on the right hand side (at least in English) is a set of two links "Profile:: You have 1 new message" (it likely says that for you. If you click on "You have 1 new message", it will take you to the private message section of this site, where you will find the private message from me.
For the rest of the world, as reasonably as I can post this, you can contact me by email in the following manner. My first initial, followed by my last name (please spell CAREFULLY! DO NOT SWITCH the E and the R), to the U.S. portion of the IBM company.
<part1><part2>@<part3>.<part4>.<part5> _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
rocky |
Posted: Thu Jul 03, 2008 2:17 am Post subject: |
|
|
Novice
Joined: 01 Jun 2008 Posts: 20
|
Hello Jeff,
I forgot to mention that when i use the saveqmgr script on a queue manager in the production box it works fine but the problem starts,when i lock down all the system objects, it gives me the above error can you please tell me which all system objects output the saveqmgr script accesses |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jul 03, 2008 11:12 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Saveqmgr does not run well unless it is running as a user who is in mqm group - ideally as the mqm user itself. This is mostly the result of how the command server operates.
You can read the source code yourself to find out what queues it opens.
Please contact me by email, as directed, for specific, personal, individual assistance. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
rocky |
Posted: Thu Jul 10, 2008 10:09 pm Post subject: |
|
|
Novice
Joined: 01 Jun 2008 Posts: 20
|
Hi Jeff,
This is the scenario which i have done it in windows machine please do look into it.
C:\runmqsc QM1
5724-H72 (C) Copyright IBM Corp. 1994, 2004. ALL RIGHTS RESERVED.
Starting MQSC for queue manager QM1.
alter qmodel(SYSTEM.DEFAULT.MODEL.QUEUE) MAXMSGL(1) MAXDEPTH(0)
9 : alter qmodel(SYSTEM.DEFAULT.MODEL.QUEUE) MAXMSGL(1) MAXDEPTH(0)
AMQ8008: WebSphere MQ queue changed.
dis QUEUE(SYSTEM.DEFAULT.MODEL.QUEUE)
10 : dis QUEUE(SYSTEM.DEFAULT.MODEL.QUEUE)
AMQ8409: Display Queue details.
QUEUE(SYSTEM.DEFAULT.MODEL.QUEUE) TYPE(QMODEL)
ACCTQ(QMGR) ALTDATE(2008-07-11)
ALTTIME(10.11.36) BOQNAME( )
BOTHRESH(0) CRDATE(2008-06-10)
CRTIME(17.28.4 DEFPRTY(0)
DEFPSIST(NO) DEFSOPT(EXCL)
DEFTYPE(TEMPDYN) DESCR( )
DISTL(NO) GET(ENABLED)
HARDENBO INITQ( )
MAXDEPTH(0) MAXMSGL(1)
MONQ(QMGR) MSGDLVSQ(PRIORITY)
NOTRIGGER NPMCLASS(NORMAL)
PROCESS( ) PUT(ENABLED)
QDEPTHHI(80) QDEPTHLO(20)
QDPHIEV(DISABLED) QDPLOEV(DISABLED)
QDPMAXEV(ENABLED) QSVCIEV(NONE)
QSVCINT(999999999) RETINTVL(999999999)
NOSHARE STATQ(QMGR)
TRIGDATA( ) TRIGDPTH(1)
TRIGMPRI(0) TRIGTYPE(FIRST)
USAGE(NORMAL)
end
C:\saveqmgr -m QM1 -f test1.txt
SAVEQMGR V6.0.3
Compiled for Websphere MQ V6.0 on Aug 22 2006
Requesting attributes of the queue manager...
(mqutils.c) No reply msg, make sure command server is started (strmqcsv qmgr-name)
C:\dspmqcsv QM1
WebSphere MQ Command Server Status . . : Running |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Jul 11, 2008 1:35 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I really would have preferred if you would have answered my email.
From the main source file saveqmgr.c,
Code: |
/* SAVEQMGR.* is the prefix for the name of the dynamic queue to which */
/* the command server will send the messages generated in response to */
/* our request. This will be based on the definition of the queue */
/* SYSTEM.DEFAULT.MODEL.QUEUE */ |
Code: |
if (CompCode!=MQCC_FAILED) {
strcpy( ReplyToQ, "SAVEQMGR.*" );
CompCode = OpenQ( hConn
, LclQMgrName
, "SYSTEM.DEFAULT.MODEL.QUEUE\0"
, &ReplyToQ
, MQOO_INPUT_EXCLUSIVE
, &hReplyQ
);
}/* End if*/ |
...
So, yes. If you set SYSTEM.DEFAULT.MODEL.QUEUE to have a MAXMSGLN of 1, then SAVEQMGR will not be able to receive any reply messages from the command server, as the Command Server will not be able to put any reply messages to the reply queue.
If you need any further assistance with this, please contact me by email. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
rocky |
Posted: Wed Jul 16, 2008 4:55 am Post subject: |
|
|
Novice
Joined: 01 Jun 2008 Posts: 20
|
Hi Jeff,
My sincere apologies for not contacting you by your personal mail id.
Thanks a lot for your clarification on the saveqmgr script.I have gone through the source code and i have clarified all my doubts.
Thanks,
Rocky. |
|
Back to top |
|
 |
|