Viewing system error log files

You can view the system 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 system error log file to view:
    • To display the most recent system error log file, enter the following command:

      dspmqerr -s

    • To list system error log files, enter the following command:

      dspmqerr -s -l

    • To display a specific system error log file, enter the following command:

      dspmqerr -s Filename

      Where:
      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 example displays the system error log file MQSystem.18.08.18-9.45.05.log:
dspmqerr -s MQSystem.18.08.18-9.45.05.log