
Chapter 1. TotalStorage Productivity Center for Replication introduction 17
1.5.1 Command line interface overview
In addition to the GUI interface, a command line interface (CLI) is also provided with your
installation. A command-line interface command consists of one to four types of components,
arranged in the following order:
The
command name
One or more flags
each followed by any flag parameters it might require
The
command parameter
Example 1-1 shows the CLI structure.
Example 1-1 CLI structure
csmcli command name -flag flag parameter -command parameter
The
command name specifies the task that the command-line interface is to perform. For
example, lssess tells the command-line interface to list sessions, and mksess tells the
command-line interface to create a session.
Flags modify the command. They provide additional information that directs the
command-line interface to perform the command task in a specific way. For example, the -v
flag tells the command-line interface to display the command results in verbose mode. Some
flags may be used with every command-line interface command. Others are specific to a
command and are invalid when used with other commands. Flags are preceded by a hyphen
(-), and may be followed immediately by space and a flag parameter.
Flag parameters provide information that is required to implement the command modification
that is specified by a flag. If you do not provide a parameter, then a default value is assumed.
For example, you can specify -v on, or -v off to turn verbose mode on or off; but if you
specify -v only, then the flag parameter is assumed to be on.
The
command parameter provides basic information that is necessary to perform the
command task. When a command parameter is required, it is always the last component of
the command; and it is not preceded by a flag. Some commands permit multiple command
parameters with each parameter separated by a blank space and not a comma (unlike flag
parameters that allow multiple values).
The CLI can be invoked in three different ways:
Single-shot
– cli> csmcli mkcpset –cptype fc mySession
Script
– cli> csmcli –script ~/scripts/volreport
Interactive
– cli> csmcli
Full details of the CLI can be found in the manual IBM TotalStorage Productivity Center for
Replication Command-Line Interface User’s Guide, SC32-0104.
Help can be obtained for the relevant syntax via the commands shown in Figure 1-16 on
page 18. In the first command csmcli help, we request generic help and as a result we are
presented with a list of valid commands. In the second instance we are requesting help on a
specific command via the csmcli help rmsess.