addhost

Use the addhost command to add AIX® or IBM® z/OS® host system connections to the copy services management server.

For z/OS host systems, this command is required only if you are connecting to the host system by using an IP address or host name. If the copy services management server is installed on the z/OS host system, the host system connection is automatically added. This connection is referred to as the native z/OS connection.

Syntax

Read syntax diagramSkip visual syntax diagramaddhost-help-h-?-type aixzos_ip -portport-usernameuser_name-passwordpasswordIP_Address -

Parameters

-help | -h | -?
Lists help for the command. If you specify additional parameters and arguments, those parameters and arguments are ignored.
-type { aix | zos_ip }
Specifies the type of host system: AIX or z/OS.
-username user_name
Specifies the user name for a z/OS host system. This parameter is required to connect to a z/OS host.
-password password
Specifies the password for a z/OS host system. This parameter is required to connect to a z/OS host. If you do not include this parameter, you are prompted for the password. However, the password is not displayed in the command window.
-port port
Specifies the port to use to access the host system, if other than the default port. If a port is not specified, the default port is 5858 for z/OS and 9930 for AIX.
IP_Address | -
Specifies the IP address or host name of the host system.

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: Adding an AIX host system

The following command adds an AIX host system with the IP address 192.0.2.0. In this example, you could omit the -port parameter because port 9930 is the default.

csmcli> addhost -type aix -port 9930  192.0.2.0

Example: Adding a z/OS host system

The following command adds a z/OS host system with the IP address 192.0.2.1.

csmcli> addhost -type zos -username abcuser 192.0.2.1

The following output is returned:

Please enter a password for the host userid of abcuser:
 IWNR7000I Connection 192.0.2.1 added successfully.