ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » IBM MQ Client installation/config on Ubuntu 20.04 Linux

Post new topic  Reply to topic
 IBM MQ Client installation/config on Ubuntu 20.04 Linux « View previous topic :: View next topic » 
Author Message
kenifeh
PostPosted: Sun Apr 03, 2022 11:26 am    Post subject: IBM MQ Client installation/config on Ubuntu 20.04 Linux Reply with quote

Newbie

Joined: 03 Apr 2022
Posts: 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
View user's profile Send private message
kenifeh
PostPosted: Sun Apr 03, 2022 11:31 am    Post subject: Re: IBM MQ Client installation/config on Ubuntu 20.04 Linux Reply with quote

Newbie

Joined: 03 Apr 2022
Posts: 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
View user's profile Send private message
gbaddeley
PostPosted: Sun Apr 03, 2022 3:26 pm    Post subject: Re: IBM MQ Client installation/config on Ubuntu 20.04 Linux Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
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
View user's profile Send private message
omonoba
PostPosted: Sun Apr 03, 2022 5:19 pm    Post subject: Re: IBM MQ Client installation/config on Ubuntu 20.04 Linux Reply with quote

Newbie

Joined: 03 Apr 2022
Posts: 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
View user's profile Send private message
kenifeh
PostPosted: Mon Apr 04, 2022 3:10 pm    Post subject: Re: IBM MQ Client installation/config on Ubuntu 20.04 Linux Reply with quote

Newbie

Joined: 03 Apr 2022
Posts: 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
View user's profile Send private message
gbaddeley
PostPosted: Mon Apr 04, 2022 3:20 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
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
View user's profile Send private message
kenifeh
PostPosted: Mon Apr 04, 2022 7:45 pm    Post subject: Reply with quote

Newbie

Joined: 03 Apr 2022
Posts: 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
View user's profile Send private message
gbaddeley
PostPosted: Tue Apr 05, 2022 3:30 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
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
View user's profile Send private message
hughson
PostPosted: Tue Apr 05, 2022 3:32 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » IBM MQ Client installation/config on Ubuntu 20.04 Linux
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.