Unable to create message queues in IBM MQ 7.5 - ibm-mq

I am setting up my corporate laptop to install IBM MQ 7.5 and create a Queue Manager and create some queues inside it.
The installation of IBM MQ 7.5 got success. My user id (Ex.malai) is linked to 'mqm' user group.
Creation of Queue Manager
C:\Program Files\IBM\IIB\10.0.0.3>crtmqm A24QM
WebSphere MQ queue manager created.
Directory 'C:\Program Files (x86)\IBM\WebSphere MQ\qmgrs\A24QM' created.
The queue manager is associated with installation 'Installation1'.
Creating or replacing default objects for queue manager 'A24QM'.
Default objects statistics : 77 created. 0 replaced. 0 failed.
Completing setup.
Setup completed.
Starting the Queue Manager
C:\Program Files\IBM\IIB\10.0.0.3>strmqm A24QM
WebSphere MQ queue manager 'A24QM' starting.
The queue manager is associated with installation 'Installation1'.
5 log records accessed on queue manager 'A24QM' during the log replay phase.
Log replay for queue manager 'A24QM' complete.
Transaction manager state recovered for queue manager 'A24QM'.
WebSphere MQ queue manager 'A24QM' started using V7.5.0.0.
The above command looks ok. I launch the IBM MQ with my user id 'malai' and I see as below
The Queue Manager is Disconnected. I do not see the tree icon to expand the Queue Manager to create the Queues.
When I try creating the Queue Manger from GUI it is giving the below output
****************************************
* Command: "C:\Program Files (x86)\IBM\WebSphere MQ\bin\runmqsc" TESTQM
* Input: DEFINE LISTENER('LISTENER.TCP') TRPTYPE(TCP) PORT(1414) CONTROL(QMGR)
****************************************
5724-H72 (C) Copyright IBM Corp. 1994, 2011. ALL RIGHTS RESERVED.
Starting MQSC for queue manager TESTQM.
AMQ8135: Not authorized.
No MQSC commands read.
No commands have a syntax error.
All valid MQSC commands were processed.
exitvalue = 20
And also, even though I see the manager is in running state, once in 4/5 seconds the up green arrow goes to down red arrow and comes back.
I dont see any error in AMQERR01
I understand it is something to do with user group, rights and permission. Since this is a corporate laptop, I do not have admin rights to my computer (i can get temporarily). It is a dev setup and I would like to know what configuration do I need to do in order for MQ 7.5 to run in my machine.
Update:
When I try execute runmqsc it throws the below error
C:\Program Files\IBM\IIB\10.0.0.3>runmqsc A24QM
5724-H72 (C) Copyright IBM Corp. 1994, 2011. ALL RIGHTS RESERVED.
Starting MQSC for queue manager A24QM.
AMQ8135: Not authorized.
No MQSC commands read.
No commands have a syntax error.
All valid MQSC commands were processed.
Output of amqsput
C:\Program Files\IBM\IIB\10.0.0.3>amqsput A24QM
Sample AMQSPUT0 start
MQCONN ended with reason code 2059
I got a network admin and tried running the MQ Explorer and the cmd with 'Administrator' privileges. Login the PC with my id 'malai' and right click the MQ and select 'Run as Administrator' and login with admin id.
By doing that both runmqsc and MQ explorer works great. Does that giving any clue.

Add your UserId (malai) to the mqm group:
Open a Command Prompt and issue the following command:
net localgroup mqm malai /add
Then reboot Windows. Yes, reboot, its Windows. Then everything will work correctly with your UserId.
Also, why in the world are you installing MQ v7.5? Support for MQ v7.5 ended in April 2018!! Why didn't you install MQ v8.0 or v9.0 or v9.1??

Related

IBM MQ service on Windows not starting

What's the difference of amqsvc and strmqsvc?
I have installed IBM MQ and configured for multi instance. It uses amqsvc.exe to start the service as installed, the service is logon from a domain account, and the account is a member of group mqm.
It was working fine but yesterday for some unknown reason the service is not starting properly, here is what happened:
when amqsvc is run on automatic or manual, amqzxma0 runs on full cpu usage until timeout and windows prompted the service not starting with error 1053, but the MQ service is started, then I tried to start the queue manager but fail to start, however it can be started on interactive.
However I can start the service fine with strmqsvc and can start the queue manager normally. So what's the difference between these two and what is the problem behind it?
amqsvc is the actual windows service.
strmqsvc is the command used to start the above service.
The IBM v7.5 Knowledge Center documents the error 1053 as:
Windows: amqmsrvn.exe process removed
The amqmsrvn.exe DCOM process was replaced by a Windows service,
amqsvc.exe, in Version 7.1. This change is unlikely to cause any
problems. However, you might have to make some changes. You might have
configured the user that runs the IBM® WebSphere® MQ Windows service
MQSeriesServices without the user right to Log on as a service.
Alternatively, the user might not have List Folder privilege on all the subdirectories from the root of the drive to the location of the
service amqsvc.exe.
If you omitted the Log on as a service user privilege, or one of
the subdirectories under which IBM WebSphere MQ is installed does not
grant the List Folder privilege to the user, the MQ_InstallationName
IBM WebSphere MQ Windows services in Version 7.5 fails to start.
...
If you did not give the user the List Folder privilege, the Windows Service Control Manager adds an event: 7009: Timed out waiting for the
service to connect. The strmqsvc command reports error 1053.
Ensure that you have provided List Folder privilege on all the subdirectories from the root of the drive to the location of the service amqsvc.exe. This should resolve the issue.

