Showing posts with label wmq. Show all posts
Showing posts with label wmq. Show all posts

Tuesday, February 20, 2018

The queue 'SYSTEM.MQEXPLORER.REPLY.MODEL' could not be opened for reason '2195'. (AMQ4402) | Open for temporary reply queue failed rc=2063

Ok you have done something with your queue manager , either you have changed some params or you have tried to kill it by using kill command or may be you have done something unknowingly and getting above error message. so here is how to fix this.



You are having problem with your user id which was registered with Queue manager. fix it.

setmqaut -m <QM Name> -t q -n SYSTEM.DEFAULT.MODEL.QUEUE -p <user id> +inq +browse +get +dsp


QM Name - Your queue manager name where you are trying to connect from MQ explorer or from RHFUTILC or RFHUTIL

User Id - user id which you are using to connect to Queue manager or basically user is where you are running your client ie. it may be your system user name. 

Thursday, January 25, 2018

How To Remove the First Message from a MQ Queue on Windows

If your queue manage is running on Windows and you have a queue with some messages but you want to remove the first message from that queue which due to some reason not getting process and holding up other messages in turn.


There are few ways to remove that message.


Use RFHUTIL 

1.1 Download RFHUTIL from here http://www-01.ibm.com/support/docview.wss?uid=swg24000637

Open that link and go to the below section on the page



Click and HTTP and follow the instruction and unzip the file into you local drive.




1.2 Open the rfhutil.exe if your queue manage is running on your local system or go to step 2.1

1.3 Load Queue manager name & then queue namge
1.4 Clock on Browse once.
1.5 Now you have the first message loaded on your rfhtuil
1.6 Clock on READ now - make sure you click only once. and wait for the response
1.7 on response now you have cleared your first message from the queue.

2.1  if you have queue manager running on some other machine , use the rfhutilc.exe
2.2 follow the instruction here till step 4 only on this link - https://developer.ibm.com/answers/questions/397554/how-do-you-set-up-and-use-rfhutilcexe-to-connect-t/
2.3 now you are connected with your queue manage running on remote and loaded the queue as well now follow the step 1.5 to 1.7 mentioned above.

And you are done.


Use Qload

1.1 Download Qload from here http://www-01.ibm.com/support/docview.wss?uid=swg24009368

Open that link and go to the below section on the page

Click and HTTP and follow the instruction and unzip the file into you local drive.

1.2 Extract this into your local system.
1.3 go to the location from your cmd - C:\mo03\V1.9\Windows
1.4 run the command - qload -m IB9QMGR -I LARGE_MESSAGING_IN -f IB9QMGR.log -r 1
modify the command based on your requirement.  Eg.






As you can above command will clear the first message from queue and put into a file as well.

And you are done here. Thanks.


Feel free to put comment below in of any queries .

Monday, September 19, 2016

AMQ4032 - Command server not responding within timeout period

Command server not responding within timeout period. (AMQ4032)
  Command server not responding within timeout period. (AMQ4032)
  Severity: 10 (Warning)
  Response: Ensure that the command server is running and that the queue called 'SYSTEM.ADMIN.COMMAND.QUEUE' is configured to enable programs to get messages from it.

Solution for this :-  may be command server is not running , run following command against queue manager.

strmqcsv <queue manager name>