--- title: "Generating an Infected Hosts Trend report using the CLI" slug: "generating-an-infected-hosts-trend-report-using-the-cli-1" tags: ["Product Usage", "EX 11.x", "FX 11.x", "AX 11.x", "NX 11.x", "Network Security"] updated: 2026-09-12T20:42:26Z published: 2026-09-12T20:42:26Z canonical: "docs.trellix.com/generating-an-infected-hosts-trend-report-using-the-cli-1" --- > ## 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 Infected Hosts Trend report using the CLI Use the commands in this section to generate a consolidated Infected Hosts Trend 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, see the Network Security System Administration Guide. **To generate an Infected Hosts Trend report:** 1. Enable the CLI configuration mode. ``` hostname > enable hostname # configure terminal ``` 2. Specify an Infected Hosts Trend report. ``` hostname (config) # report generate type Infected_Hosts_Trend ``` 3. Write the report to a CSV file. ``` hostname (config) # report generate type Infected_Hosts_Trend report_format csv ``` 4. Specify the time period for this report. - To specify for the past week: ``` hostname (config) # report generate type Infected_Hosts_Trend report_format csv time_frame past_week ``` - To specify for the past month: ``` hostname (config) # report generate type Infected_Hosts_Trend report_format csv time_frame past_month ``` - To specify for the past three months: ``` hostname (config) # report generate type Infected_Hosts_Trend report_format csv time_frame past_3_months ``` - To specify the range between the start and end dates: ``` hostname (config) # report generate type Infected_Hosts_Trend report_format csv time_frame between start_date yyyy/mm/dd start_time hh:mm:ss end_date yyyy/mm/dd end_time hh:mm:ss ``` 5. Specify the delivery method for the report. The default delivery is email. - To deliver the report through email: ``` hostname (config) # report generate type Infected_Hosts_Trend report_format csv time_frame transport email ``` - To deliver the report as a file: ``` hostname (config) # report generate type Infected_Hosts_Trend report_format csv time_frame transport file ``` The following example shows how to deliver an Infected Hosts Trend report as a .csv file covering the past month: ``` hostname (config) # report generate type Infected_Hosts_Trend report_format csv time_frame past_month transport file ``` ``` Execute report command. Check email or WebUI for report. ```