Technical Stuff

Start from basics

Installation and configuration of IBM Websphere MQ

Installation and configuration of IBM Websphere MQ
Installation and configuration of IBM Websphere MQ
5 (100%) 2 votes

Hi Every One ! Today we are going to discuss regarding installation and configuration of IBM Websphere MQ version 9.

So, Lets begin with pre-requisite first !!

Pre-Requisites (Hardware/Software):

1 . 64 bit Linux

2 . MQ Installable - IBM_MQ_9.0.4.0_LINUX_X86-64.tar

 

MQ Installation Steps:

Step 1:

                Login as a root user.

               sudo bash       

Step 2:

                 Store the below installable in the path where you want to install

                  Websphere MQ(IBM_MQ_9.0.4.0_LINUX_X86-64.tar).

 

Step 3:

                Go to the folder where you have stored installable for Websphere

                  MQ(IBM_MQ_9.0.4.0_LINUX_X86-64.tar).

                                          cd  MQ/

 

Step 4:

                  Extract the installation files from the tar file.

                  tar -xvf IBM_MQ_9.0.0.0_LINUX_X86-64.tar

Step 5:

                 Go to the folder where you have Extracted installable for Websphere MQ 

                   cd MQServer/

Step 7:

                    Accepting license :

                   Accept the license agreement by executing mqlicense.sh file.

                 ./mqlicense.sh -accept

Step 8:

                Install IBM MQ. To install to the default location, /opt/mqm,

                use the rpm -ivh command to install each component

                 that you require.

Commands:

rpm -ivh MQSeriesRuntime-9.0.0-0.x86_64.rpm

rpm -ivh MQSeriesSDK-9.0.0-0.x86_64.rpm 

rpm -ivh MQSeriesSamples-9.0.0-0.x86_64.rpm

rpm -ivh MQSeriesJRE-9.0.0-0.x86_64.rpm 

rpm -ivh MQSeriesGSKit-9.0.0-0.x86_64.rpm 

rpm -ivh MQSeriesClient-9.0.0-0.x86_64.rpm 

rpm -ivh MQSeriesExplorer-9.0.0-0.x86_64.rpm 

rpm -ivh MQSeriesServer-9.0.0-0.x86_64.rpm

Step 9: Installation Verification. 

              1) Folder Structure Verification : We use rpm -qa command to

                  ensure MQ is Installed.

                   rpm -qa

              2) Check MQ binaries are available under /opt/mqm.

 

             3) MQ Version Check : Check the MQ version via dspmqver command.

 

MQ Configuration Steps:

Step 1: 

              Setting MQ 9 as a Primary Installation. We have chosen

              this installation to be the primaryinstallation on the system.

              Enter the following command at the command prompt:

 

[email protected]:/opt/mqm# /opt/mqm/bin/setmqinst -i -p /opt/mqm

Refreshing settings for primary installation 'Installation1' (/opt/mqm).

132 of 132 tasks have been completed successfully.

'Installation1' (/opt/mqm) set as the primary installation.

Syntax: MQ_INSTALLATION_PATH/bin/setmqinst -i -p MQ_INSTALLATION_PATH where MQ_INSTALLATION_PATH represents the directory where IBM MQ is installed.

Step 2: Setting up ‘mqm’ user

                The rpm command creates a user mqm, as a member of the group mqm.

                 Give this user a Password so that we can change the user and run the 

                MQ commands.

                cat /etc/passwd |grep mqm 

o/p->mqm:x:999:1001::/var/mqm:

               id mqm

o/p->uid=999(mqm) gid=1001(mqm) groups=1001(mqm) 1005(dell)

Step 3:

passwd mqm

Set new password for mqm user.

 

 Queue Manager and Queues Creation:

 

Step 1: For the next set of process, you have to login via mqm user.

                    su mqm

 

Step 2: Before issuing the command, create other parameters MQ, /MQ/logs and 

                /MQ/qmgrs owned by the user and group mqm, and with permissions rwxrwxr-x.

 

