dltmqras (delete mq ras)
Deletes the IBM® MQ error log files.
Purpose
You can use the dltmqras command to periodically purge IBM MQ log files.
For each file deleted, a message in the form File deleted:
filename
is written to MQSystem.log. You can
view MQSystem.log by using the dspmqerr command without
parameters.
Syntax
Parameters
- -a
- Specifies that all files of all types apart from queue manager logs are deleted.
- -d
- Specifies that general diagnostics files are deleted.
- -e
- Specifies that older error logs are deleted. The current error log (MQSystem.log) is not deleted.
- -f
- Specifies that FDC files are deleted.
- -h
- Specifies that HA files are deleted.
- -m QMgrName
- Specifies that service tool output for the specified queue manager are deleted.
- -p
- Specifies that the files in the mqtemporary: location are deleted.
- -t
- Specifies that trace files are deleted.
- -w
- Specifies that console log files are deleted.
- -y
- Specifies that the specified files are deleted without asking for confirmation.
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, entermqcli
on the command line. To exit the IBM MQ administration mode, enterexit
on the command line.
Examples
- The following command purges all types of log files without asking you for
confirmation:
dltmqras -a -y
- The following command purges FDC files:
dltmqras -f
- The following command purges all the service tool output for queue manager
qm1:
dltmqras -m qm1