408 Managing Disk Subsystems using IBM TotalStorage Productivity Center
repcli utility
To use the CLI you have to run the repcli utility. The default folder location of CLI for
Replication Manager is c:\Program Files\IBM\mdm\rm\rmcli. This utility can also run
commands in interactive mode, single command or a set of commands from a script.
Syntax of repcli command:
repcli [ { -ver|-overview|-script file_name|command | - } ] [ { -help|h|-? } ]
where
-ver
Displays the current version
-overview
Displays the overview information about the repcli utility, including command modes,
standard command and listing parameters, syntax diagram conventions, and user
assistance.
-script filename
Runs the set of command strings in the specified file outside of a repcli session. You
must specify a file name. The format options specified using the setoutput command
apply to all commands in the script. Output from successful commands routes to
stdout. Output from unsuccessful commands route to stderr. If an error occurs while
one of the commands in the script is running, the script exits at the point of failure and
return to the system prompt.
example:
repcli -script start_backup.scr
-command_string
Runs the specified command string outside of a repcli session.
example:
repcli lssess
cli commands for Replication
Following is a list of all commands available in CLI for TotalStorage Productivity Center for
Replication V2.1:
approvecpset lsgrp mksess showattribute
chcpset lslss mktgtpool showcpset
chgrp lspair quit showdev
chsess lspath repcli showgrp
chtgtpool lsseq rmcpset showmessage
exit lssess rmgrp showsess
flashsess lstgtpool rmpath showtgtpool
generatecpset lsvol rmsess startsess
help mkcpset rmtgtpool stopflashsess