Setting the Maximum Run Time for Scans

By default, a sensor can run a scan for an indefinite period of time, thus preventing it from running other scans. You can limit the amount of time scans can run on sensors by setting the scan_timeout option (in minutes) for a given job, for a given sensor, or globally for all sensors.

Precedence in Timeout Settings

The following rules of precedence apply to timeout settings:

Configuring Maximum Run Time for a Specific Job

To configure the maximum run time of one minute for a given job, run the following:

scancentral -url <controller_url> start -package <path> --scan-time-out 1

To configure the maximum run time of two minutes for a given sensor, run the following:

scancentral -url <controller_url> worker --scan-time-out 2

Configuring Maximum Run Time for All Sensors

To configure the maximum run time for all sensors:

  1. Navigate to the <controller_dir>/tomcat/webapps/scancentral-ctrl/WEB-INF/classes directory, and open the config.properties file in a text editor.

  2. Set the scan_timeout property to the maximum number of minutes for scans to run on sensors.

  3. Save and close the config.properties file.

See Also

Fortify ScanCentral SAST Command-Line Options