dspmqvar (display mq variables)

Display environment variables set for a specified queue manager.

Purpose

You can use the dspmqvar command to display the environment variables that are set for a specified queue manager.

Syntax

Read syntax diagramSkip visual syntax diagram dspmqvar -mQMgrName --kName

Parameters

-m QMgrName
Specifies the queue manager to display the environment variables for.
If you do not specify this parameter, the global environment variables are displayed.
If you do not specify any further parameters, the command displays all of the environment variables for the queue manager.
-k Name
Specifies which environment variable is displayed.

Usage notes

  • This command must be run from the IBM® MQ administration mode. If the system is in the IBM MQ administration mode the prompt includes mqa(mqcli)#. To enter the IBM MQ administration mode, enter mqcli on the command line. To exit the IBM MQ administration mode, enter exit on the command line.

Examples

  • The following command displays the value of the environment variable AMQ_SERVICE_DEBUG_REPOS for the queue manager QM1:
    dspmqvar -m QM1 -k AMQ_SERVICE_DEBUG_REPOS
    
  • The following command displays the values of all the global environment variables:
    dspmqvar
    

Related commands