can not create queue for QManager

I encountered a really wired problem. I have successfully install Websphere MQ on my windows machine and want to create QManager and Queue to connect to a remote Qmanager server. I have already created a QManager as you can see in the picture below. However, when I tried to create a queue for this QManager, I could not find any expand button as the IBM tutorial mentioned.
I have already tried to create a queue with MQSC but when I run runmqsc in the command prompt with administrator user, it shows AMQ8135: Not Authorized error!
Check your error logs (AMQERR01.LOG) for an explanation of why AMQ8135 was returned to the client - for security reasons clients aren't given more information and so you have to go to the logs to get the detail.
I suspect the user you're running MQ Explorer and runmqsc as isn't in the 'mqm' group, or is otherwise not authorised to connect to the queue manager.
Run your IBM MQ Explorer as administrator and it will solve most of the issues.

Can I change MQ Object Authority when it stopped

I have some stopped QMGRs. When I try to start them or delete them from MQ Explorer, I encounter this error:
AMQ7077: You are not authorized to perform the requested operation.
exitvalue=119
How can I change or remove the restrictions on this object?
You can start or delete a queue manager via the MQ Explorer too, so long as the queue manager and MQ Explorer are running on the same machine/installation. You must ensure that the MQ Explorer is running under an mqm user ID, just as you needed to do run the strmqm or dltmqm commands.
I figured it out that I can do this by command STRMQM 'qmName' or DLTMQM 'qmName' as an alternative to using MQ Explorer.

MQFTE Browse Remote Agent not enabled in MQ Explorer

I am trying file transfer between two windows servers connected over network in the same domain. I have successfully connected with remote agent through Explorer but when try to browse the destination directory in remote system I find it is not enabled. I do not see any specific error in agent logs.
I do not see any specific error in MQ or Agent logs as I am actually not able to do anything.
Is this because the user I use does not have write access in the remote server. If that is the case How can I make sure the user has write access in the remote server?. The user I use has write access on remote server on direct login. Please find attached screenshot.
When I run in command mode I get 2087 reason code
C:\>fteCreateTransfer -sa AGENT1 -sm hubQM -da AGENT3 -dm hubQ
M -w -dd "D:\MQFTE\Destination" "D:\MQFTE\Source\sample.txt"
5724-H72 Copyright IBM Corp. 2008, 2012. ALL RIGHTS RESERVED
BFGCL0003E: A messaging problem prevented the command from completing successful
ly, for queue SYSTEM.FTE.COMMAND.AGENT1 on queue manager hubQM. The WebSphere MQ
completion code was 2, and the reason code was 2087.
The 2087 means MQRC_UNKNOWN_REMOTE_Q_MGR. This indicates that the QMgr that your WMQ Explorer is connected to cannot resolve the QMgr where the remote agent is connected. You'll need to look at your FTE Command QMgr to make sure it has a path to the QMgr where the remote agent lives.

How might I delete selected alias queues in IBM Websphere's Queue Manager?

How might I delete selected alias queues in IBM Websphere's Queue Manager?
If you have a local sign-on to the server where MQ lives you can use the runmqsc facility to issue delete commands:
runmqsc qmgrname
delete qa(qalias.name)
You can use WebSphere MQ Explorer to remotely delete the QAliases in a graphical user interface.
You can use PCF commands in a custom application to issue delete against the queue.
For any of these, the ID connected to the queue manager must either be in the mqm group or have been granted rights to delete the queue. If the PCF commands are used (WMQ Explorer or custom code) the ID used must also have been granted access to put messages to SYSTEM.ADMIN.COMMAND.QUEUE or be in the mqm group. There are other GUI clients and applications available but they all rely on the same methods I've outlined here - direct access to runmqsc or ability to put to the command queue.
WebSphere MQ Explorer is available fore free download as SupportPac MS0T. (The main SupportPacs landing page is here.
The manual for PCF commands is here.

Resources