Scheduling Virus Scans
To schedule virus scans, as either a one-time or recurring event, select 13. Schedule Scan from the Antivirus main menu(STRAV). The standard Work with Job Schedule Entries (WRKJOBSCDE) screen appears, with an entry for virus scanning.
Work with Job Schedule Entries (WRKJOBSCDE) Type choices, press Enter. Job name . . . . . . . . . . . . > AV@* Name, generic*, *ALL Output . . . . . . . . . . . . . > * *, *PRINT Bottom F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel F13=How to use this display F24=More keys |
The screen contains two fields:
Job name
The name of the job being examined. For Antivirus scans, this is AV@*.
Output
The destination of the listing. For the screen, this is * (an asterisk).
The screen displays scheduled entries:
Work with Job Schedule Entries RLDEV 30/09/20 17:21:06 UTC Type options, press Enter. 2=Change 3=Hold 4=Remove 5=Display details 6=Release 8=Work with last submission 10=Submit immediately Next -----Schedule------ Recovery Submit Opt Job Status Date Time Frequency Action Date AV@IFS SCD *ALL 01:00:00 *WEEKLY *SBMRLS 01/10/20 AV@NTV SCD *ALL 03:00:00 *WEEKLY *SBMRLS 01/10/20 Bottom Parameters or command ===> F3=Exit F4=Prompt F5=Refresh F6=Add F9=Retrieve F11=Display job queue data F12=Cancel F17=Top F18=Bottom |
To see and change the parameters for a scheduled job, type 2 in the Opt field for that line and press Enter. The Change Job Schedule Entry (CHGJOBSCDE) screen for that command appears, showing the values for the job.
Change Job Schedule Entry (CHGJOBSCDE) Type choices, press Enter. Job name . . . . . . . . . . . . > AV@IFS Name Entry number . . . . . . . . . . > 001003 000001-999999, *ONLY Command to run . . . . . . . . . SCANAV OBJ('/tmp') ONLYNEW(*YES) WAIT(*YES) Frequency . . . . . . . . . . . *WEEKLY *SAME, *ONCE, *WEEKLY... Schedule date . . . . . . . . . *NONE Date, *SAME, *CURRENT... Schedule day . . . . . . . . . . *ALL *SAME, *NONE, *ALL, *MON... + for more values Schedule time . . . . . . . . . '01:00:00' Time, *SAME, *CURRENT Bottom F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel F13=How to use this display F24=More keys |
To add a scheduled job, press the F6 key. The Add Job Schedule Entry (ADDJOBSCDE) screen for that command appears, showing the values for the job.
Add Job Schedule Entry (ADDJOBSCDE) Type choices, press Enter. Job name . . . . . . . . . . . . Name, *JOBD Command to run . . . . . . . . . Frequency . . . . . . . . . . . *ONCE, *WEEKLY, *MONTHLY Schedule date . . . . . . . . . *CURRENT Date, *CURRENT, *MONTHSTR... Schedule day . . . . . . . . . . *NONE *NONE, *ALL, *MON, *TUE... + for more values Schedule time . . . . . . . . . *CURRENT Time, *CURRENT Bottom F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel F13=How to use this display F24=More keys |
The command depends on the server type.
The parameters depend our your installation's needs.
For example, as shown above, the command
SCANAV OBJ('/tmp') ONLYNEW(*YES) WAIT(*YES)
runs the SCANAV command for a ClamAV server, scanning the /tmp directory, looking only at new objects and displaying the results at the end of the run.