| Author | Message | 
		
		  | kenifeh | 
			  
				|  Posted: Sun Apr 03, 2022 11:26 am    Post subject: IBM MQ Client installation/config on Ubuntu 20.04 Linux |   |  | 
		
		  | Newbie
 
 
 Joined: 03 Apr 2022Posts: 4
 
 
 | 
			  
				| Hi, I'm a newbie when it comes to the client end of MQ. We normally hook up server to server connections. I have a need to create a program that will utilize the client side to connect to a queue manager. Have skimmed multiple articles from IBM and appear to be stuck. 
 I got some configuration from the provider end ( Server End). I need to set up my end but not sure what to do.
 
 /var/mqm$ cat mqclient.ini
 #****************************************************************************************#
 #* Module name : mqclient.ini                                                           *#
 #* Type        : IBM MQ client configuration file                                       *#
 #* Function    : Define the client configuration                                        *#
 #*                                                                                      *#
 #****************************************************************************************#
 
 SSL:
 AllowTLSV13=TRUE
 ClientExitPath:
 ExitsDefaultPath=/var/mqm/exits
 ExitsDefaultPath64=/var/mqm/exits64
 
 
 
 /opt/mqm/bin$ sudo ./dspmqver
 Name:        IBM MQ
 Version:     9.2.0.0
 Level:       p920-L200710.TRIAL
 BuildType:   IKAP - (Production)
 Platform:    IBM MQ for Linux (x86-64 platform)
 Mode:        64-bit
 O/S:         Linux 5.13.0-37-generic
 O/S Details: Ubuntu 20.04.4 LTS (Focal Fossa)
 InstName:    Installation1
 InstDesc:
 Primary:     No
 InstPath:    /opt/mqm
 DataPath:    /var/mqm
 MaxCmdLevel: 920
 LicenseType: Trial
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kenifeh | 
			  
				|  Posted: Sun Apr 03, 2022 11:31 am    Post subject: Re: IBM MQ Client installation/config on Ubuntu 20.04 Linux |   |  | 
		
		  | Newbie
 
 
 Joined: 03 Apr 2022Posts: 4
 
 
 | 
			  
				| From provider side, I got below info 
 
 MQ Client Configuration               -- XXX Contacts --
 Middleware: 111-222-7721
 Network: 111-222-7726
 Sit Room: 111-222-7012
 
 Vendor:  Self
 Business Contact(s):
 Technical Contact(s):
 
 QMGR   IP               PORT
 CERT: QGC1   127.127.27.245   1531
 PROD: QGP2   127.127.28.267   1530
 
 Server Conn: TOPNOUCH_EXPRESS
 
 APPL Inbound Queue           Outbound Queue                    Messages Sent To .........
 TRK  ACE.TRK.EDI.INPUT    ACE.TRK.BYBA.OUTBOUND  To This Outbound Queue
 
 
 
 
   
	| kenifeh wrote: |  
	| Hi, I'm a newbie when it comes to the client end of MQ. We normally hook up server to server connections. I have a need to create a program that will utilize the client side to connect to a queue manager. Have skimmed multiple articles from IBM and appear to be stuck. 
 I got some configuration from the provider end ( Server End). I need to set up my end but not sure what to do.
 
 /var/mqm$ cat mqclient.ini
 #****************************************************************************************#
 #* Module name : mqclient.ini                                                           *#
 #* Type        : IBM MQ client configuration file                                       *#
 #* Function    : Define the client configuration                                        *#
 #*                                                                                      *#
 #****************************************************************************************#
 
 SSL:
 AllowTLSV13=TRUE
 ClientExitPath:
 ExitsDefaultPath=/var/mqm/exits
 ExitsDefaultPath64=/var/mqm/exits64
 
 
 
 /opt/mqm/bin$ sudo ./dspmqver
 Name:        IBM MQ
 Version:     9.2.0.0
 Level:       p920-L200710.TRIAL
 BuildType:   IKAP - (Production)
 Platform:    IBM MQ for Linux (x86-64 platform)
 Mode:        64-bit
 O/S:         Linux 5.13.0-37-generic
 O/S Details: Ubuntu 20.04.4 LTS (Focal Fossa)
 InstName:    Installation1
 InstDesc:
 Primary:     No
 InstPath:    /opt/mqm
 DataPath:    /var/mqm
 MaxCmdLevel: 920
 LicenseType: Trial
 |  |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | gbaddeley | 
			  
				|  Posted: Sun Apr 03, 2022 3:26 pm    Post subject: Re: IBM MQ Client installation/config on Ubuntu 20.04 Linux |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 25 Mar 2003Posts: 2538
 Location: Melbourne, Australia
 
 | 
			  
				| 
   
	| kenifeh wrote: |  
	| Hi, I'm a newbie when it comes to the client end of MQ. We normally hook up server to server connections. I have a need to create a program that will utilize the client side to connect to a queue manager. Have skimmed multiple articles from IBM and appear to be stuck |  Are you going to develop a program that will connect to a queue manager via MQ Client?  There are many methods of specifying the configuration for MQ Client connection. What language and platform will you be using?
 
 Generally, MQ Client needs a host name (or IP address), a port number (if the queue manager is listening on other than default port 1414), and the name of a a SVRCONN type channel defined on the queue manager. There may be a few other hurdles for host name resolution, firewall rules, MQ authentication, connection checking, PKI certificates, and authority to open MQ objects (eg. queues).
 _________________
 Glenn
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | omonoba | 
			  
				|  Posted: Sun Apr 03, 2022 5:19 pm    Post subject: Re: IBM MQ Client installation/config on Ubuntu 20.04 Linux |   |  | 
		
		  | Newbie
 
 
 Joined: 03 Apr 2022Posts: 1
 
 
 | 
			  
				| We are using Odoo ERP  and Django or PHP  for application(portal). The client will run on a VM with ubuntu 20.04. There VPN setup directly toward the provider running the server side. -Option #2: (Internet based IPSEC LAN to LAN Connection 
 This information we got from the provider - Running the Server
 
 
 MQ Client Configuration -- XXX Contacts --
 Middleware: 111-222-7721
 Network: 111-222-7726
 Sit Room: 111-222-7012
 
 Vendor: Self
 Business Contact(s):
 Technical Contact(s):
 
 QMGR IP PORT
 CERT: QGC1 127.127.27.245 1531
 PROD: QGP2 127.127.28.267 1530
 
 Server Conn: TOPNOUCH_EXPRESS
 
 APPL Inbound Queue Outbound Queue Messages Sent To .........
 TRK ACE.TRK.EDI.INPUT ACE.TRK.BYBA.OUTBOUND To This Outbound Queue
 
 
 
 
   
	| gbaddeley wrote: |  
	| 
   
	| kenifeh wrote: |  
	| Hi, I'm a newbie when it comes to the client end of MQ. We normally hook up server to server connections. I have a need to create a program that will utilize the client side to connect to a queue manager. Have skimmed multiple articles from IBM and appear to be stuck |  Are you going to develop a program that will connect to a queue manager via MQ Client?  There are many methods of specifying the configuration for MQ Client connection. What language and platform will you be using?
 
 Generally, MQ Client needs a host name (or IP address), a port number (if the queue manager is listening on other than default port 1414), and the name of a a SVRCONN type channel defined on the queue manager. There may be a few other hurdles for host name resolution, firewall rules, MQ authentication, connection checking, PKI certificates, and authority to open MQ objects (eg. queues).
 |  |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kenifeh | 
			  
				|  Posted: Mon Apr 04, 2022 3:10 pm    Post subject: Re: IBM MQ Client installation/config on Ubuntu 20.04 Linux |   |  | 
		
		  | Newbie
 
 
 Joined: 03 Apr 2022Posts: 4
 
 
 | 
			  
				| Still requesting for help for the below. @Omonoba is my colleague. We are both working on this together 
 
 
   
	| omonoba wrote: |  
	| We are using Odoo ERP  and Django or PHP  for application(portal). The client will run on a VM with ubuntu 20.04. There VPN setup directly toward the provider running the server side. -Option #2: (Internet based IPSEC LAN to LAN Connection 
 This information we got from the provider - Running the Server
 
 
 MQ Client Configuration -- XXX Contacts --
 Middleware: 111-222-7721
 Network: 111-222-7726
 Sit Room: 111-222-7012
 
 Vendor: Self
 Business Contact(s):
 Technical Contact(s):
 
 QMGR IP PORT
 CERT: QGC1 127.127.27.245 1531
 PROD: QGP2 127.127.28.267 1530
 
 Server Conn: TOPNOUCH_EXPRESS
 
 APPL Inbound Queue Outbound Queue Messages Sent To .........
 TRK ACE.TRK.EDI.INPUT ACE.TRK.BYBA.OUTBOUND To This Outbound Queue
 
 
 
 
   
	| gbaddeley wrote: |  
	| 
   
	| kenifeh wrote: |  
	| Hi, I'm a newbie when it comes to the client end of MQ. We normally hook up server to server connections. I have a need to create a program that will utilize the client side to connect to a queue manager. Have skimmed multiple articles from IBM and appear to be stuck |  Are you going to develop a program that will connect to a queue manager via MQ Client?  There are many methods of specifying the configuration for MQ Client connection. What language and platform will you be using?
 
 Generally, MQ Client needs a host name (or IP address), a port number (if the queue manager is listening on other than default port 1414), and the name of a a SVRCONN type channel defined on the queue manager. There may be a few other hurdles for host name resolution, firewall rules, MQ authentication, connection checking, PKI certificates, and authority to open MQ objects (eg. queues).
 |  |  |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | gbaddeley | 
			  
				|  Posted: Mon Apr 04, 2022 3:20 pm    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 25 Mar 2003Posts: 2538
 Location: Melbourne, Australia
 
 | 
			  
				| MQ Client 9.2 is supported on Ubuntu 20.04. The client is free to install. 
 You can do MQI calls from Django/Python and PHP. Search and discover. Read about MQ development in-depth. Look at the sample programs. Enjoy the ride, MQ is not hard
  _________________
 Glenn
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kenifeh | 
			  
				|  Posted: Mon Apr 04, 2022 7:45 pm    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 03 Apr 2022Posts: 4
 
 
 | 
			  
				| 
   
	| gbaddeley wrote: |  
	| MQ Client 9.2 is supported on Ubuntu 20.04. The client is free to install. 
 You can do MQI calls from Django/Python and PHP. Search and discover. Read about MQ development in-depth. Look at the sample programs. Enjoy the ride, MQ is not hard
  |  
 Thanks gbaddeley.
 
 I just updated my mqclient.ini But still have some question
 
 
 
 SSL:
 AllowTLSV13=TRUE
 ClientExitPath:
 ExitsDefaultPath=/var/mqm/exits
 ExitsDefaultPath64=/var/mqm/exits64
 
 TCP:
 KeepAlive = Yes
 ClntSndBuffSize=32768
 ClntRcvBuffSize=32768
 Connect_Timeout=0
 IPAddressVersion = MQIPADDR_IPV4
 
 MessageBuffer:
 MaximumSize=-1
 Updatepercentage=-1
 PurgeTime=0
 
 #PreConnect:
 #	Module=myMod
 #	Function=myFunc
 #	Data=ldap://myLDAPServer.com:389/cn=wmq,ou=ibm,ou=com
 #	Sequence=1
 
 CHANNELS:
 DefRecon=YES
 ServerConnectionParms=XXXX_EXFFF.SVRCONN/TCP/100.100.100.228(1130)
 
 Is the above config good enough? But from my provide I also got something I am really not clear
 
 
 QMGR   IP               PORT
 CERT: QGC1   100.100.100.231   1131
 PROD: QGP2   100.100.100.228  1130
 
 Server Conn: XXXX_EXFFF
 
 APPL Inbound Queue           Outbound Queue                    Messages Sent To .........
 TRK  ACE.TRK.EDI.INPUT    ACE.TRK.BYBA.OUTBOUND  To This Outbound Queue
 
 Any idea what CERT or PROD means?
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | gbaddeley | 
			  
				|  Posted: Tue Apr 05, 2022 3:30 pm    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 25 Mar 2003Posts: 2538
 Location: Melbourne, Australia
 
 | 
			  
				| 
   
	| kenifeh wrote: |  
	| CHANNELS: DefRecon=YES
 ServerConnectionParms=XXXX_EXFFF.SVRCONN/TCP/100.100.100.228(1130)
 
 Is the above config good enough?
 |  
 https://www.ibm.com/docs/en/ibm-mq/9.2?topic=file-channels-stanza-client-configuration
 ServerConnectionParms is not supported by all MQ Client APIs.
 It configures a default connection that is used by all MQ apps on the server if they don't specify their own.
 It does not support SSL/TLS encryption.
 
 If you have MQ Client installed, you can test it using amqscnxc command.
 
 Linux:
 /opt/mqm/samp/bin/amqscnxc QUEUEMANAGERNAME
 
 
 
   
	| Quote: |  
	| But from my provide I also got something I am really not clear
 QMGR   IP               PORT
 CERT: QGC1   100.100.100.231   1131
 PROD: QGP2   100.100.100.228  1130
 ...
 Any idea what CERT or PROD means?
 |  Did you ask the provider?  Intuition suggests CERT = Certification environment (eg. something production-like that is used to certify that code or setup is ready for production)
 PROD = You can guess this one
  _________________
 Glenn
 
 Last edited by gbaddeley on Tue Apr 05, 2022 3:33 pm; edited 1 time in total
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | hughson | 
			  
				|  Posted: Tue Apr 05, 2022 3:32 pm    Post subject: |   |  | 
		
		  |  Padawan
 
 
 Joined: 09 May 2013Posts: 1967
 Location: Bay of Plenty, New Zealand
 
 | 
			  
				| 
   
	| kenifeh wrote: |  
	| But from my provider I also got something I am really not clear 
 
 
 
   
	| Code: |  
	| QMGR   IP               PORT CERT: QGC1   100.100.100.231   1131
 PROD: QGP2   100.100.100.228  1130
 |  
 Any idea what CERT or PROD means?
 |  
 You should probably ask your provider and not us, but to me this looks like two alternative queue managers, the one labelled "CERT" is a queue manager name QGC1 and can be connected to with a CONNAME of  "100.100.100.231(1131)". The second one labelled "PROD" is a queue manager name QGP2 and can be connected to with a CONNAME of  "100.100.100.228(1130)". Perhaps these are two different environments?
 
 Cheers,
 Morag
 _________________
 Morag Hughson @MoragHughson
 IBM MQ Technical Education Specialist
 Get your IBM MQ training here!
 MQGem Software
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |