HP P6000 Replication Solutions Manager Job Command Reference (T3680-96090, October 2012)
Template options
• Number of volumes. Adds commands for each storage volume to restore from.
• Suspend source before replication. Adds launch commands for interacting with an enabled
host, for example to suspend and resume host application I/O.
• 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.
• HP recommends that you perform restores of host volumes using the GUI.
Example
This template was generated to copy (restore) one storage volume. No other template options were
selected.
TaskLine
// Synchronize storage volume(s) to other storage volume(s)1
//2
// Assign some variables that will be used in this job.3
$source_storvol_unc1 = SetVariable(%source_storvol_unc1%)4
$dest_storvol_unc1 = SetVariable(%dest_storvol_unc1%)5
//6
// Validate that resources are as expected.7
ValidateStorageVolume ($dest_storvol_unc1)8
//9
// Begin flushing the cache on the storage volume(s).10
DO {11
SetStorageVolumeWriteCacheMode ($source_storvol_unc1, WRITE_CACHE_DISABLED, NOWAIT)12
//13
// Wait for the cache flush to complete.14
WaitForStorageVolumeWriteCacheFlush ($source_storvol_unc1)15
//16
// Convert the destination storage volume(s) into container(s).17
$CT1 = ConvertStorageVolumeIntoContainer ($dest_storvol_unc1)18
//19
SnapcloneStorageVolumeToContainer ($source_storvol_unc1, $CT1, NOWAIT)20
//21
} ALWAYS {22
// Restore the writeback cache on the storage volume(s).23
58 Jobs