HP StorageWorks P9000 Tiered Storage Manager Software 7.1 CLI Reference Guide (TB585-96011, May 2011)
CLI command return responses and output information
The CLI returns a return value after it has finished executing a process.
The following two types of CLI return values exist:
• If the return value is 0 or a positive value, the CLI has terminated normally.
• If the return value is a negative value, an error (such as a parameter error) was detected in
the CLI process.
When the CLI terminates normally, the processing results of the command are output to the standard
output. For examples of processing results, see the usage examples for each command. Note that
even when the CLI terminates normally, messages might be output to the standard error output. If any
errors are detected, error messages are output to the standard error output. Follow the error message
to help resolve the problem.
Checking the execution result of the task
Checking the execution results of tasks by simply examining the return values of the CLI commands is
usually not enough. To acquire the information about the executed tasks and check the results, use
the GetTasks command.
Displaying the CLI command Help
To display basic Help information, execute the CLI with help specified with no arguments.
• In Windows:
system-drive\TieredStorageManager\Tiered-Storage-Manager-version\CLI\htsmcli help
• In Solaris, HP-UX, and Linux:
# ./htsmcli help
To display the details on the format for each command, after help, specify the name of the command,
such as GetVolumes or CreateMigrationTask.
• In Windows:
system-drive\TieredStorageManager\Tiered-Storage-Manager-version\CLI\htsmcli help command-name
• In Solaris, HP-UX, and Linux:
# ./htsmcli help command-name
A description of the specified command is displayed, including the correct format and parameters.
CLI Reference Guide 37