Updating the SRM recovery plan

After you have configured SSO between the recovery site Symantec High Availability Console and the protected site virtual machines, you must modify the SRM recovery plan to define the action for application monitoring continuity. This action is defined in the form of an Symantec High Availability recovery command that must be added to the SRM recovery plan.

Note:

You must perfom these steps on all the virtual machines.

To update the SRM recovery plan

  1. Using the vSphere Client, navigate to Home > Solutions and Applications > Site Recovery

    In the left pane, select Recovery Plan.

  2. From the list of recovery plans, select the recovery plan to be updated.
  3. In the recovery plan, select the virtual machine, right-click and click Configure.
  4. On the VM Recovery Properties panel, select Pre-power On Steps in the left pane and click Add in the right pane.
  5. On the Add Pre-power On Step panel, perform the following tasks:
    • Select Command on SRM Server

    • In the Name text box, specify a name for the command step to be added

    • In the Content text box, specify the following command

      C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe 
      -ExecutionPolicy Unrestricted c:\setSiteID.ps1 -vCenter <IP address> 
      -SiteId <ID> -VM 'VirtualMachine HostName' 
      -U Administrator -P Password 
      -UseFileCred 0/1
      -CredPath CredFilePath
      

      Where,

      • IP address = The IP address of recovery site vCenter Server. If you do not specify the IP address, then the vCenter Server hostname is considered by default.

      • ID= Specify an ID for the recovery site

        This is required when you modify the vcs_site_info.xml file.

        If you do not specify an ID, the hostname of recovery site SRM Server is used.

      • VirtualMachine HostName= Host name of the local machine as that specified in the vCenter server inventory

        Note:

        Ensure that the hostname does not contain any special characters. If the hostname contains any special characters, then the "setSiteID.ps1" script that is used to assign a site ID to the respective sites fails to assign these IDs.

      • Administrator= User account name for the recovery site vCenter Server

      • Password= Password for the user account specified

      • UseFileCred= Specify a value for this argument depending on whether or not you have encrypted the vCenter Server user account password, using the encryptVCenterPassword.ps1 script.

        0= The vCenter Server password is not encrypted and you need to specify the password in the command.

        1= The vCenter Server password is encrypted and is saved at a temporary location.

        Note:

        You need not specify this argument if you plan to configure the SRM service. This service configuration helps to automatically establish a connection with the vCenter Server.

      • CredFilePath= File path where the vCenter Server user account credentials are saved

        You need to specify this variable only if you have specified '1' for UseFileCred variable.

      Note:

      User account details are required only if you intend to encrypt the vCenter Server user account password. To encrypt the password, you must execute the EncryptvCenterPassword.ps1 script. This script saves the user account details at the specified or default location. The CredPath specified is applied only if the UseFileCred argument value is 1.

    • Click Ok.

  6. On the VM Recovery Properties panel, from the left panel, select Post Power On Steps and click Add.
  7. On the Add Post Power On Step panel, perform the following:
    • Select Command on Recovered VM

    • In the Name text box, specify a name for the command step to be added

    • In the Content text box, specify the following command step

      "%vcs_home%\bin\getAppStatus.bat"

      This script retrieves the application status after it is started at the recovery site.

    • Click Ok.