Showing posts with label MQ. Show all posts
Showing posts with label MQ. Show all posts

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 .

Thursday, March 16, 2017

AMQ7017: Log not available | Queue Manager Not Getting Start | Queue Manager Active Log files got deleted

If you are not able to start queue manager and getting the Log Not Available error or if you have accidentally deleted queue manager log files which are there in QM/Active directory then follow the following process.


1. Create Same queue manager in another server with same configuration as your currently stopped queue manager.

Configuration - You can find it qm.ini file in your current queue manager which is not running

2. Copy the log files from new Queue manager / Active and paste them into Old queue manager /active location.

3. Copy amqhlctl.lfh from new queue manager's location - /var/mqm/log/QM and pate/replace it into old queue manager /var/mqm/log/QM location

4. Restart the queue manager using strmqm or restart the broker using mqsistart broker name.



Note - Make sure to take backup of qm.ini , active logs and amqhlctl.lhf file from old queue manager before replacing anything from new queue manager.


If still same error - then please make sure that you have given the correct permission to the log files and amqhlctl.lfh file





Hope it helps. All the best.


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>

Friday, March 20, 2015

How To Delete .Bar Files from IIB workspace using IIB tool kit

Well ,  if you are trying to delete the .bar files which you have manually or the IIB toolkit has created for you in your workspace , currently on right click you will not get the delete option for deleting these .bar files.

Here is the trick , you can delete these files by using the keyboard on windows 7 by using the Delete key. 

Steps -

1. Select the .bar file(s) you want to delete.
2. Press the 'Delete' button on keyboard

and that's it.

Screen Shot for your information:-