Skip to main content

IBM MQ CLI

IBM MQ CLI is a command-line interface (CLI) tool for managing IBM MQ. It provides functionalities to list queue managers, create queue managers, create queues, and configure queues.

Features

  • List all queue managers
  • Create new queue managers
  • Create queues in a specified queue manager
  • Configure existing queues in a specified queue manager

Requirements

  • IBM MQ must be installed and configured on your system.
  • Python 3.x must be installed.
  • Necessary permissions to execute IBM MQ commands.

Installation

From PyPI

To install from PyPI, run the following command:

pip install ibm-mq-cli

From Source

Clone this repository or download the package from PyPI. Navigate to the project directory. From Source To install from the source, run the following commands:

git clone https://github.com/yourusername/ibm_mq_cli.git
cd ibm_mq_cli
pip install .

Usage

The CLI tool provides the following subcommands:

list_qm: List all queue managers.
create_qm: Create a new queue manager.
create_queue: Create a queue in a specified queue manager.
configure_queue: Configure an existing queue in a specified queue manager.

List All Queue Managers

To list all queue managers, use the following command:

ibm-mq-cli list_qm

Create a New Queue Manager

To create a new queue manager, use the following command:

ibm-mq-cli create_qm <queue_manager_name>
Example:
ibm-mq-cli create_qm QM1

Create a Queue

To create a queue in a specified queue manager, use the following command:

ibm-mq-cli create_queue <queue_manager_name> <queue_name>
Example:
ibm-mq-cli create_queue QM1 DEV.QUEUE.1
ibm-mq-cli create_queue MyQueueManager MyQueue

Configure a Queue

To configure an existing queue in a specified queue manager, use the following command:

ibm-mq-cli configure_queue <queue_manager_name> <queue_name> <configuration>
Example:
ibm-mq-cli configure_queue QM1 DEV.QUEUE.1 "MAXDEPTH(5000)"
ibm-mq-cli configure_queue MyQueueManager MyQueue "MAXMSGL(104857600)"

Start Queue Manager

To start a queue manager, use the following command:

ibm-mq-cli start_qm <queue_manager_name>
Example:
ibm-mq-cli start_qm QM1
ibm-mq-cli start_qm MyQueueManager

Stop Queue Manager

To stop a queue manager, use the following command:

ibm-mq-cli stop_qm <queue_manager_name>
Example:
ibm-mq-cli stop_qm QM1
ibm-mq-cli stop_qm MyQueueManager

Display Queues

To display all queues in a specified queue manager, use the following command:

ibm-mq-cli display_queues <queue_manager_name>
Example:
ibm-mq-cli display_queues QM1
ibm-mq-cli display_queues MyQueueManager

Get Queue Permissions

To get permissions for a user on all queues in a specified queue manager, use the following command:

ibm-mq-cli get_permissions <queue_manager_name> <user>
Example:
ibm-mq-cli get_permissions QM1 myuser
ibm-mq-cli get_permissions MyQueueManager anotheruser

Example Output

Permissions for queue 'DEV.QUEUE.1':
Entity ubuntu has the following authorizations for object DEV.QUEUE.1:
        get
        browse
        put
        inq
        set
        crt
        dlt
        chg
        dsp
        passid
        passall
        setid
        setall
        clr

Release files for ibm-mq-cli 0.7.131

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ibm-mq-cli 0.7.131
File Size Uploaded
ibm_mq_cli-0.7.131.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ibm-mq-cli 0.7.131
File Interpreter ABI Platform
ibm_mq_cli-0.7.131-py3-none-any.whl Python 3 none any Details

Total release size: 12.2 kB

Release files / ibm_mq_cli-0.7.131.tar.gz

Download URL ibm_mq_cli-0.7.131.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
030f46f26b037403dfe5fb4a6f06c0b26613a16be747730ada38c9ba7823c2dc
BLAKE2b-256 checksum
How to use checksums
341c3ab42faeb71d6145308a900d75a9bdfb75e7a303e442104bb5b93447baea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.4

Release files / ibm_mq_cli-0.7.131-py3-none-any.whl

Download URL ibm_mq_cli-0.7.131-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dff648de1584db407ae74a54ab742a5e197b6ea0432718fc70f520e6c32a2514
BLAKE2b-256 checksum
How to use checksums
285bf083d610f4bb594d3faf97423a640dfb18b822b59a56c7a704e8fe17802a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.7.131 This release

2 release files

0.7.14

2 release files

0.7.12

2 release files

0.7.11

2 release files

0.7.10

2 release files

0.7.9

2 release files

0.7.8

2 release files

0.7.7

2 release files

0.7.6

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.9

2 release files

0.6.8

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page