You can use the command line to create a subclient under a specified virtualization client, VMware instance, and backup set.
-
Download the create_subclient_template.xml file and save it on the computer where the command will be executed.
-
Log in to the CommServe host using the qlogin command.
-
Execute the following command from the software_installation_directory/Base folder after substituting the parameter values.
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 xxxxx
Examples
-
The following command creates subclient1 under the client named vmware-client, assigns the VM01 virtual machine as the subclient content, and associates the storage policy storage01:
qoperation execute -af create_subclient_template.xml -appName 'Virtual Server' -clientName vmware-client -instanceName VMware -backupsetName backupset1 -subclientName subclient1 -vmContent/children/displayName VM01 -vmContent/children/type VMName -storagePolicyName storage01 -
The following command creates subclient2 under the client named vmware-client, associates the storage policy storage01, and assigns a custom attribute named MyAttribute with the value SpecialVM to all VMs included in the subclient:
qoperation execute -af create_subclient_template1.xml -appName 'Virtual Server' -clientName vmware-client -instanceName VMware -backupsetName backupset1 -subclientName subclient2 -vmContent/children/displayName CustomAttribute -vmContent/children/name MyAttribute -vmContent/children/type VMCustomAttribute -storagePolicyName storage01 -vmContent/children/value SpecialVM -vmContent/children/allOrAnyChildren 1