Editing the Associations of Schedule Policies Using the Command Line Interface

You can add, exclude, or delete schedule policy entity associations.

Procedure

  1. If you are not logged on to the CommServe computer, run the qlogin command.

  2. Download the schedule_policies_edit.xml XML file to the computer where you will run the command.

  3. On the command line, go to software_installation_directory/Base, and then type the following commands:

    qoperation execute -af $[schedule_policies_edit.xml] -task/taskName $[schedule_policy_name] -taskType $[SCHEDULE_POLICY] -associations/$[entityentity_name] $[-include 1 | -deleted 1 | -exclude 1] -taskOperation $[MODIFY]

    where -associations/entity entity_name is the entity parameter and the entity name, for example, -associations/clientName client022. You must include the hierarchy above the entity and the entity you want to change. For example, to change a backup set, type -associations/clientName client001 -associations/appName "File System" -associations/backupsetName defaultBackupSet.

    Notes:

  4. To log off the CommServe computer, run the qlogout command.

Examples

The following command adds a client computer group association to a schedule policy.

qoperation execute -af $[schedule_policies_edit.xml] -task/taskName $[SP001] -taskType $[SCHEDULE_POLICY] -associations/clientGroupName $[Infrastructure] $[-include 1] -taskOperation $[MODIFY]

The following command deletes a client computer group association from the schedule policy.

qoperation execute -af $[schedule_policies_edit.xml] -task/taskName $[SP001] -taskType $[SCHEDULE_POLICY] -associations/clientGroupName $[Infrastructure] $[-deleted 1] -taskOperation $[MODIFY]

The following command adds a subclient association to a schedule policy.

qoperation execute -af $[schedule_policies_edit.xml] -task/taskName $[SP002] -taskType $[SCHEDULE_POLICY] -associations/clientName $[client001] -associations/appName "$[File System]" -associations/backupsetName $[defaultBackupSet] -associations/subclientName $[DDBBackup] $[-include 1] -taskOperation $[MODIFY]

The following command adds a File System application association to a schedule policy.

qoperation execute -af $[schedule_policies_edit.xml] -task/taskName $[SP002] -taskType $[SCHEDULE_POLICY] -associations/clientName $[client001] -associations/appName "$[File System]" $[-include 1] -taskOperation $[MODIFY]

After the association with the File System application is made, this command excludes the default backup set from the association.

qoperation execute -af $[schedule_policies_edit.xml] -task/taskName $[SP002] -taskType $[SCHEDULE_POLICY] -associations/clientName $[client001] -associations/appName "$[File System]" -associations/backupsetName $[defaultBackupSet] $[-exclude 1] -taskOperation $[MODIFY]

Page contents

×

Loading...