cscpasswd (Managing users)

Format

cscpasswd [-h]
-user login-user-ID
-pass login-password
{-print
|-cscmnguser new-user-ID
-cscmngpass new-password
|-mng Manager-name
-mnguser new-user-ID
[-mngpass new-password]
|-csc HCSC-server-name
-cscuser new-user-ID
-cscpass new-password}

Function

Changes the user information according to specified conditions. After the command terminates normally, the changed information takes effect the next time you log in to the window or the next time the command is invoked.

By setting up default values for mandatory options, such as the login user ID, in the HCSC-Manager command definition file, you can omit the specification of these values in this command.

For details about how to use this command, see 2.4.2 Setting user information in the uCosminexus Service Platform System Setup and Operation Guide.

Arguments

-h

Displays the usage of commands. When you specify this option, all other options are ignored even if specified.

-user login-user-ID ~ <one-byte alphanumeric characters and underscores (_)> ((1 to 16 characters))

Specifies the user ID that is used to log in to HCSC-Manager.

-pass login-password ~ <one-byte alphanumeric characters and underscores (_)> ((1 to 16 characters))

Specifies the password that is used to log in to HCSC-Manager.

-print

Displays the HCSC-Manager user IDs managed by HCSC-Manager, the user IDs that will access Manager, and the user IDs that will access the database used by the HCSC server.

-cscmnguser new-user-ID ~ <one-byte alphanumeric characters and underscores (_)> ((1 to 16 characters))

Specifies the new user ID for HCSC-Manager.

-cscmngpass new-password ~ <one-byte alphanumeric characters and underscores (_)> ((1 to 16 characters))

Specifies the password for the new HCSC-Manager user ID.

-mng Manager-name ~ <one-byte alphanumeric characters and underscores (_)> ((1 to 16 characters))

Specifies the Manager name that was entered during the Manager setup. Specify this option to change the user information to log in to Manager. Specify the Manager name that is specified in the HCSC server configuration definition file.

-mnguser new-user-ID ~ ((at least 1 character))

Specifies the new user ID for Manager.

-mngpass new-password ~ ((at least 1 character))

Specifies the password for the new Manager user ID. Specify this option only if a password has been set for the Manager user ID to be changed.

-csc HCSC-server-name ~ <one-byte alphanumeric characters and underscores (_)> ((1 to 8 characters))

Specifies the HCSC server name that was entered when the HCSC server is set up. Specify this option to change the user information used to log in to the HCSC server.

-cscuser user-ID-to-be-changed ~ ((at least 1 character))

Specifies the user ID for the database that the HCSC server uses.

-cscpass password-to-be-changed ~ ((at least 1 character))

Specifies a password for the user ID of the database used by the HCSC server to be changed.

Examples of input

(1) To change the HCSC-Manager user ID to user1 and the password to password

cscpasswd -user admin -pass admin -cscmnguser user1 -cscmngpass password

(2) To change the user ID of the Manager named Manager to admin and the password to admin

cscpasswd -user admin -pass admin -mng Manager -mnguser admin -mngpass admin

(3) To change the user ID of the database accessed by the HCSC server HCSC to server1 and the password to password

cscpasswd -user admin -pass admin -csc HCSC -cscuser server1 -cscpass password

(4) To change the user ID of the database accessed by the HCSC server HCSC to "user1" and the password to "pass"

cscpasswd -user admin -pass admin -csc HCSC -cscuser \"user1\" -cscpass \"pass\"

(5) To display the HCSC-Manager user information

cscpasswd -user admin -pass admin -print

Display format

To display the user information (when -print is specified)

HCSC-Manager:HCSC-Manager-user-ID
+ Manager-name:User-ID-corresponding-to-the-Manager-name
HCSC-server-name:User-ID-corresponding-to-the-HCSC-server-name
HCSC-server-name:User-ID-corresponding-to-the-HCSC-server-name
...
+ Manager-name:User-ID-corresponding-to-the-Manager-name
HCSC-server-name:User-ID-corresponding-to-the-HCSC-server-name
...

Note
If a user ID is not set for the database, the user ID corresponding to the HCSC server name is not displayed.

Return values

Return valueMeaning
0The command terminated normally.
1The command terminated abnormally.
3An exclusion error occurred.
9An error occurred when checking the execution permission.

Notes

If you forget the HCSC-Manager user ID and password, you can initialize the HCSC-Manager user by entering the following command:

cscpasswd -clean

After the user is initialized, both the user ID and the password are assumed to be admin. Make sure that you change this user ID and password after initialization.