Skip to content

Latest commit

 

History

History
152 lines (134 loc) · 4 KB

tools.md

File metadata and controls

152 lines (134 loc) · 4 KB

Which MQ versions PyMQI has been tested with?

PyMQI 1.3

System, architecture and MQ version IBM code name dspmqver
Linux x86, 64-bit, MQ 7.0 CZJ3ZML Name: WebSphere MQ
Version: 7.0.1.3
CMVC level: p701-103-100813
BuildType: IKAP - (Production)
Linux x86, 64-bit, MQ 7.1 WSMQ_LNX_ON_X86_64_7.1.0.2_EIM Name: WebSphere MQ
Version: 7.1.0.2
Level: p710-002-121029
BuildType: IKAP - (Production)
Platform: WebSphere MQ for Linux (x86-64 platform)
Mode: 64-bit
O/S: Linux 3.2.0-40-generic
InstName: Installation1
InstDesc:
InstPath: /opt/mqm
DataPath: /var/mqm
Primary: No
MaxCmdLevel: 711
Linux x86, 64-bit, MQ 7.5 WS_MQ_LIN_ON_X86-64_V7.5.0.1_EIM Name: WebSphere MQ
Version: 7.5.0.0
Level: p000-L120604
BuildType: IKAP - (Production)
Platform: WebSphere MQ for Linux (x86-64 platform)
Mode: 64-bit
O/S: Linux 3.2.0-40-generic
InstName: Installation1
InstDesc:
InstPath: /opt/mqm
DataPath: /var/mqm
Primary: No
MaxCmdLevel: 750

Installing and removing MQ on Ubuntu

Everything is based on http://www.gefira.pl/blog/2010/07/03/websphere-mq-and-ubuntu-howto/

Prerequisites

sudo apt-get install rpm sharutils

7.0 64-bit sudo mkdir -p /tmp/mq_license/license/ && \
sudo touch /tmp/mq_license/license/status.dat && \
sudo rpm -iavh --nodeps --force-debian \
./MQSeriesRuntime-7.0.1-3.x86_64.rpm \
./MQSeriesJava-7.0.1-3.x86_64.rpm \
./MQSeriesClient-7.0.1-3.x86_64.rpm \
./MQSeriesServer-7.0.1-3.x86_64.rpm \
./MQSeriesSDK-7.0.1-3.x86_64.rpm \
./MQSeriesSamples-7.0.1-3.x86_64.rpm \
./MQSeriesMan-7.0.1-3.x86_64.rpm \
&& sudo usermod -s /bin/bash mqm
7.1 64-bit

sudo ./mqlicense.sh -accept && sudo rpm -iavh --nodeps --force-debian \
./MQSeriesRuntime-7.1.0-2.x86_64.rpm \
./MQSeriesJava-7.1.0-2.x86_64.rpm \
./MQSeriesClient-7.1.0-2.x86_64.rpm \
./MQSeriesServer-7.1.0-2.x86_64.rpm \
./MQSeriesSDK-7.1.0-2.x86_64.rpm \
./MQSeriesSamples-7.1.0-2.x86_64.rpm \
./MQSeriesMan-7.1.0-2.x86_64.rpm \
&& sudo usermod -s /bin/bash mqm

7.5 64-bit

sudo ./mqlicense.sh -accept && sudo rpm -iavh --nodeps --force-debian \
./MQSeriesRuntime-7.5.0-0.x86_64.rpm \
./MQSeriesJava-7.5.0-0.x86_64.rpm \
./MQSeriesClient-7.5.0-0.x86_64.rpm \
./MQSeriesServer-7.5.0-0.x86_64.rpm \
./MQSeriesSDK-7.5.0-0.x86_64.rpm \
./MQSeriesSamples-7.5.0-0.x86_64.rpm \
./MQSeriesMan-7.5.0-0.x86_64.rpm \
&& sudo usermod -s /bin/bash mqm

Test environment

(As user mqm)

/opt/mqm/bin/crtmqm QM01
/opt/mqm/bin/strmqm QM01

echo "define qlocal(q1)" > commands.in
echo "define channel(svrconn.1) chltype(svrconn) mcauser('mqm')" >> commands.in # Note mcauser!
echo "alter qmgr chlauth(disabled)" >> commands.in # Dangerous!
/opt/mqm/bin/runmqsc QM01 < commands.in

/opt/mqm/bin/runmqlsr -m QM01 -t tcp -p 1434 &

Removing

(First stop the queue manager and runmqlsr listener)

sudo rpm -qa | grep "MQSeries" | xargs sudo rpm -e --force-debian --noscripts
sudo rm -rf /opt/mqm
sudo rm -rf /var/mqm
sudo userdel mqm