rmsession

The rmsession command closes an existing Global Mirror session.

Read syntax diagramSkip visual syntax diagram rmsession  -dev  storage_image_ID  -lss  ID  -quiet  Session_ID  " - "

Parameters

-dev storage_image_ID
(Optional) The storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID, 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 will temporarily override any defined value for devid for the current command.
Example: IBM.2107-75FA120
-lss ID
(Required) The logical subsystem (LSS) ID for the Global Mirror session that is being closed. The format of the LSS ID is a hexadecimal value in the range 00 - FE.
This parameter accepts a fully qualified LSS ID, which includes the storage image ID, or shortened version without the storage image ID if the -dev parameter is specified.
-quiet
(Optional) Turns off the end Global Mirror session confirmation prompt for this command.
Session_ID | -
(Required) The session ID on which Global Mirror processing is to be closed. A session ID is a hexadecimal number in the range 01 - FF.
If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) if you are using the DS CLI interactive mode.
Example of a session ID: 01

Example: Closing an existing Global Mirror session

dscli> rmsession -dev IBM.2107-75FA120 -lss 10 01
Output
Are you sure you want to close Session ID 01? y/n Y
Global Mirror Session ID 01 closed successfully.