![]() |
![]() |
Use this command to create a copy of a schedule.
The COPY SCHEDULE command takes two forms, depending on whether the schedule applies to client operations or administrative commands. The syntax and parameters for each form are defined separately.
Use the COPY SCHEDULE command to create a copy of a schedule for client operations. You can copy a schedule within a policy domain or from one policy domain to another policy domain. Use the DEFINE ASSOCIATION command to associate the new schedule with the client nodes.
Privilege Class
To copy a client schedule, you must have system privilege, unrestricted policy privilege, or restricted policy privilege for the policy domain to which you are copying the schedule.
Syntax
>>-COPy SCHedule--current_domain_name--current_sched_name-------> .-current_sched_name-. >--new_domain_name--+--------------------+----------------------> '-new_sched_name-----' .-REPlace--=--No------. >--+---------------------+------------------------------------->< '-REPlace--=--+-No--+-' '-Yes-'
Parameters
If you do not specify this name, the name of the original schedule is used.
If the schedule name is already defined in the policy domain, you must specify REPLACE=YES, or the command fails.
Examples
Task
Copy the WEEKLY_BACKUP schedule that belongs to policy domain EMPLOYEE_RECORDS to the PROG1 policy domain and name the new schedule WEEKLY_BACK2. If there is already a schedule with this name defined in the PROG1 policy domain, do not replace it.
copy schedule employee_records weekly_backup prog1 weekly_back2
Use the COPY SCHEDULE command to create a copy of an administrative command schedule.
Privilege Class
To copy an administrative command schedule, you must have system privilege.
Syntax
>>-COPy SCHedule--current_sched_name--new_sched_name------------> .-REPlace--=--No------. >--Type--=--Administrative--+---------------------+------------>< '-REPlace--=--+-No--+-' '-Yes-'
Parameters
If the schedule name is already defined, you must specify REPLACE=YES, or the command fails.
Examples
Task
Copy the administrative command schedule, DATA_BACKUP and name the schedule DATA_ENG. If there is already a schedule with this name, replace it.
copy schedule data_backup data_eng type=administrative replace=yes
Table 32. Commands Related to COPY SCHEDULE
Command | Description |
---|---|
DEFINE ASSOCIATION | Associates clients with a schedule. |
DEFINE SCHEDULE | Defines a schedule for a client operation or an administrative command. |
DELETE SCHEDULE | Deletes a schedule from the database. |
QUERY SCHEDULE | Displays information about schedules. |
UPDATE SCHEDULE | Changes the attributes of a schedule. |