Browsing a message queue
If you cannot use the IBM® MQ Console to browse message queues, you can run sample programs on an IBM MQ client instead.
The sample programs are the accessible method for browsing message queues on the IBM MQ Appliance. The sample programs are located in
MQ_INSTALLATION_PATH\Tools\c\samples\bin (Windows) and
MQ_INSTALLATION_PATH/samp/bin (Linux). You can run the
sample programs that are supplied with the client to browse message queues.
- For information on running sample programs on a client that connects to a queue manager on an IBM MQ Appliance, see Setting up a queue manager to accept client connections.
- For detailed information on using the browse sample programs, see The Browse sample programs in the IBM MQ documentation.
To browse messages by using the sample program from the client system command line:
- Enter the
command:
For example:amqsbcgc queue_name queue_manager_name
amqsbcgc Q test1
- When prompted, enter the password for the user ID running the sample program (note that the password is displayed in plain text).
- Information about the message queues is displayed, followed by messages from the queue.