It’s always nice to be able to make bulk changes to multiple devices. Most RecoverPoint environments will have a collection of Consistency Groups that could be as much as 128. To change a common configuration for all of them would take waaaay too long for my liking.
A common option to change is the “Managed By” settings for all Consistency Groups. Typically in a VMware environment with SRM, this will be set to have SRM Manage the Consistency Groups.
Like this in the GUI;
Note how this prohibits us being able to use any of the standalone RecoverPoint Testing, Fail Over or Recovery processes.
This Powershell script will allow you to check the current configuration of the “External Management” by getting all the Group Settings and then selecting only the “External mgmt:” context details in the Group Policy of the Consistency Groups. This is also an easy way to check Desired configuration state across all your CG’s, by changing the executed command.
1 2 3 4 5 |
$prefix = "YourCGPrefix_" $groupids= @(101..110) | % { "$prefix"+$_ } foreach ($cg in $groupids) { ./plink.exe -ssh ClusterName -P 22 -l admin -pw admin get_group_settings group=$cg | Select-String -Pattern 'External mgmt' -Context 0,4 } |
Note: In this environment the CG’s are identified by a common prefix then numeric ID (correlating to a LUN id) you can change the $prefix variable and array string concatenation to suit your environment. plink.exe should be in you path and change the password value as required.
<< The Result
In this example, I’m going to change all the RPA’s back to being managed by RecoverPoint itself, so all the functions are available in the GUI, for a single CG’
1 |
./plink.exe -ssh YourCluster -P 22 -l admin -pw admin config_external_management group=CGGroupName external_application=none managed_by=RP |
Let’s use an array and a loop to do it cluster wide, with a variation of the”Check” script above, utilizing the “config_external_mgmt” RPCLI command;
1 2 3 4 5 |
$prefix = "YourCGPrefix_" $groupids= @(101..110) | % { "$prefix"+$_ } foreach ($cg in $groupids) { ./plink.exe -ssh ClusterName -P 22 -l admin -pw admin config_external_mgmt group=$cg external_application=none managed_by=RP } |
<< Each new line represents a CG being changed successfully.
To verify, let’s run the check script again;
<< Note that the “External mgmt” is now N/A
..and verified from the GUI, with all functionality available.
This is just a small example of the configurations that can be changed, check the CLI Reference Guide for more details.
RecoverPoint_4.1_CLI_Reference_Guide.pdf
Happy RecoverPointing !