HP StorageWorks Storage Mirroring Scripting Guide (T2558-96327, April 2009)

2 - 1
Clients and Scripts
The Storage Mirroring scripting language can be used in the Storage
Mirroring Command Line Client or in script files, which use the same
set of commands.
The Command Line Client
The Command Line Client is run from the operating system command line, and then Storage Mirroring
commands are run from the Storage Mirroring Command line. There are three different methods of
executing commands from the Command Line Client:
Interactive Entry—At the directory prompt where Storage Mirroring is installed, type the
command
DTCL –i. A Command prompt will appear and the Storage Mirroring commands can
be entered from that prompt. Any resulting errors are immediately displayed.
Interactive Entry
File Entry—Create a file with all of the Storage Mirroring commands you want to run. At the
directory prompt where Storage Mirroring is installed, type DTCL –f filename where
filename is the name of the file containing the Storage Mirroring commands. For example, you
might use the following
dtcl.txt file to log on to a machine and display its replication sets.
File Entry
DTCL.TXT Used in File Entry
Single Line Entry—Determine all of the Storage Mirroring commands you want to run and enter
them in a single line (separated by semi-colons) at the command prompt where Storage Mirroring
is installed. For example, you might use the following command to log on to a machine and display
its replication sets.
Single Line Entry
C:\Program Files\StorageWorks\Storage Mirroring> dtcl -i
Command: login alpha administrator ******* domain_name
User access level set to DT_FULL_ACCESS
Command:
C:\Program Files\StorageWorks\Storage Mirroring> dtcl -f dtcl.txt
User access level set to DT_FULL_ACCESS
- List of rep sets -
User data enabled
C:\Program Files\StorageWorks\Storage Mirroring>
login alpha administrator password domain_name;
source alpha;
repset list;
C:\Program Files\StorageWorks\Storage Mirroring> dtcl login alpha
administrator password; source alpha; repset list
User access level set to DT_FULL_ACCESS
- List of rep sets -
DataFiles enabled
C:\Program Files\StorageWorks\Storage Mirroring>
NOTE: Because the Windows command process (cmd.exe) strips two layers of quotation
marks during processing, any Storage Mirroring command that you use that requires
quotation marks must have three quotation marks around it. For example, if your
machine name had a space in it, login "machine name" username password would be
sufficient for the Command Line Client interactive entry or file entry. But for the
Command Line Client single line entry, you would have to use login """machine
name""" username password.