--- title: "Creating a scan using the CLI" slug: "creating-a-scan-using-the-cli" tags: ["File Protect (FX)", "Product Usage"] updated: 2026-09-15T13:08:10Z published: 2026-09-15T13:08:10Z canonical: "docs.trellix.com/creating-a-scan-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. # Creating a scan using the CLI There are two ways to create a scan from the CLI: - Create a base scan from a share. The new scan has no defined criteria. It will run on the specified share. - Create a scan using an existing scan as a template. The new scan has the same parameters as the existing scan, and can be modified as needed. It will run on the same share as the existing scan. ### Important Scans you create using the CLI will not be shown on the **Currently Configured Scans** page in the Web UI until you start or schedule them, as described in [Starting or scheduling a scan using the CLI](/network-and-platform/docs/starting-a-scan-1). To configure a scan from a share: 1. Enable the CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Create the scan: ``` hostname (config) # fmps scan create from share shareName ``` where *shareName* is the share on which the scan will run. 3. Save your changes: ``` hostname (config) # write memory ``` To create a scan from an existing scan: 1. Enable the CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Create the scan: ``` hostname (config) # fmps scan create from scan scanID ``` where *scanID* is the ID of the existing scan. 3. Save your changes: ``` hostname (config) # write memory ``` ### Examples The following example creates a new scan on the Acme_HR share. ``` hostname (config) # fmps scan create from share Acme_HR Scan 54 configured ``` The following example creates a new scan on based on scan 165. The new scan will run on the same share as the existing scan. ``` hostname (config) # fmps scan create from scan 165 Scan 268 configured ``` :