HP P6000 Replication Solutions Manager Job Command Reference (T3680-96090, October 2012)

Template options
Number of volumes to replicate. Adds commands for each volume.
Suspend source before replication. Adds launch commands for interacting with an enabled
host, for example to suspend and resume host application I/O.
Launch backup after replication. Adds a launch command for interacting with an enabled
host, for example, to start a tape backup.
Use snapclone instead of snapshot. Generates a template that uses preallocated snapclone
replication.
Include e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
Comments
This template cannot be used with some older versions of controller software. For information
on controller version feature support, see the HP P6000 Enterprise Virtual Array Compatibility
Reference.
Tru64 UNIX. When replicating AdvFS volumes that have heavy I/O, select the option Suspend
source before replication. See Suspending I/O before replicating AdvFS volumes.
Example
This template was generated to replicate one host volume. No other template options were selected.
TaskLine
// Replicate host volume(s) via pre-allocated replication, and mount to a host.1
//2
// Assign some variables that will be used in this job.3
$source_hostvol_unc1 = SetVariable(%source_hostvol_unc1%)4
$source_host = SetVariable(%source_host%5
$mount_host = SetVariable(%mount_host%)6
//7
// Validate that resources are as expected.8
ValidateHost ($source_host)9
ValidateHost ($mount_host)10
ValidateHostVolume ($source_hostvol_unc111
//12
// Begin flushing the cache on the host volume(s).13
SetHostVolumeWriteCacheMode ($source_hostvol_unc1, WRITE_CACHE_DISABLED, NOWAIT) onerror pauseat
E1:
14
//15
// Wait for the cache flush to complete.16
WaitForHostVolumeWriteCacheFlush ($source_hostvol_unc1) onerror pauseat E1:17
//18
#Prepare the container(s) for host volume replication19
78 Jobs