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.
To browse messages by using the sample program from the client system command line:
  1. Enter the command:
    
    amqsbcgc queue_name queue_manager_name
    
    For example:
    
    amqsbcgc Q test1
    
  2. When prompted, enter the password for the user ID running the sample program (note that the password is displayed in plain text).
  3. Information about the message queues is displayed, followed by messages from the queue.