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

12 - 1
Restoration
1. Login to your target by using the login command.
2. Identify your source that you will be restoring to by using the source command.
NOTE: As noted in the Scripting Guide Introduction on page 1-1, this guide does not explain
Storage Mirroring features and functions, only the scripting aspects of Storage Mirroring.
For details on the different features and functions, see the Storage Mirroring User’s
Guide.
Command LOGIN
Description Log on to a Storage Mirroring machine
Syntax
LOGIN <machine> <username> <password> [domain]
Options
machine—Name of the machine
username—Name of the user. The username is limited to 100
characters.
password—Password associated with the user name. The password is
limited to 100 characters.
domain—If logging in using a domain account, this is the domain name.
If logging in using a local account, this is the machine name. The domain
is limited to 100 characters.
Examples
login alpha administrator ******
Notes
Options that contain non-alphanumeric characters must be enclosed in
quotation marks.
The password cannot be a Storage Mirroring keyword. These are any
DTCL command (source, target, and so on.) or any DTCL shortcut
command (env, mon, rep, and so on).
When scripting with this command, it will return one of three positive
numbers: 0 (no access granted), 1 (monitor access granted), or 2 (full
access granted).
Command SOURCE
Description Identifies a machine as the active source machine
Syntax
SOURCE <source>
Options source—Name of the source
Examples
source alpha
Notes Source names that contain non-alphanumeric characters must be enclosed in
quotation marks.