[UNIX, Linux, Windows, IBM i]

Restoring queue manager configuration

You can restore the configuration for a queue manager from a backup by first making sure that the queue manager is running and then running the appropriate command for your platform.

About this task

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

[IBM i]On IBM i, you can use the STRMQMMQSC command to restore the configuration objects and authorities for a queue manager.

Procedure

  1. Make sure that the queue manager is running.
    Note that, if damage to the data and logs is unrecoverable by other means, the queue manager might have been re-created.
  2. Depending on your platform, use one of the following commands to restore the queue manager configuration:
    • [UNIX, Linux, Windows]On UNIX, Linux, and Windows, run runmqsc against the queue manager, use standard input redirection to restore the definitions from a script file that is generated by the Dump MQ Configuration (dmpmqcfg) command (see Backing up queue manager configuration). For example:
      
      runmqsc MYQMGR < /mq/backups/MYQMGR.mqsc
      
    • [IBM i]On IBM i: Run STRMQMMQSC against the queue manager, and use the SRCMBR and SRCFILE parameters to restore the definitions from the physical file member that is generated by the Dump MQ Configuration (DMPMQMCFG) command (see Backing up queue manager configuration). For example:
      
      STRMQMMQSC MQMNAME(MYQMGR) SRCFILE(QMQMSAMP/QMQSC) SRCMBR(MYQMGR)