Viewing environment variables

You can view environment variables by using the dspmqvar command on the command line. You can view either global environment variables, or queue manager specific environment variables.

Procedure

  1. Enter the IBM® MQ administration mode by entering the following command:

    mqcli

  2. View one or more environment variables:
    • To view all global environment variables, enter the following command:

      dspmqvar

    • To view a specific global environment variable, enter the following command:

      dspmqvar -k Name

      Where:
      Name
      Specifies the name of the global environment variable to view.
      Ensure that the value of Name is correct before you use the command to view an environment variable. The value of Name is not validated.
    • To view all environment variables for a specific queue manager, enter the following command:

      dspmqvar -m QMgrName

      Where:
      QMgrName
      Specifies the queue manager for which the environment variable is viewed.
    • To view a specific environment variable for a specific queue manager, enter the following command:

      dspmqvar -m QMgrName -k Name

      Where:
      QMgrName
      Specifies the queue manager for which the environment variable is viewed.
      Name
      Specifies the name of the queue manager environment variable to view.
      Ensure that the value of Name is correct before you use the command to view an environment variable. The value of Name is not validated.
  3. Optional: Exit the IBM MQ administration mode by entering the following command:

    exit

Example

The following example views of the global environment variable MQSSLRESET:

dspmqvar -k MQSSLRESET