The Message Queue User Manager utility (imqusermgr) lets you edit or populate a flat-file user repository. This section introduces the User Manager utility. Subsequent sections explain how you use the imqusermgr subcommands to accomplish specific tasks.
For full reference information about the imqusermgr command, see Chapter 13, Command Line Reference
Before using the User Manager, keep the following things in mind:
If a broker-specific user repository does not yet exist, you must start up the corresponding broker instance to create it.
The imqusermgr command has to be run on the host where the broker is installed.
You must have appropriate permissions to write to the repository,: namely, on Solaris and Linux, you must be the root user or the user who first created the broker instance.
Examples in the following sections assume the default broker instance.
The imqusermgr command has the subcommands add, delete, list, and update.
The add subcommand adds a user and associated password to the specified (or default) broker instance repository, and optionally specifies the user’s group. The subcommand syntax is as follows:
add [-i instanceName] -u userName -p passwd [-g group] [ -s]
The delete subcommand deletes the specified user from the specified (or default) broker instance repository. The subcommand syntax is as follows:
delete [-i instanceName] -u userName [ -s] [-f]
The list subcommand displays information about the specified user or all users in the specified (or default) broker instance repository. The subcommand syntax is as follows:
list [ -i instanceName] [-u userName]
The update subcommand updates the password and/or state of the specified user in the specified (or default) broker instance repository. The subcommand syntax is as follows:
update [ -i instanceName] -u userName -p passwd [ -a state] [-s] [ -f]
update [-i instanceName] -u userName -a state [-p passwd] [-s] [-f]
Table 7–2 lists the options to the imqusermgr command.
Table 7–2 imqusermgr Options
Option |
Description |
---|---|
-a activeState |
Specifies (true/false) whether the user’s state should be active. A value of true means that the state is active. This is the default. |
-f |
Performs action without user confirmation. |
-h |
Displays usage help. Nothing else on the command line is executed. |
-i instanceName |
Specifies the broker instance name to which the command applies. If not specified, the default instance name, imqbroker, is assumed. |
-p passwd |
Specifies the user’s password. |
-g group |
Specifies the user group. Valid values are admin, user, anonymous. |
-s |
Sets silent mode. |
-u userName |
Specifies the user name. |
-v |
Displays version information. Nothing else on the command line is executed. |