100% found this document useful (2 votes)
432 views6 pages

IBM MQ Upgrading Steps

The document describes the steps to upgrade IBM MQ, including uninstalling the existing version, backing up files, installing the new version, and starting an existing queue manager with the new IBM MQ version.

Uploaded by

yirga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
432 views6 pages

IBM MQ Upgrading Steps

The document describes the steps to upgrade IBM MQ, including uninstalling the existing version, backing up files, installing the new version, and starting an existing queue manager with the new IBM MQ version.

Uploaded by

yirga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

IBM MQ Upgrading steps

1. Take screen shoot directory structure

2. Stop all QMGR


3. Back up /var/mqm and /usr/mqm
4. Uninstall existing IBM MQ
-To uninstall an installation in the default location /usr/mqm
#installp –u mqm
-To uninstall an installation in non-default location
#installp –R usill -u mqm
To ensure that there are no more MQ files shows as installed

Remove

#/etc/opt/mqm/mqinst.ini
Install the upgraded file

Unzip the files

# gzip -dc IBM_MQ_9.2.0.6_AIX.tar.tgz | tar xvf –

#gunzip IBM_MQ_9.2.0.6_AIX.tar.tgz

#tar –xvf IBM_MQ_9.2.0.6_AIX.tar

Install the new version of IBM MQ

#cd MQServer

Install the code

#installp –acgXYd . all

Notice that the mqinst.ini is created

#cat /etc/opt/mqm/ mqinst.ini

Display mq installation

#dspmqinst

Change the installation path to primry

#setmqinst –I –p /user/mqm

Upgrade an existing queue manager

Display the status of queue manager

#dispmq

To migrate old queue manager to new version of IBM MQ ,need to start the queue manager with the
new version of IBM MQ

#strmqm quemanager

1. Run the following command to create the "mqm" user:


Copy
sudo useradd mqm
This command creates a new user named "mqm" on Linux or Unix-based
systems.
3. Run the following command to add the "mqm" user to the "root" group:
Copy
sudo usermod -aG root mqm
This command adds the "mqm" user to the "root" group, allowing it to have
the same privileges as the "root" user.
4. Verify that the user "mqm" is now a member of the "root" group by running the
following command:
Copy
groups mqm
To list users in Linux, you can use the cat command to view the contents of
the /etc/passwd file, which stores user account information. Here's how you
can do it:
1. Open a terminal or command prompt.
2. Run the following command to list all users:
Copy
cat /etc/passwd
If you only want to see a list of usernames without additional information,
you can use the awk command to extract the usernames from
the /etc/passwd file. Run the following command:
Copy
awk -F: '{print $1}' /etc/passwd
This command prints the first field (username) of each line in
the /etc/passwd file, using the colon (:) as the field separator.

IBM MQ:

1. dspmqver: Displays the version information of the installed IBM MQ.

2. crtmqm: Creates a new IBM MQ queue manager.

3. strmqm: Starts an IBM MQ queue manager.

4. endmqm: Stops an IBM MQ queue manager.

5. runmqsc: Runs MQSC commands interactively.

6. dspmq: Displays information about the IBM MQ queue manager.

7. amqsput: Puts a test message on a queue.

8. amqsget: Retrieves a message from a queue.

9. amqsbcg: Performs a bulk data transfer using a queue.

10. amqsbcgc: Performs a clustered bulk data transfer using a queue.

11. amqsbcg2: Performs a bulk data transfer using message groups.

12. amqsgbr: Permits a program to browse a queue.

13. amqsbcg3: Performs a bulk data transfer using a queue with persistence.

14. amqsputc: Puts a test message on a queue with a CCSID.

15. amqsgetc: Retrieves a message from a queue with a CCSID.


--- amqzfubx.c : 1605 -------------------------------------------------------

11/15/23 20:04:59 - Process(12190118.99) User(mqm) Program(amqrmppa)

Host(t24mq12) Installation(Installation1)

VRMF(9.1.0.12) QMgr(PRD.T24.QMGR.5)

Time(2023-11-15T17:04:59.861Z)

ArithInsert1(2) ArithInsert2(2035)

CommentInsert1(root)

CommentInsert3(root)

AMQ9557E: Queue Manager User ID initialization failed for 'root'.

EXPLANATION:

The call to initialize the User ID 'root' failed with CompCode 2 and Reason

2035. If an MQCSP block was used, the User ID in the MQCSP block was ''. If a

userID flow was used, the User ID in the UID header was 'root' and any CHLAUTH

rules applied prior to user adoption were evaluated case-sensitively against

this value.

ACTION:

Correct the error and try again.

----- cmqxrsrv.c : 2314 ---------

o create an "mqm" user and add it to the "root" group, you can follow these steps:

Open a terminal or command prompt with administrative privileges.

Run the following command to create the "mqm" user:

Copy

sudo useradd mqm

This command creates a new user named "mqm" on Linux or Unix-based systems.
Run the following command to add the "mqm" user to the "root" group:

Copy

sudo usermod -aG root mqm

This command adds the "mqm" user to the "root" group, allowing it to have the same privileges as
the "root" user.

Verify that the user "mqm" is now a member of the "root" group by running the following command:

Copy

groups mqm

user list and user creation on MQM

You might also like