HP StorageWorks Command View XP Command Line Interface (CLI) reference guide (B9357-96161, January 2006)
Command View XP Command Line Interface (CLI) reference guide 189
-category <category>
Must be one of the following:
• lun
• host_group
• luse
[-col <column_name...>]
Use selective column names if the output file contains more fields than needed for the create or delete
commands that are generated.
-csv
The -csv option must be used to produce comma-separated output.
-o <output_file>
The file where the output is to be written. This can be a filename only or a path and filename.
The above functionality is targeted only for CLI output generated with the -cmd and -category options,
prior CLI output should be edited by the user manually to feed it as input.
Example 1
Enter: list lun -cmd create -category lun -csv -o createluns.txt
CV_CLI 20036 (R/W)> list lun -cmd create -category lun -csv
Sending Request to CV server...
20036 : The server has latest data.
create lun 1A,1A-G00,1,0,6
create lun 1A,1A-G00,2,0,7
create lun 1A,1A-G00,30,0,11
create lun 1A,1B-G00,8,0,52
create lun 1A,1B-G00,9,0,53
create lun 1B,1B-G00,4,0,14
create lun 1B,1B-G00,b,0,1b
create lun 1B,1B-G00,c,0,1c
create lun 1C,1C-G00,2,0,12
create lun 1C,1C-G00,3,0,13
create lun 1C,1C-G00,4,0,14
create lun 1C,1C-G00,5,0,15
create lun 1C,1C-G00,6,0,16
Example 2
Enter: list lun -cmd delete -category lun -csv -o deletelun.txt
CV_CLI 20036 (R)> list lun -cmd delete -category lun -csv
Sending Request to CV server ...
20036 : The server has latest data.
delete lun 1A,1A-G00,1,0,6
delete lun 1A,1A-G00,2,0,7
delete lun 1A,1B-G00,9,0,53
delete lun 1A,1B-G00,a,0,54
delete lun 1B,1B-G00,3,0,13
delete lun 1B,1B-G00,10,0,20
delete lun 1B,1B-G00,21,2,1
delete lun 1C,1C-G00,0,0,10
delete lun 1C,1C-G00,2,0,12
delete lun 1C,1C-G00,3,0,13
delete lun 1C,1C-G00,4,0,14