Setting Datastore Freespace Parameters (VMware command line)

You can use the command line to enable or disable checking for free space in a datastore before performing a backup, or to set the required threshold for datastore free space.

  1. Download the update_subclient_vm_datastorefreespace_template.xml file and save it on the computer where the command will be executed.

  2. Log in to the CommServe host using the qlogin command.

  3. Execute the following command from the software_installation_directory/Base folder after substituting the parameter values.

    qoperation execute -af $[update_subclient_vm_datastorefreespace_template.xml] -appName '$[Virtual Server]' -clientName $[xxxxxx] -instanceName $[xxxxxx] -backupSetName $[xxxxxx] -subclientName $[xxxxxx] -datastoreFreespaceCheck $[0|1] -datastoreFreespaceRequired $[1-100]
    

    For datastoreFreespaceCheck, specify 0 to disable or 1 to enable.

    For datastoreFreespaceRequired, provide a value from 1-100 to specify the percentage of free space required.

    To modify all subclients under a backup set, use a command in the following form, omitting the subclient parameter:

    qoperation.exe execute -af $[update_subclient_vm_datastorefreespace_template.xml] -appName '$[Virtual Server]' -clientName $[xxxxxx] -instanceName $[xxxxxx] -backupSetName $[xxxxxx] -datastoreFreespaceCheck $[0|1] -datastoreFreespaceRequired $[1-100]
    

Examples

The following example enables free space checking with 10% free space required:

software_installation_directory\Base>QOperation.exe execute -af $[C:update_subclient_vm_datastorefreespace_template.xml] -appName '$[Virtual Server]' -clientName '$[vsa-vc6]' -backupSetName '$[defaultBackupSet]' -instanceName '$[VMware]' -datastoreFreespaceCheck 1 -datastoreFreespaceRequired $[10]

This command produces the following output:

<App_UpdateSubClientPropertiesResponse>
   <response>
     <errorCode>0</errorCode>
     <warningCode>0</warningCode>
   </response>
 </App_UpdateSubClientPropertiesResponse>

Page contents

×

Loading...