rmhostconnect

The rmhostconnect command removes a SCSI host port connection from a storage image.

Read syntax diagramSkip visual syntax diagram rmhostconnect  -dev  storage_image_ID  -quiet  host_connection_ID  " - "

Parameters

-dev storage_image_ID
(Optional) The storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for all host connections, do not set the devid variable in your profile or through the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter temporarily overrides any defined value for devid for the current command.
-quiet
(Optional) Turns off the removal confirmation prompt.
host_connection_ID | -
(Required) The host connect ID, which is a unique identifier that uses any number from 0 - FFFE within the scope of a storage image. This parameter accepts a fully qualified ID (includes manufacturer.machine type-serial number/hostconnectID) or a shortened version if the -dev parameter is specified.
For a storage system, example of a fully qualified host connection ID: IBM.2107-75FA120/1.
If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Attention: Use caution when you work with connection IDs to ensure that you specified the connection that you want to delete. For example, if you intend to delete connection ID 0005 and type 000, the system deletes connection ID 0. Or, if you want to delete connection ID 0020 and type 002, the system deletes connection ID 2. The system does not consider the leading zeros, and 000 is interpreted as connection ID 0 and 002 is interpreted as connection ID 2.

Example: Removing a SCSI host port connection from a storage image

dscli> rmhostconnect -dev IBM.2107-75FA120 1

Output

Are you sure you want to delete Host Connection IBM.2107-75FA120/1? 
y/n Y
Host Connection IBM.2107-75FA120/1 successfully deleted.