HP P6000 Replication Solutions Manager Job Command Reference (T3680-96090, October 2012)
Template options
• Include e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
Comments
• Guidelines apply. See the HP P6000 Replication Solutions Manager User Guide for remote
replication guidelines.
Example
This template was generated to create one DR group pair.
TaskLine
// Setup Continuous Access.1
//2
// Assign some variables that will be used in this job.3
$DR_source_array = SetVariable(%DR_source_array%)4
$DR_dest_array = SetVariable(%DR_dest_array%)5
$DR_group_name = SetVariable(%DR_group_name%)6
$DR_source_storvol_unc1 = SetVariable(%DR_source_storvol_unc1%)7
$dest_host_name = SetVariable(%dest_host_name%)8
//9
// Validate that resources are as expected.10
ValidateHost ($dest_host_name)11
ValidateStorageSystem ($DR_source_array)12
ValidateStorageSystem ($DR_dest_array)13
ValidateStorageVolume ($DR_source_storvol_unc1)14
//15
$DRG1 = CreateDrGroup ($DR_group_name, $DR_source_storvol_unc1, $DR_dest_array, "", "", SAME, "",
"", 0, FALSE) onerror pauseat E1:
16
//17
SetDrGroupFailsafe($DRG1, %failsafe_mode%) onerror continue18
SetDrGroupIoMode($DRG1, %io_mode%) onerror continue19
SetDrGroupDestinationAccess($DRG1, NONE) onerror continue20
SetDrGroupSuspend($DRG1, RESUMED) onerror continue21
//22
// Present destination vdisk to a destination host.23
WaitDrGroupNormalization ($DRG124
// The dest_storvol will be created AFTER the job,25
// so enter the name of the storage volume manually.26
// Default name is the same as the source storage volume.27
PresentStorageVolume (%dest_storvol%, $dest_host_name, %lun_number%, READ_WRITE)28
86 Jobs