[V8.0.0.4 Oct 2015]

setmqxacred (add XA credentials)

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

Purpose

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

Syntax

Read syntax diagramSkip visual syntax diagram setmqxacred -m ? QmgrName -xResourceMgrName-uuser-ppassword-xResourceMgrName-d-l

Required parameters

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

Optional parameters

-xResourceMgrName

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

-uuser

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

-ppassword

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)