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

186 Batch processing
CVCLIScripting.txt: Instructions on running scripts using the -f option method.
configscript.txt: A script file for only listing the disk array configurations for an XP128/XP1024.
configscriptlegacy.txt: A script file for only listing the disk array configurations for an
XP48/XP512.
configModifyScript128_1024_12000.txt: A script file for making disk array configuration
changes to an XP128/XP1024/XP10000/XP12000.
configModifyScript512_48.txt: A script file for making disk array configuration changes to an
XP48XP512.
Restrictions of the -f option
The following commands cannot be used in a batch file executed with the –f option:
disconnect
execute
exit
help
kill session
manage
unmanage
update
Except when calling certain device and session administration commands, the first command in the file
should be a connect command. You can issue a connect command for a disk array only once in the
batch file.
Batch processing using the execute command
Use the execute command to run batch files during an interactive CLI session. Commands are processed
the same as in the cvcli -f case, but there are some restrictions. Before running the execute
command, you should always connect to a disk array first by issuing the connect command. Here’s an
example of using the execute command:
cvcli 10044(R)>execute listlun.txt
Use this method to specify the file that contains the CLI commands. This is an easy way to use generic
batch files for different disk arrays. Processing of commands for multiple disk arrays is not supported.
You can specify only one filename at a time. The filename can contain a relative or absolute path. A
relative path will be relative to the directory where the CLI was started.
Restrictions of the execute command
The following commands cannot be used as part of the input file with the execute command:
connect
disconnect
execute
exit
help
kill session
list session
manage
unmanage
update