The name of the "queue" file on the disk does not map exactly to the queue name.
- For normal queues created with older version of IBM MQ the file would be called
q
in the directory /var/mqm/qmgrs/QMGR/queues/QUEUE_NAME
where the .
character in the queue name is replaced with !
.
- For normal queues created with newer versions of MQ (I believe 7.5 and later) the actual file is called
/var/mqm/qmgrs/QMGR/queues/QUEUE_NAME
where the .
character in the queue name is replaced with !
, it is no longer a directory with a file called q
.
- For dynamic queues the directory or file name will not contain the actual dynamic queue name at all and will be similar to
!!GHOST!DEADBEEF!0!DEADBEEF!99
.
To find the exact location of the queue file use the dspmqfls
command as in the example below:
dspmqfls -m QMGR -t ql SYSTEM.DEFAULT.LOCAL.QUEUE
The output will look like this:
WebSphere MQ Display MQ Files
QLOCAL SYSTEM.DEFAULT.LOCAL.QUEUE
/var/mqm/qmgrs/QMGR/queues/SYSTEM!DEFAULT!LOCAL!QUEUE
Note that the output is the same no matter if the location is a directory or the actual file. If you check and it is a directory you can look in the directory for the file named q
, if it is a file that is the actual "queue" file.
Example of a queue Directory:
$ls -ld /var/mqm/qmgrs/QMGR/queues/SYSTEM!DEFAULT!LOCAL!QUEUE
drwxrwx--- 2 mqm mqm 96 Apr 7 2010 /var/mqm/qmgrs/QMGR/queues/SYSTEM!DEFAULT!LOCAL!QUEUE
Example of a queue File:
$ls -ld /var/mqm/qmgrs/QMGR/queues/SYSTEM!DEFAULT!LOCAL!QUEUE
-rw-rw---- 1 mqm mqm 2048 Jul 19 2016 /var/mqm/qmgrs/QMGR/queues/SYSTEM!DEFAULT!LOCAL!QUEUE
NOTE APAR IT09611 which applies to IBM MQ v7.5.0.0 through 7.5.0.5 can cause some queue file names to be truncated, this is fixed in 7.5.0.6.