--- title: "Generating an email activity report using the CLI" slug: "generating-an-email-activity-report-using-the-cli" tags: ["Product Usage", "EX 11.x", "FX 11.x", "AX 11.x", "NX 11.x", "Network Security"] updated: 2026-08-24T19:53:02Z published: 2026-08-24T19:53:02Z canonical: "docs.trellix.com/generating-an-email-activity-report-using-the-cli" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Generating an email activity report using the CLI Use the commands in this section to generate a consolidated Email Activity report. > [!NOTE] > 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 Activity report:** 1. Go to CLI configuration mode. ``` hostname > enable hostname # configure terminal ``` 2. Specify an Email Activity report. ``` hostname (config) # report generate type email_activity ``` 3. Write the report to an Adobe PDF file. ``` hostname (config) # report generate type email_activity report_format pdf ``` 4. Specify the time period for this report. - To specify for the past week: ``` hostname (config) # report generate type email_activity report_format time_frame past_week ``` - To specify for the past month: ``` hostname (config) # report generate type email_activity report_format time_frame past_month ``` 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_activity report_format time_frame transport email ``` - To deliver the report as a file: ``` hostname (config) # report generate type email_activity report_format time_frame transport file ``` The following example shows how to deliver an Email Activity report as a .pdf file covering the past week: ``` hostname (config) # report generate type email_activity report_format pdf time_frame past_week transport file Execute report command. Check email or WebUI for report. ```