The command line client, Starting and using the command line client, The command line client -2 – HP Storage Mirroring Software User Manual

Page 34: Starting and using the command line client -2

Advertising
background image

3

-

2

The Command Line Client

The Command Line Client can be run from a command prompt. It can manage and monitor Storage Mirroring components
on any platform regardless of the Command Line Client platform. The Command Line Client is run from the operating system
command line and the DTCL commands are run from the Storage Mirroring command line.

Starting and using the Command Line Client

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 DTCL

Command

prompt will appear and the commands can be entered from that prompt. Any resulting errors are immediately

displayed.

Interactive Entry

!

File Entry

—Create a file with all of the DTCL 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 DTCL 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 DTCL commands you want to run and enter them in a single line 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\OpenView\Storage Mirroring

> dtcl -i

Command: login indy administrator ******* domain_name
User access level set to DT_FULL_ACCESS
Command:

C:\Program Files\OpenView\Storage Mirroring

> dtcl -f dtcl.txt

User access level set to DT_FULL_ACCESS
- List of rep sets -
Exchange enabled

C:\Program Files\OpenView\Storage Mirroring

>

login indy administrator password domain_name;
source indy;
repset list;

C:\Program Files\OpenView\Storage Mirroring

> dtcl login indy administrator

password; source indy; repset list
User access level set to DT_FULL_ACCESS
- List of rep sets -
Exchange enabled

C:\Program Files\OpenView\Storage Mirroring

>

NOTE:

Because CMD.exe strips two layers of quotation marks during processing, any DTCL 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.

Advertising