chhost

Use the chhost command to change the connection information for host systems that are connected to the copy services management server.

For z/OS® host systems, this command is applicable only if the copy services management server is connected to the host system by using an IP address or host name.

Syntax

Read syntax diagramSkip visual syntax diagramchhost-help-h-?-quiet-oldportport-newipIP_Address-newportport-newusernameuser_name-newpasswordpasswordIP_Address -

Parameters

-help | -h | -?
Lists help for the command. If you specify additional parameters and arguments, those parameters and arguments are ignored.
-quiet
Suppresses the confirmation prompt for this command. This flag answers yes to all confirmation prompts.
-oldport port
Specifies the old port number for the host system connection to be modified.
-newip IP_Address
Specifies the new IP address or host name of the host system connection to be modified.
-newport port
Specifies the new port number for the host system connection to be modified.
-newusername user_name
Specifies the new user name for the IBM® z/OS host system connection to be modified.
-newpassword password
Specifies the new password for the z/OS host system connection to be modified.
IP_Address | -
Specifies the IP address or host name of the host system connection to be modified.

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.

Example: Changing an AIX host system credentials

The following command changes the IP address and port number for an AIX® host system connection.
csmcli> chhost -oldport 9930 -newip 192.0.2.2 -newport 9931  192.0.2.0 

Example: Changing a z/OS host system credentials

The following command changes the user name for a z/OS host system connection.
csmcli> chhost -oldport 5858 -newusername xyzuser 192.0.2.1 
The following output is returned:
Are you sure you want to change the host 192.0.2.1? [y/n]:y
Please enter a password for the host userid of xyzuser:
IWNR7005I Update to connection 192.0.2.1:5858 successful.