--- title: "Scheduling an infected hosts trend report using the CLI" slug: "scheduling-an-infected-hosts-trend-report-using-the-cli" tags: ["Network Security (NX)", "Product Usage"] updated: 2026-09-02T17:27:09Z published: 2026-09-02T17:27:09Z canonical: "docs.trellix.com/scheduling-an-infected-hosts-trend-report-using-the-cli" --- > ## 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. # Scheduling an infected hosts trend report using the CLI Follow these steps to schedule an infected hosts trend report using the CLI. ### Command syntax You schedule an infected hosts trend report by using the `report schedule` command with the following command-line options. `run <frequency>` where `<frequency>` specifies when the report is run: - `daily at <hh:mm>` Run the report daily, where `<hh:mm>` specifies the time to start based on a 24-hour clock. - `hourly at <mm>` Run the report hourly, where `<mm>` is the number of minutes into the hour. - `monthly on {<date> | end_of_month} at <hh:mm>` Run the report monthly, where `<date>` is the day of the month and `<hh:mm>` specifies the time to start based on a 24-hour clock. - `weekly every <day> at <hh:mm>` Run the report weekly, where `<day>` is the day of the week and `<hh:mm>` specifies the time to start based on a 24-hour clock **`type infected_hosts_trend`** **`report_format csv`** `time_frame <timeFrame>` where `<timeFrame>` the output file format: - `past_week` - `past_month` - `past_3_months` ### Prerequisites - The SMTP server or domain is configured and the email address of the report recipient is configured. - Admin or Operator access to the SmartVision appliance. To schedule an infected hosts trend report with email notification: 1. Log in to the appliance CLI and go to configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Schedule an infected hosts trend report by using the following command: ``` report schedule run type infected_hosts_trend report_format csv time_frame transport ``` The recurring report is asigned an identification number. The report ID, type, and specifications are added to the top of the scheduled reports list. ``` hostname (config) # report schedule run monthly on end-of-month at 2359 type infected_hosts_trend report_format csv time_frame past_month transport file Created report schedule 5. ``` After the scheduled report runs, the report file is emailed using the configured email server and recipient list. 3. Verify the configuration for the report schedule. ``` hostname (config) # show report schedule Periodicity      MonthDay       WeekDay  Time    Transport Command  5 monthly      end-of-month   -         23:59   file      infected_hosts_trend                                                            report_format csv                                                            time_frame past_month Total reporting jobs scheduled: 1. ``` :