+

Search Tips | Advanced Search

setmqxacred (add XA credentials)

Use the setmqxacred command to add or modify credentials in the IBM MQ XA credentials store.


Purpose

The setmqxacred command adds new credentials to the IBM MQ XA credentials store, or modifies or deletes existing credentials.


Syntax

setmqxacred -m ? QmgrName -xResourceMgrName-uuser-ppassword-xResourceMgrName-d-l


Required parameters

    -m QmgrName
    The queue manager for which authentication details are stored.


Optional parameters

    -x ResourceMgrName

    Specifies the resource manager name as defined in the qm.ini file.

    -u user

    Specifies the user name to use to connect to the database.

    -p password

    Specifies the password for the user.

    -d

    Deletes the credentials for the named resource manager.

    -l

    Lists the credentials in the queue manager store.


Examples

To add credentials for the queue manager QM1 for the resource mqdb2:

# setmqxacred -m QM1 -x mydb2 -u user1 -p Password1
Successfully added credentials for XA Resource Manager mydb2

To delete the credentials for the queue manager QM1 for the resource mqdb2:

# setmqxacred -m QM1 -x mydb2 -d
Successfully removed credentials for XA Resource Manager mydb2
To list details about the credentials stored in the credentials store.
# setmqxacred -m QM1 -l 
ResourceName(mydb2) UserName(user1)
ResourceName(myora) UserName(user2)
Parent topic: IBM MQ control commands reference

Last updated: 2020-10-04