exportcsv

Use the exportcsv command to export the copy sets in a session to a comma-separated values (CSV) file or to the console. You are prompted to overwrite the CSV file if it exists.

For IBM® DS8000® and IBM® TotalStorage Enterprise Storage Server® Model 800 storage systems, the volume ID is provided in the CSV file.

For other storage systems, the volume ID is provided in the CSV file if the volume does not have a name. If the volume has a name, the name is provided.

Syntax

Read syntax diagramSkip visual syntax diagramexportcsv-help-h-?-filefile_namesession_name -

Parameters

-help | -h | -?
Lists help for the command. If you specify additional parameters and arguments, those parameters and arguments are ignored.
-file file_name
Specifies the name and path of the CSV file. If you do not specify this parameter, the CSV output is displayed on the command-line interface.
session_name | -
Specifies the name of the session from which you are exporting the copy sets.

Example: Exporting copy sets to a file

The following command exports the copy sets in session session1 to the file c:\session1.csv.
csmcli> exportcsv -file c:\session1.csv session1

The following output is returned:

Exporting...
IWNC6506I  The export copy set command for session session1 succeeded.  The 
file was exported to the path: c:\session1.csv.

Example: Exporting copy sets to standard out

The following command exports the copy sets in session session1 to standard output:
csmcli> exportcsv session1

The following output is returned:

Exporting...
#203
#Metro Global Mirror w/ Practice
#Aug 25 1:44:16 PM

H1,H2,H3,I3,J3
DS8000:2107.NK791:VOL:1500,DS8000:2107.MW931:VOL:1500,
DS8000:2107.04131:VOL:1500,DS8000:2107.04131:VOL:1505,
DS8000:2107.04131:VOL:150A
DS8000:2107.NK791:VOL:1501,DS8000:2107.MW931:VOL:1501,
DS8000:2107.04131:VOL:1501,DS8000:2107.04131:VOL:1506,
DS8000:2107.04131:VOL:150B
DS8000:2107.NK791:VOL:1502,DS8000:2107.MW931:VOL:1502,
DS8000:2107.04131:VOL:1502,DS8000:2107.04131:VOL:1507,
DS8000:2107.04131:VOL:150C
DS8000:2107.NK791:VOL:1503,DS8000:2107.MW931:VOL:1503,
DS8000:2107.04131:VOL:1503,DS8000:2107.04131:VOL:1508,
DS8000:2107.04131:VOL:150D
DS8000:2107.NK791:VOL:1504,DS8000:2107.MW931:VOL:1504,
DS8000:2107.04131:VOL:1504,DS8000:2107.04131:VOL:1509,
DS8000:2107.04131:VOL:150E
ESS:2105.FCA57:VOL:1500,DS8000:2107.NF111:VOL:1505,
DS8000:2107.04131:VOL:1600,DS8000:2107.04131:VOL:1605,
DS8000:2107.04131:VOL:160A
ESS:2105.FCA57:VOL:1501,DS8000:2107.NF111:VOL:1506,
DS8000:2107.04131:VOL:1601,DS8000:2107.04131:VOL:1606,
DS8000:2107.04131:VOL:160B
ESS:2105.FCA57:VOL:1502,DS8000:2107.NF111:VOL:1507,
DS8000:2107.04131:VOL:1602,DS8000:2107.04131:VOL:1607,
DS8000:2107.04131:VOL:160C
ESS:2105.FCA57:VOL:1503,DS8000:2107.NF111:VOL:1508,
DS8000:2107.04131:VOL:1603,DS8000:2107.04131:VOL:1608,
DS8000:2107.04131:VOL:160D
ESS:2105.FCA57:VOL:1504,DS8000:2107.NF111:VOL:1509,
DS8000:2107.04131:VOL:1604,DS8000:2107.04131:VOL:1609,
DS8000:2107.04131:VOL:160E

IWNR1301I  The export of a copy set for session session1 succeeded.

Example: Exporting copy sets to standard out where the volume name is provided in the output

The following command exports the copy sets in the FlashSystem/IBM Spectrum® Accelerate Global Mirror Failover/Failback session xiv_gm_1 to standard output.
csmcli> exportcsv xiv_gm_1

The following output is returned:

Exporting...
#xiv_gm_1
#Global Mirror Failover/Failback
##Aug 25 9:48:26 AM

H1,H2
XIV:VOL:7803448:myvolume1,XIV:VOL:7804988:myvolume2

IWNR1301I The export of a copy set for session xiv_gm_1 succeeded.