You can use the command line to create a subclient for a specified virtualization client, OpenStack instance, and backup set.
Procedure
-
To log on to the CommServe computer, run the qlogin command.
-
Download the create_subclient_template.xml file, and save it on the computer where the command will be executed.
-
On the command line, go to software_installation_directory/Base, and then type the following command:
qoperation execute -af create_subclient_template.xml -appName 'Virtual Server' -clientName xxxxx -instanceName xxxxx -backupsetName xxxxx -subclientName xxxxx -vmContent/children/displayName xxxxx -vmContent/children/type VMName -storagePolicyName xxxxxwhere:
-
appNameis the name of the application. In this case, it is'Virtual Server'. -
clientNameis the name of the virtualization client. -
instanceNameis the name of the virtual server instance (OpenStack). -
backupsetNameis the name of the backup set. -
subclientNameis the name of the subclient. -
vmContent/children/displayNameis the display name of the virtual machine, or other entity, depending on the content type defined in thevmContent/children/typeparameter. -
vmContent/children/typeis the type of content to be added to the subclient.For OpenStack, the only valid value is:
VMName,to add a virtual machine to the subclient content. -
vmContentOperationTypeis the type of operation that you want to perform to the subclient content.For OpenStack, the valid values are:
ADD, to add content to the subclient.OVERWRITE, to overwrite contents to the subclient.DELETE, to delete the contents from the subclient. -
storagePolicyNameis the name of the storage policy.
-
-
To log off the CommServe computer, run the
qlogoutcommand.
Example of Creating a Subclient
The following command creates subclient1 for the openstack-client client, assigns VM01 as the subclient content, and associates the storage01 storage policy with the subclient.
qoperation execute -af create_subclient_template.xml -appName 'Virtual Server' -clientName openstack-client -instanceName OpenStack -backupsetName backupset1 -subclientName subclient1 -vmContent/children/displayName VM01 -vmContent/children/type VMName -storagePolicyName storage01