Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and
12.212, Commercial Computer Soft ware, Computer Software Documentation, and Technical Data for Commercial Items are licensed
to the U.S. Government under vendor’s standard commercial license.
The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth
in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting
an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein.
Microsoft, Windows, Windows XP, and Windows NT are U.S. registered trademarks of Microsoft Corporation.
Oracle is a registered US trademark of Oracle Corporation, Redwood City, California.
Linux is a U.S. registered trademark of Linus Torvalds.
This document is a quick reference for job commands and job templates that are provided with HP
StorageWorks Replication Solutions Manager (the replication manager). For additional information
regarding replication manager concepts and troubleshooting, see the HP StorageWorks ReplicationSolutions Manager online help and HP StorageWorks Replication Solutions Manager user guide.
Intended audience
This reference is intended for HP StorageWorks Replication Solutions Manager operators and
administrato
Related documentation
To find the following documents, browse to the Manuals page of the HP Business Support Center web site:
ttp://www.hp.com/support/manuals. In the Storage section, click Storage soft ware and then select
h
the product.
rs.
Replication
• HP StorageWorks Replication Solutions Manager online h elp
• HP StorageW
• HP StorageWorks Replication Solutions Manager job command reference
• HP StorageWorks Replication Solutions Manager command line user interface reference
• HP Storage
• HP StorageWorks Replication Solutions Manager installation guide
Other
• HP StorageWorks EVA replication software consolidated release notes
• HP StorageWorks EVA software compatibility reference
• HP StorageWorks Comma nd View EVA license key installation instructions
• HP StorageWorks Business Copy EVA administrator guide
• H P StorageWorks Continuous Access EVA administrator guide
Solutions Manager
orks Replication Solutions Manager user guide
Works Replication Solutions Manager administrator guide
HP StorageWorks Replication Solutions Manager 4 .0.1
9
Document conven
Table 1 Document conventions
tions and symbols
Convention
Blue text: Table 1
Blue, underlined text: http://www.hp.com
Bold text
Italic textText emphasis
Monospace text
Monospa
Monospace, bold text
ce, italic text
Element
Cross-reference links and e-mail addresses
website addresses
• Keys th at are p
• Text typed in
• GUI elements
menu and lis
• File and directory names
• System output
• Code
• Commands, their arguments, and argument values
• Code variables
• Command variables
Emphasized monospace text
ressed
to a GUI element, such as a box
that are clicked or selected, such as
t items, buttons, tabs, and check boxes
CAUTION:
Indicates that failure to follow directions could result in damage to equipment or data.
IMPORTANT:
Provides clarifying information or specific instructions.
NOTE:
Provides additional information.
TIP:
Provides helpful hints and shortcuts.
HP technical support
For worldwide technical support information, see the HP support website:
ttp://www.hp.com/support
h
Before contacting HP, collect the following information:
• Product model names and numbers
• Technical support registration number (if applicable)
• Product serial numbers
• Error messages
• Operating system t ype and revision level
10
About this reference
• Detailed questions
Subscription s
HP recommends t
h
ttp://www.hp
After register
firmware updat
ervice
hat you register your product at the Subscriber’s Choice for Business website:
.com/go/e-updates
ing, you will receive e-mail notification of product enhancements, new driver versions,
es, and other product resources.
HP websites
For additional information, see the following HP websites:
•h
ttp://www.hp.com
•http://www.hp.com/go/storage
•http://www.hp.com/service_locator
•http://www.hp.com/support/manuals
•http://www.hp.com/support/downloads
Documentation feedback
HP welcomes
To make comments and suggestions about product documentation, please send a message to
storagedocsFeedback@hp.com. All submissions become the property of HP.
your feedback.
Product feedback
To make comments and suggestions about HP Replication Solutions Manager, HP Business Copy EVA, or
HP Continuous Access EVA, please send a message to EVAReplication@hp.com.
HP StorageWorks Replication Solutions Manager 4 .0.1
11
12
About this reference
1Jobconcepts,templatesand
commands
Job concepts
Job language overview
The job language provides a simple and structured way to automate replication and other storage related
tasks. A typical job consists of commands, assignments (variables), branching instructions, labels,
comments and exits. Jobs with launch commands often include transactions. See also imported jobs.
When a job is running or has been run, it is called a job instance. Job instances are displayed in the
Jobs Run History tab.
The format of a job-instance name is the job name, plus a sequence number. For example, the job named
daily_backup when run two times would have job instance names of daily_backup-1 and daily_backup-2.
14
Job concepts, templates and commands
Aborted job instances
In some cases, a job instance may not stop when it is aborted. This can happen if the instance is hung
while executing a command to a low level device.
When the replic
ation manager server is stopped and restarted, all aborted job instances are cancelled.
Arguments
Most job commands include arguments. When a command is initially entered in a job, default values
may appear in command arguments. In some cases, there are no defaults and you must specify a value.
Required arguments are denoted by % characters. In the following example,%stor_unc_name% indicates
that a value must be entered for the UNC name of the storage volume.
The Editing Task window allows you to create assignments (variables) that refer to specific resources or
that reference the results of a command.
In the following example, a lengthy UNC-formatted name is stored in a variable on line 5. When the job
is run, a snapclone is created by the command on line 10, which refers to the variable.
In the next example, the results of a command are saved in a variable when the job is run. On line 7, the
UNC name of the snapshot is stored in the variable $Rep1. Then on line 13 the variable is referenced
to delete the snapshot.
HP StorageWorks Replication Solutions Manager 4 .0.1
15
Usage
Assignments are:
• Local to each job and cannot be referenced across jobs.
• Notcasesensitive.
Format
• The first two characters must be a dollar sign ($) followed by an alpha character. No special
• Upper and lower c ase, alpha and numeric are allowed.
• Underscores
Branches
Branches and labels are typically used to hand le errors and to create jobs that can be looped repeatedly.
In line 9 of the following example, the command branches to label E1 on line 30 if there is an error
when the command is executed.
• Default. If the command fails, abort the job at this task (line).
• None.Us
• Onerror Goto. If the command fails, go to the label. Execute the command at the label.
• Onerror Pauseat. If the command fails, go to the label and pause the job. When the job is
• Onsucc
Commands
When you include a command in a job, the command’s arguments and default values are displayed in
the job editor window. Argument names that appear with red % markers indicate that specificvalues
arerequired. Seejobarguments. For example:
Snapc
You must edit the command and select or enter values for any required arguments. After editing, the
command displays the argument value as normal text, in quotes.
Some commands return a result that can be assigned to a variable. The variable can then be referenced
inasucceedingstepinthejob. Seealsojobassignments.
The following table lists command result values and formats. See also resource names and UNC formats.
Job command
//
AddAllOracleTablespacesToRepository
AddDrGroupMember
AddOracleAr
AddOracleTablespacesToRepository
AddReplicaToReplicaRepository
AddReplicasToReplicaRepository
CombineLists
ConvertStorageVolumeIntoContainerCombined list of resources (UNC)
ConvertStorageVolumesInManagedSetIntoContainers
chiveLogFilesToRepository
entbranch ^
Command result value (format)
-
-
-
-
-
-
-
Combined list of resources (UNC)
List of container names (UNC)
ConvertStorageVolumesIntoContainers
ConvertStorageVolumesIntoContainersUsingRepositoryList of container names (UNC)
CreateContainer
CreateContainerForHostDiskDevice
CreateContainersForHostVolume
CreateContainersForHostVolumeGroup
CreateDiskDevice
CreateDrGroup
CreateDrGroupFromHostVolume
CreateHostVolumeHost volume name (UNC)
CreateHostVolumeDiscreteHost volume name (UNC)
CreateH
CreateHostVolumeGroupHost volume group name (UNC)
CreateHostVolumesUsingRepositoryList of host volume names (UNC)
CreateO
ostVolumeFromDiskDevices
racleRepository
List of container names (UNC)
Container name (UNC)
Managed set name of virtual disk
containers (simple)
Managed set name of virtual disk
containers (simple)
Managed set name of virtual disk
containers (simple)
-
DR group name (UNC)
DR group name (UNC)
Host vol
Oracle r
ume name (UNC)
epository name (UNC)
CreateReplicaRepositoryReplica repository name (simple)
CreateRestoredHostVolumesUsingRepositoryList of host volume names (UNC)
StorageVolume
Create
evolumename(UNC)
Storag
HP StorageWorks Replication Solutions Manager 4 .0.1
17
Job command
DeleteContaine
DeleteDrGroup
DeleteDrGroupMember
DeleteHostVolume
DeleteHostVolumeGroup
DeleteHostVolumesUsingRepository
DeleteOracl
DeleteReplicaRepository
DeleteStorageVolume
DeleteStorageVolumes
DeleteStorageVolumesInManagedSet
DeleteStorageVolumesUsingRepository
DetachMirr
DiscoverDiskDevice
DiscoverDiskDevices
DiscoverDiskDevicesForDrGroup
DiscoveryRefresh (obsolete)
Exit
Export
FailoverDrGroup
FailoverDrGroups
FlushCac
ForceFullCopyDrGroup
r
eRepository
orclones
he
Command result value (format)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
FractureHostDiskDeviceMirrorcloneName of the fractured mirrorclone (UNC)
HP StorageWorks Replication Solutions Manager 4 .0.1
21
Comments
The comment command can be used to add comments to a job. You can also comment-out other
commands. See also job comment command.
E-mail from jobs
A job (each job instance) can send e-mail messages.
Job instances can send e-mail messages that you write and they can also send predefined job status
notification messages. See SendEmail and SetNotificationPolicy, respectively.
Exits
Exit command
failure. HP recommends the following best practices for using exit commands:
• Include at least one successful exit command in a job.
• Include a su
termination.
• If you create branches in a job to handle failures, conclude each with a failure exit command.
See job exit
Implicit jobs
When responding to certain requests, the replication manager may create and immediately run a job.
Such jobs are called implicit jobs. Implicit jobs are not saved and cannot be edited.
s identify termination points in a job and can help provide confirmation of success or
ccessful exit command for each branch of the job that can result in successful
command.
When an implicit job runs, it appears in the Monitor Job window and the Events pane. See also job
implicit job startup.
Implicit
job startup
When clicking OK or Finish to perform an action on a resource, the window or wizard immediately closes
and the Monitor Job window appears. This is normal operation. To p erform your requested action, the
replicat
It is not n
continues to run.
Imported jobs
Replication manager jobs that have been imported from legacy HP Business Copy 2.X jobs include
special comments to help resolve potential command conversion issues. For example:
ion manager creates and starts an implicit job.
ecessary to leave the Monitor Job window open. If you close the window, the implicit job
22
Job concepts, templates and commands
import note >
legacy job start >
Line
Task
1
// This job was im
2
// which included the following operations:
// [line 1] SNAP UNIT Array2 Cats\ACTIVE $BCV1 SNAPCLONE_HSV
indicate the job was created by importing a legacy job.
• Line 3 shows (as a comment) the first legacy job command that was encountered. All legacy
commands are displayed in this manner.
• Line 12 ind
icates that all legacy job commands have been listed.
• Line 15 indicates the start of the replication manager template that has been applied to create an
equivalent job.
• Line 20 ind
icatesarequiredargument. Seejob arguments.
Job commands list
The following commands can be included in jobs. The replication type indicates if the command is
specifically for use with the local or remote replication features of a storage system. Storage family
indicates the storage system family that the command supports. Some commands cannot be used unless
a host agent is running on the target host.
Job commandCommand
//general
AddAllO
AddDrGroupMember >
AddOracleArchiveLogFilesToRepositoryOracle
AddOracleTablespacesToRepositoryOracle
AddReplicaToReplicaRepositoryhost volumelocal
AddReplicasToReplicaRepositoryhost volumelocal
Combi
racleTablespacesToRepository
neLists
Replication
category
Oracle
DR group
al
gener
HP StorageWorks Replication Solutions Manager 4 .0.1