Scheduling updates and scans

HelpSystems recommends updating the Powertech Antivirus DAT files daily, and running scans weekly. The following instructions describe how to schedule these events so they occur automatically.

  1. Make sure Powertech Antivirus for Linux is licensed and installed.
  2. Run the command crontab -e
  3. Cronjobs work as follows: (minute) (hour) (day) (month) (day of the week) command to execute.

    EXAMPLE:
    The following command will run every Saturday at 1 am.
    0 1 * * 6 /opt/sgav/avscan

  4. Write the cronjob that you would like followed by the command you would like to execute.

    • The command to update the DAT is /opt/sgav/avupdate

    • The command to run the scan is /opt/sgav/avscan

      NOTE: You can add any of the parameters for avscan listed under Options (in the Scanning section of this document) to the command.
  5. Save the file.

  6. The cron log is located at:
    • Linux: /var/log/syslog
    • AIX: /var/adm/cron/log
      EXAMPLE:
      Cronjob for DAT file update at 7 pm everyday
      0 19 * * * /opt/sgav/avupdate

      Cronjob for Avscan that runs on Sunday at 1 pm and Quarantines files in /opt/sgav/log/avscan.log
      0 13 * * 7 /opt/sgav/avscan --quar > /opt/sgav/log/avscan.out

 

Copyright © HelpSystems, LLC.
All trademarks and registered trademarks are the property of their respective owners.