You can add, exclude, or delete schedule policy entity associations.
Procedure
-
If you are not logged on to the CommServe computer, run the qlogin command.
-
Download the schedule_policies_edit.xml XML file to the computer where you will run the command.
-
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 MODIFYwhere -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:
-
For information on supported parameters, see XML Parameters for Schedule and Schedule Policy Operations.
-
You can also define parameter values in the schedules_manage.xml file instead of on the command line. For more information on command line parameters and XML elements, see Command Syntax for XML Commands.
-
-
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 MODIFYThe 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 MODIFYThe 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 MODIFYThe 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 MODIFYAfter 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