chmc

Use the chmc command to set or change the hardware credentials for the hardware management console (HMC).

Syntax

Read syntax diagramSkip visual syntax diagramchmc-help-h-?-devtypedsds8000-ipip_address ;ip_address -usernameuser_name-passwordid -

Parameters

-help | -h | -?
Lists help for the command. If you specify additional parameters and arguments, those parameters and arguments are ignored.
-devtype ds | ds8000
Specifies the hardware type.
-ip ip_address[;ip_address]
Specifies the IP addresses of the primary and secondary management consoles. For single HMC configurations only one IP address is necessary. For dual HMC configurations, two IP addresses must be specified separated with a semicolon (;).
-username user_name
Specifies the user names of the management console.
-password
Prompts you for a new password for the device.
id | -
Specifies the ID of the management console to change.

Alternatively, use the dash (-) to specify that input for this parameter comes from an input stream (stdin). The dash is supported only in single-shot mode.

Tip: Use the lsmc command to list the management console IDs.

Description

To change the location of a storage system behind a HMC connection, use the chlocation command.

Example: Changing hardware credentials

The following command changes the user name and password for the HMC with ID HMC:127.0.0.1 and IP address 9.11.222.33.

csmcli> chmc -devtype ds -ip 127.0.0.1 -username admin -password HMC:127.0.0.1

The following output is returned:

Please enter a password for the device userid of admin: ******
IWNH1613I  User profile information for the storage device at HMC:127.0.0.1 
was successfully updated.