Step 3: Create a queue manager called TSTQMGR1 by entering the following command

                  crtmqm -ld /home/hp/MQ/logs -md /home/hp/MQ/qmgrs TSTQMGR1

 

Step 4: Start the queue manager by entering the following command:

                 strmqm TSTQMGR1

Step 5: Start MQSC by entering the following command:

               runmqsc TSTQMGR1

Step 6:  Define a local queue called QUEUE by entering the following command:

                DEFINE QLOCAL(CUSTOMER.IN)

Step 7: Stop MQSC by entering the following command

                 end

Step 8: List of all queues created.

               dis  q(*)

 

IIB To MQ Connectivity:

In order to send the data from ESB to MQ , we need to establish connectivity 

between them. Following are the steps for same.

 

Step 1: Add the user mqbrkrs to mqm group using the below command

               sudo usermod -a -G mqm mqbrkrs

 

Step 2: Add the queue manager name in the Integration node configurable properties. 

               Use the below commands.

  1. i) mqsistop TESTNODE_hp(BrokerName)

 

                ii)mqsichangebroker TESTNODE_hp(BrokerName)

                     -q TSTQMGR1(QueueManger)

 

                iii)mqsistart TESTNODE_hp

[email protected]:~/Cateina/Software/iibv10.0.0.15/iib-10.0.0.15$ mqsireportbroker TESTNODE_hp

BIP8927I: Integration node name TESTNODE_hp 

 Last mqsistart path  = '/home/hp/Cateina/Software/iibv10.0.0.15/iib-10.0.0.15/server'  

 mqsiprofile install path  = '/home/hp/Cateina/Software/iibv10.0.0.15/iib-10.0.0.15/server'  

 Work path = '/home/hp/iibconfig'  

 Integration node UUID = '772a2ddc-276a-11e9-a9c9-7f0001010000'  

 Process id = '8441'  

 Queue Manager = 'TSTQMGR1'  

 User lil path = ''  

 User exit path = ''  

 Active user exits = ''  

 LDAP principal = ''  

 LDAP credentials = ''  

 ICU converter path = ''  

 Trusted (fastpath) Queue Manager application = 'false'  

 Configuration change timeout = '300' seconds  

 Internal configuration timeout = '60' seconds  

 Statistics major interval = '60' minutes  

 Operation mode = 'advanced'  

 Fixpack capability level = '' (effective level '10.0.0.1')  

 Integration node registry format = 'v10.0'  

 Administration security = 'inactive'  

 Multi-instance integration node = 'false'  

 Shared Work Path = 'none'  

 Start as WebSphere MQ Service = 'undefined'  

 HTTP listener port = '7080'  

 Cache manager policy = 'default'  

 Cache manager port range = '2800-2819'  

 Integration registry hostname = ''  

 Default integration node CCSID = '1208'  

 

BIP8071I: Successful command completion. 

Do let me know ,how you find the blog.Was it helpful to you?So, if you like the blog.Do subscribe to get notified…!!!

To find it more interesting video is also attached.

Thank you!

Happy Learning !!!
If you have doubt or queries, you can definetely comment us or can mail us on [email protected]

If you have any Recommendation for future blog, You can email us on [email protected]

Follow us on.

www.instagram.com/technicalstuff.in

www.facebook.com/stufftechnical

Top Searches:

  1. https://technicalstuff.in/what-is-mq-and-mq-installation-on-docker/
  2. https://technicalstuff.in/application-security-and-its-concepts/
  3. https://technicalstuff.in/installation-of-ibm-integration-bus/
  4. Top Linux Commands
  5. Introduction to linux.
  6. Websphere hack
  7. My Story – Jboss Hardening
  8. Installation and configuration of Apache 2.2 on Linux
  9. DB Auto Re-connect.
  10. Redirection in Jboss.
  11. SSL Implementation in Jboss
  12. Best SSL Guide.
  13. Types of SSL.
  14. Best Jboss Server Security Guide.
  15. Introduction to hardening in Middleware.
  16. Hardening In Jboss EAP 5.1
  17. Enable TLS1.2 in Jboss EAP 7

 

Leave a Reply

%d bloggers like this: