Viewing queue manager error log files by using the command line

You can view the queue manager error log files by using the dspmqerr command on the command line. The log files are displayed on the command line. You can choose to display the most recent error log file, or a specific log file.

About this task

The command is based on the UNIX less command. The less command provides controls for navigating the contents of a file, and you can use these controls when you view system error logs.

Procedure

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

    mqcli

  2. Choose which queue manager error log file to view:
    • To display the most recent log file for a queue manager, enter the following command:

      dspmqerr -m QMgrName

      Where:
      QMgrName
      Specifies the name of the queue manager that the log file is associated with.
    • To list error log files for a queue manager, enter the following command:

      dspmqerr -l -m QMgrName

      Where:
      QMgrName
      Specifies the name of the queue manager that the log files are associated with.
    • To display a specific log file for a queue manager, enter the following command:

      dspmqerr -m QMgrName Filename

      Where:
      QMgrName
      Specifies the name of the queue manager that the log file is associated with.
      Filename
      Specifies the name of the system error log file to display.
  3. Optional: Exit the IBM MQ administration mode by entering the following command:

    exit

Example

The following command lists all the error logs for the queue manager QM1:
dspmqerr -l -m QM1