HP StorageWorks Command View XP Command Line Interface (CLI) reference guide (B9357-96161, January 2006)

188 Batch processing
The results are:
Sending request to the CV server ...
10039: The server has latest data.
Sending output to file: all.out
all.out contains:
Executing line#1...
list port -o port.out
Sending output to file : port.out
Executing line#2...
list ldev -o ldev.out
Sending output to file : ldev.out
port.out contains:
Executing line#1...
list port -o port.out
PortName
CL1-A
CL1-B
CL1-C
CL1-D
CL1-E
CL1-F
Example 2
This command and batch file will execute correctly.
list.txt contains:
list port -o port.out
list ldev -o ldev.out
The command entered is:
CV_CLI 10039 (R/W)> execute list.txt
The results are:
Sending request to the CV server ...
10039: The server has latest data.
Executing line#1...
list port -o port.out
Sending output to file : port.out
Executing line#2...
Redirecting output to be used as input
A number of list commands for the XP128/XP1024/XP10000/XP12000 can generate output that is
useful as input to other commands. Use the -cmd and -category options, as described below, to create
special output files.
The output files contains create or delete commands based on the results of the list commands.
They are formatted, and ready for execution, using the -f option or execute command.
Sample syntax
list lun -cmd <command_type> -category <category> [-col <column_name...>]
-csv -o <output_file>
-cmd <command_type>
Must be one of the following:
create
delete