Contents
The CA VM:Archiver/CA VM:Schedule interface offers more flexible scheduling capabilities than the CA VM:Archiver internal scheduler (the EVENT command). For example, CA VM:Schedule recognizes holidays and weekends; the CA VM:Archiver EVENT command does not.
Restrictions and Requirements
Use CA VM:Schedule to replace CA VM:Archiver-scheduled events. Then, use the CA VM:Archiver EVENT DELETE command to remove these events; this prevents CA VM:Archiver and CA VM:Schedule from both submitting jobs.
Scheduling Archive Submissions An Example
To schedule archive submissions and batched recall requests:
- Log on to VMSCHED.
- Enter the END command to shut down VMSCHED.
- Make sure there are RANGE HOLIDAY records in the VMSCHED CONFIG file. These configuration file records specify dates and times to be associated with holidays, and allow requests to be scheduled around these dates.
- Enter the PROFILE command to restart VMSCHED.
- Enter the #CP DISCONN command to leave VMSCHED running disconnected.
- Log on to VMANAGER.
- Create an EXEC (SUBJOBS EXEC) that submits CA VM:Archiver batched recall requests and submits CA VM:Archiver archive submissions. A sample SUBJOBS EXEC follows.
/****************************************************** * SUBJOBS EXEC *
* *
* This EXEC submits archive and batched recall *
* requests and logs off the VMANAGER userid if *
* VMANAGER is running disconnected. *
* *
* This EXEC should NOT be run from the *
* CA VM:Archiver service virtual machine. *
* *
* Requires: VMANAGER to be authorized as an operator *
* in CA VM:Archiver *
* *
******************************************************/
address 'COMMAND'
'CP SPOOL CONSOLE * START'
'VMARCH SUBMIT RECALLS' /* Submit recalls */
If rc <> 0 Then $recall_reason = 'FAILED'
Else $recall_reason = 'COMPLETED'
'CP MSG * VMARCH RECALL SUBMISSIONS' $recall_reason
'VMARCH SUBMIT ARCHIVES' /* Submit archives */
If rc <> 0 Then $archive_reason = 'FAILED'
Else $archive_reason = 'COMPLETED'
'CP MSG * VMARCH ARCHIVES SUBMISSIONS' $archive_reason
'CP SPOOL CONSOLE CLOSE STOP'
Exit - You can enter the following CA VM:Schedule command to schedule the SUBJOBS EXEC to run at a specified time. For example, to schedule the SUBJOBS EXEC to run between 11:00 p.m. and midnight, Monday through Friday, every day except holidays, enter:
VMSCHED SCHEDULE VMA2 SUBJOBS (AT 23:00 WITHIN 1 ON MON-FRI AGAIN WEEKLY OUTSIDE HOLIDAY LOGOFF YES
Scheduling the ACCOUNT Command An Example
To schedule the CA VM:Archiver ACCOUNT command:
- Create an EXEC (ACCT EXEC) that issues the ACCOUNT command. A sample ACCT EXEC follows.
/****************************************************** * ACCT EXEC *
* *
* This EXEC issues the CA VM:Archiver ACCOUNT *
* command and logs off the VMANAGER userid if *
* VMANAGER is running disconnected. *
* *
* This EXEC should NOT be run from the *
* CA VM:Archiver service virtual machine. *
* *
* Requires: VMANAGER to be authorized as an operator *
* in CA VM:Archiver *
* *
******************************************************/
address 'COMMAND'
'CP SPOOL CONSOLE * START'
'VMARCH ACCOUNT' /* Execute ACCOUNT */
If rc <> 0 Then $reason = 'FAILED'
Else $reason = 'COMPLETED'
'CP MSG * VMARCH ACCOUNT SUBMISSION' $reason
'CP SPOOL CONSOLE CLOSE STOP'
Exit - You can enter the following CA VM:Schedule command to schedule the ACCT EXEC to run at a specified time. For example, to schedule the ACCT EXEC to run between 11:00 p.m. and midnight, Monday through Friday, every day except holidays, enter:
VMSCHED SCHEDULE VMA3 ACCT (AT 23:00 WITHIN 1 ON MON-FRI AGAIN WEEKLY OUTSIDE HOLIDAY LOGOFF YES