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.
Enable the CLI configuration mode:
hostname > enable hostname # configure terminal
Create the scan:
hostname (config) # fmps scan create from share shareNamewhere shareName is the share on which the scan will run.
Save your changes:
hostname (config) # write memory
Enable the CLI configuration mode:
hostname > enable hostname # configure terminal
Create the scan:
hostname (config) # fmps scan create from scan scanIDwhere scanID is the ID of the existing scan.
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