[UNIX, Linux, Windows, IBM i]

Backing up queue manager configuration

Backing up queue manager configuration can help you to rebuild a queue manager from its definitions if both the queue manager configuration and log data is lost due to the hardware failure and the queue manager is unable to restart or to be recovered from the log.

About this task

[UNIX, Linux, Windows]On UNIX, Linux®, and Windows, you can use the dmpmqcfg command to dump the configuration of an IBM® MQ queue manager.

[IBM i]On IBM i, you can use the Dump MQ Configuration (DMPMQMCFG) command to dump the configuration objects and authorities for a queue manager.

Procedure

  1. Make sure that the queue manager is running.
  2. Depending on your platform, use one of the following commands to back up the queue manager configuration:
    • [UNIX, Linux, Windows] On UNIX, Linux, and Windows: Execute the Dump MQ Configuration command, dmpmqcfg, using the default formatting option of (-f mqsc) MQSC and all attributes (-a), use standard output redirection to store the definitions into a file. For example:
      
      dmpmqcfg -m MYQMGR -a > /mq/backups/MYQMGR.mqsc
      
    • [IBM i] On IBM i: Execute the Dump MQ Configuration command (DMPMQMCFG) using the default formatting option of OUTPUT(*MQSC) and EXPATTR(*ALL), use the TOFILE and TOMBR to store the definitions into a physical file member. For example:
      
      DMPMQMCFG MQMNAME(MYQMGR) OUTPUT(*MQSC) EXPATTR(*ALL) TOFILE(QMQMSAMP/QMQSC) TOMBR(MYQMGRDEF)