The cm_admin adduser utility creates CM users who have specific authority and database information. The authority to configure broker privilege, create database, and monitor status) can be granted to CM users.
cm_admin adduser options cmuser-name cmuser-password
options :
[{-b | --broker } authority]
[{-c | --dbcreate } authority]
[{-m | --monitor} authority]
[{-d | --dbinfo} database-info]
Option |
Description |
---|---|
-b |
Specifies the broker authority of a CM user to be created. |
-c |
Specifies the database creation authority of a CM user to be created. |
-m |
Specifies the monitoring authority of a CM user to be created. |
-d |
Specifies the database information of a CM user to be created. |
Configuring broker authority (-b)
The following example shows how to create a CM user "testcm" and its password "testcmpwd", and configure the value of broker authority to monitor.
cm_admin adduser -b monitor testcm testcmpwd
Configuring database creation authority (-c)
The following example shows how to create a CM user "testcm" and its password "testcmpwd", and configure the value of database creation authority to admin.
cm_admin adduser -c admin testcm testcmpwd
Configuring status monitoring authority (-m)
The following example shows how to create a CM user "testcm" and its password "testcmpwd", and configure the value of its status monitoring authority to admin.
cm_admin adduser -m admin testcm testcmpwd
Adding database information (-d)
The following example shows how to add database information "testdb;dba;localhost,30000" to a CM user "testcm".
cm_admin adduser -d "testdb;dba;localhost,30000" testcm testcmpwd