Search the VMware Knowledge Base (KB)
View by Article ID

Re-protecting a View replica virtual machine (2015006)

  • 1 Ratings

Purpose

This article provides information to re-protect View replica virtual machines to ensure they are not accidentally modified or deleted when performing the maintenance of the View cluster.
 
vCenter Server protects View replica virtual machines by default to prevent accidental deletion that may negatively impact View desktops. It is possible to unprotect the View replica virtual machines to perform maintenance on the View cluster in vSphere.
 

Resolution

The sviconfig command allows you to re-protect the View replica virtual machine through the use of the -operation=protectentity option.

The sviconfig command must be run as an administrator on the vCenter Server.
  1. Log in to the vCenter Server.
  2. Open a command prompt as administrator.
  3. Change Directory to the View Composer directory.

    • 32bit servers – C:\Program Files\VMware\VMware View Composer
    • 64bit servers – C:\Program Files (x86)\VMware\VMware View Composer

  4. Run this command:

    In View Composer 2.7:

    sviconfig -operation=protectentity -VcUrl=https://vCenter_address/sdk -Username=vCenter_account_name -Password=vCenter_ account_password -InventoryPath=/Datacenter_name/vm/VMwareViewComposerReplicaFolder/replica_name

    Where:

    • vCenter_address is the URL of the vCenter Server
    • vCenter_account_name is the account name of an administrator
    • vCenter_ account_password is the password for the administrator user account
    • Datacenter_name is the name of the Datacenter containing the View cluster
    • replica_name is the name of the replica you wish to protect
You see output similar to:

SviConfig finished successfully.
Successfully protected entities: 1

In View Composer 3.0:

sviconfig -operation=protectentity -DsnName=Composer_Database_Name -DbUsername=Composer_DSN_User_Name -DbPassword=Composer_DSN_Password -VcUrl=https://vCenter_address/sdk -VcUsername=vCenter_account_name -VcPassword=vCenter_account_password -InventoryPath=/Datacenter_name/vm/VMwareViewComposerReplicaFolder/replica_name

Where:
    • Composer_Database_Name <is the DSN name of the View Composer database
    • Composer_DSN_User_Name is the name of the View Composer database administrator
    • Composer_DSN_Password is the password of the View Composer database administrator
    • vCenter_address is the URL of the vCenter Server
    • vCenter_account_nameis the account name of an administrator
    • vCenter_account_passwordis the password for the administrator user account
    • Datacenter_name is the name of the Datacenter containing the View cluster
    • replica_nameis the name of the replica you wish to protect
You see output similar to:

VirtualMachine with MoId vm-<id> sucessfully protected.
Successfully protected entities: 1
Note: The sviconfig parameters are case sensitive.

See Also

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 1 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 1 Ratings
Actions
KB: