HP StorageWorks Storage Mirroring scripting guide (T2558-96074, February 2008)

2 - 2
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 commas) 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 Text Client or 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.