Scheduling reports

Prev Next

Use the report schedule command to generate reports on a schedule and send email notifications automatically.

Note

Before you can schedule a report to be generated and sent through email, ensure that the SMTP server or domain is configured. You must also specify the email address of the report recipient. For details about configuring these report settings, refer to the Malware Analysis System Administration Guide.

To schedule reports for automatic generation and email distribution:
  1. Enable the CLI configuration mode.

    hostname > enable
    hostname # configure terminal
  2. Enter the report schedule command.

    hostname (config) # report schedule
  3. Specify how often to run the report.

    • To update daily:

      hostname (config) # report schedule run daily at <hh>:<mm>

      where <hh:mm> specifies the time to start based on a 24-hour clock.

    • To update hourly:

      hostname (config) # report schedule run hourly at <mm>

      where <mm> is the number of minutes within the hour.

    • To update monthly:

      hostname (config) # report schedule run monthly on <date> | end of month

      where <date> is the day of the month when the update should occur.

    • To update weekly:

      report schedule run weekly every <day>

      where <day> is the day of the week the when update should occur.

      • sun

      • mon

      • tue

      • wed

      • thu

      • fri

      • sat

  4. Specify the type of report. The default report is Alert Details.

    hostname (config) # report schedule type Alert_Details
  5. Specify a report format.

    • To generate a report in .xml format:

      hostname (config) # report schedule report_format xml
    • To generate a report in .json format:

      hostname (config) # report schedule report_format json
    • To generate a report in .csv format:

      hostname (config) # report schedule report_format csv
    • To generate a report in text format:

      hostname (config) # report schedule report_format text
  6. Specify the level of detail for the report.

    • To send basic information in text format:

      hostname (config) # report schedule report_detail concise
    • To send detailed information and abstracts in text format:

      hostname (config) # report schedule report_detail normal
    • To send detailed information and abstracts about files and objects in text format:

      hostname (config) # report schedule report_detail extended
  7. Specify the alert type as a malware object.

    hostname (config) # report schedule alert_type malware-object
  8. Specify the time period for the reports.

    • To specify the past day:

      hostname (config) # report schedule time_frame past_day
    • To specify for the past week:

      hostname (config) # report schedule time_frame past_week
    • To specify for the past month:

      hostname (config) # report schedule time_frame past_month
    • To specify for the past three months:

      hostname (config) # report schedule time_frame past_3_months
  9. Specify the delivery method for the report. The default delivery method is email.

    • To deliver the report through email:

      hostname (config) # report schedule transport email
    • To save the report as a file:

      hostname (config) # report schedule transport file
  10. Verify the configuration for the report schedule.

    hostname (config) # show report schedule
    Periodicity  MonthDay       WeekDay  Time    Transport Command
    1 hourly       -              -      12:02   email     common/Alert_Details report_format xml report_detail concise alert_type malware-object time_frame past_day
    Total reporting jobs scheduled: 1.