MQ Engineering Group


saveauth -- Save all authority settings for a queue manager


saveauth QMgrName


This script will read all authority settings for all queue manager objects, then write out 'setmqaut' commands that can be used to restore these settings. This can be useful as part of a backup strategy.

The script supports the queue manager, process names, namelists and queues. Temporary queues will be skipped.

The script needs to be run by a userid that has both inquire authority for the queue manager and filesystem read permission for the authority files. Typically, the userid used will be 'mqm'.


In order to create 'setmqaut' commands for all objects on queue manager 'TEST' and write the commands to the file 'saved.txt', run:

  saveauth TEST > saved.txt