Scheduling an email hourly stat report using the CLI

Prev Next

Use the commands in this section to schedule a consolidated Email Hourly Stat report.

Note

Before you can schedule an Email Hourly Stat 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 Email Security — Server System Administration Guide.

To schedule an Email Hourly Stat report for automatic generation and email distribution:
  1. Go to CLI configuration mode.

    hostname > enable
    hostname # configure terminal
  2. 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} at <hh:mm>

      where:

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

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

    • To update weekly:

      hostname (config) # report schedule run weekly every <day> at <hh:mm>

      where:

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

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

  3. Specify an Email Hourly Stat report.

    hostname (config) # report schedule run <frequency> type email_hourly_stat
  4. Write a report in .csv format.

    hostname (config) # report schedule run <frequency> type email_hourly_stat report_format csv
  5. Specify the time period for the reports.

    • To specify from 12:00 A.M. until the current time:

      hostname (config) # report schedule run <frequency> type email_hourly_stat report_format <report_format> time_frame today
    • To specify for the past 24 hours:

      hostname (config) # report schedule run <frequency> type email_hourly_stat report_format <report_format> time_frame 1_day_ago
    • To specify for the past 2 days:

      hostname (config) # report schedule run <frequency> type email_hourly_stat report_format <report_format> time_frame 2_days_ago
    • To specify for the past 3 days:

      hostname (config) # report schedule run <frequency> type email_hourly_stat report_format <report_format> time_frame 3_days_ago
    • To specify for the past 4 days:

      hostname (config) # report schedule run <frequency> type email_hourly_stat report_format <report_format> time_frame 4_days_ago
    • To specify for the past 5 days:

      hostname (config) # report schedule run <frequency> type email_hourly_stat report_format <report_format> time_frame 5_days_ago
    • To specify for the past 6 days:

      hostname (config) # report schedule run <frequency> type email_hourly_stat report_format <report_format> time_frame 6_days_ago
    • To specify for the past 7 days:

      hostname (config) # report schedule run <frequency> type email_hourly_stat report_format <report_format> time_frame 7_days_ago
  6. Specify the delivery method for the report. The default delivery is email.

    • To deliver the report through email:

      report schedule run <frequency> type email_hourly_stat report_format csv time_frame <time_frame> transport email
    • To deliver the report as a file:

      report schedule run <frequency> type email_hourly_stat report_format csv time_frame <time_frame> transport file

    An Email Hourly Stat report is added to the scheduled list. The following message appears:

    Configure email recipients for report schedule to take effect.
    Created report schedule 4.
  7. Verify the configuration for the report schedule.

    hostname (config) # show report schedule
    
    Periodicity  MonthDay       WeekDay  Time    Transport Command
    1 daily        -              -        12:00   email     email_hourly_stat report_format csv time_frame 1_day_ago
    2 weekly       -              Wed      11:00   email     email_executive_summary report_format pdf time_frame past_week
    3 monthly      end-of-month   -        12:00   file      alert_details report_               format csv time_frame past_month report_detail extended alert_type malware-object
    7 weekly       -              Wed      00:00   email     email_hourly_stat report_format csv time_frame today7 weekly       -              Wed      00:00   email     email_hourly_stat report_format csv time_frame today
    Total reporting jobs scheduled: 4.