Generating an email hourly stat report using the CLI

Prev Next

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

Note

Before a report can 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 generate an Email Hourly Stat report:
  1. Go to CLI configuration mode.

    hostname > enable
    hostname # configure terminal
  2. Specify an Email Hourly Stat report.

    hostname (config) # report generate type email_hourly_stat
  3. Write the report to a CSV file.

    hostname (config) # report generate type email_hourly_stat report_format csv
  4. Specify the time period for this report.

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

      hostname (config) # report generate type email_hourly_stat report_format csv time_frame today
    • To specify for the past 24 hours:

      hostname (config) # report generate type email_hourly_stat report_format csv time_frame 1_day_ago
    • To specify for the past 2 days:

      hostname (config) # report generate type email_hourly_stat report_format csv time_frame 2_days_ago
    • To specify for the past 3 days:

      hostname (config) # report generate type email_hourly_stat report_format csv time_frame 3_days_ago
    • To specify for the past 4 days:

      hostname (config) # report generate type email_hourly_stat report_format csv time_frame 4_days_ago
    • To specify for the past 5 days:

      hostname (config) # report generate type email_hourly_stat report_format csv time_frame 5_days_ago
    • To specify for the past 6 days:

      hostname (config) # report generate type email_hourly_stat report_format csv time_frame 6_days_ago
    • To specify for the past 7 days:

      hostname (config) # report generate type email_hourly_stat report_format csv time_frame 7_days_ago
  5. Specify the delivery method for the report. The default delivery is email.

    • To deliver the report through email:

      hostname (config) # report generate type email_hourly_stat report_format csv time_frame <time_frame> transport email
    • To deliver the report as a file:

      hostname (config) # report generate type email_hourly_stat report_format csv time_frame <time_frame> transport file

The following example shows how to deliver an Email Hourly Stat report as a .csv file covering the past 7 days:

hostname (config) # report generate type email_hourly_stat report_format csv time_frame 7_days_ago transport file
Execute report command. Check email or WebUI for report.