HP StorageWorks SAN Virtualization Services Platform Manager command line interface user guide (AG781-96016, March 2009)

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 ex-
ecuted 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.
HP StorageWorks SAN Virtualization Services Platform Manager command line interface user
guide 17