Exporting authorities to a file
You can export object authorities to a text file from IBM® MQ Explorer.
About this task
The authorities are formatted in the text file so that you can use lines from the file on the command line or in scripts to set authorities on other computers in your IBM MQ network. For example, a file could contain the following lines:
setmqaut -m QM_A -n Q1 -t queue -p user@domain +browse +chg +clr +dlt +dsp +put +inq +get +passall +passid +set +setall +setid
setmqaut -m QM_A -n Q1 -t queue -g mqm +browse +chg +clr +dlt +dsp +put +inq +get +passall +passid +set +setall +setid
You can export different subsets of object authorities:
Exporting all object authorities for a queue manager and its objects
About this task
To export all of the object authorities for a queue manager and the queue manager's objects:
Procedure
- In the Navigator view, right-click the queue manager, then click . A dialog opens.
- Type a name for the text file and save the authorities.
Results
All of the object authorities for the queue manager and its objects are saved in the text file.
Exporting all Create authorities for a queue manager
About this task
To export all of the Create authorities for a queue manager:
Procedure
- In the Navigator view, right-click the queue manager, then click The Manage Create Authorities dialog opens. For more information about the managing Create authorities, see .Granting the Create authority.
- Click Save As. A dialog opens.
- Type a name for the text file and save the authorities.
Results
All of the Create authorities for the queue manager are saved in the text file.
Exporting authorities by object type
About this task
To export all of the object authorities by object type:
All of the object authorities from the records that were found are saved in the text file.
Procedure
- In the Navigator view, right-click the queue manager, then click The Find Authorities dialog opens.
- Enter the search parameters as required, then click Find; for more information, see Finding the authorities of a user or group.
- Click Save As A dialog opens.
- Type a name for the text file and save the authorities.