HP StorageWorks SAN Virtualization Services Platform Manager Command Line Interface User Guide (5697-0936, May 2011)

2 Using the VSM command line interface
A command line interface (CLI) was created for the Virtualization Services Manager (VSM)
application to make the management of some tasks easier. This CLI utility allows you to create and
run script files to perform virtualization tasks.
Any SAN Virtualization Services Platform (SVSP) domain requires a login operation. Due to security
issues, you want to define who can run CLI commands. Users can be defined with the VSM GUI.
A user name and its password is used in any CLI operation as the first operation before running
the command.
Syntax
The syntax of a command (where [...] means optional) is:
vsm_cli
vsm_cli -SD VSMDomainName UserName Password
vsm_cli -SD VSMDomainName UserName Password [-O output_file] -C CliCommand
vsm_cli [-SD VSMDomainName UserName Password] [-I input_file] ~
[-O output_file]
vsm_cli [-SD VSMDomainName UserName Password] [-I input_file] ~
[-OX output_file]
Options
-SD This option specifies the destination SVSP domain that follows the CLI
commands, and is valid when the server is attached to multiple SVSP domains.
Follow these guidelines:
1. To specify the SVSP domain where the CLI commands are to be executed
when running a single command with the -C option, the -SD option must
come first.
2. When running with an input text file (-I option), this argument is optional
for backwards compatibility with old scripts that were created before
support of the -SD argument. It allows you to run pre-multiple SVSP domain
scripts (that do not start with the SelectVSMDomain CLI command) in
multiple SVSP domain environments without the need to update the actual
input file.
The username and password arguments are not the operating system users,
but the SVSP domain-defined users. Each VSM manages the SVSP domain
and can define users as part of the SVSP-domain configuration. In order to
run the CLI command, you must have set up or defined a user (using the VSM
GUI) in order to log into the SVSP domain.
-C CliCommand This option executes the command specified in the command line. The
command is specified by a command name and a list of arguments separated
by commas. For example:
CliCommand -ARG1_NAME arg1_val1, ~
-ARG2_NAME arg2_val1 arg2_val2
where CliCommand is the name of the command,
ARG_NAME is the name of the argument,
arg_value is the value of the argument.
14 Using the VSM command line interface