Fortinet white logo
Fortinet white logo

CLI Reference

wvs policy

wvs policy

Use this command to define a web vulnerability scan policy. The policy enables you to set the frequency of the vulnerability scan, schedule the scan, and choose a format for the scan report. The policy also enables you to select an email policy that determines who receives the scan report.

Before you can complete a web vulnerability scan policy, you must first configure a scan profile using the FortiWeb web UI and a scan schedule using either the web UI or the command wvs schedule.

To use this command, your administrator account’s access control profile must have either w or rw permission to the wvsgrp area. For details, see Permissions.

Syntax

config wvs policy

edit "<wvs-policy_name>"

set type {runonce | schedule}

set schedule "<wvs-schedule_name>"

set profile "<wvs-profile_name>"

set email "<email-policy_name>"

set report_format {html pdf xml}

set runtime <count_int>

next

end

Variable Description Default

"<wvs-policy_name>"

Enter the name of a new or existing web vulnerability scan policy. The maximum length is 63 characters.

To display the list of existing policies, enter:

edit ?

No default.

type {runonce | schedule}

Select either:

runonce

schedule "<wvs-schedule_name>"

Enter the name of an existing web vulnerability scan schedule. The maximum length is 63 characters. For details, see wvs schedule.

To display the list of existing schedules, enter:

set schedule ?

This setting is applicable only if type {runonce | schedule} is schedule.

No default.

profile "<wvs-profile_name>"

Enter the name of an existing web vulnerability scan profile. The maximum length is 63 characters.

To display a list of the existing profiles, enter:

set profile ?

No default.

email "<email-policy_name>"

Enter the name of an existing email policy. When the scan completes, the FortiWeb appliance will send email in the specified format to the email addresses in the policy. The maximum length is 63 characters. For details, see log email-policy.

To display the list of existing policy, enter:

set email ?

No default.

report_format {html pdf xml}

Select one or more file formats of the report to attach when emailing it.

html

runtime <count_int>

Not configurable.

To reset the value to zero, enter:

set runtime 0

No default.

Example

The following example defines a recurring vulnerability scan with email report output in RTF and text format.

config wvs policy

edit "wvs-policy1"

set type schedule

set schedule "wvs-schedule1"

set report_format xml

set profile "wvs-profile1"

set email "EmailPolicy1"

next

end

Related topics

wvs policy

wvs policy

Use this command to define a web vulnerability scan policy. The policy enables you to set the frequency of the vulnerability scan, schedule the scan, and choose a format for the scan report. The policy also enables you to select an email policy that determines who receives the scan report.

Before you can complete a web vulnerability scan policy, you must first configure a scan profile using the FortiWeb web UI and a scan schedule using either the web UI or the command wvs schedule.

To use this command, your administrator account’s access control profile must have either w or rw permission to the wvsgrp area. For details, see Permissions.

Syntax

config wvs policy

edit "<wvs-policy_name>"

set type {runonce | schedule}

set schedule "<wvs-schedule_name>"

set profile "<wvs-profile_name>"

set email "<email-policy_name>"

set report_format {html pdf xml}

set runtime <count_int>

next

end

Variable Description Default

"<wvs-policy_name>"

Enter the name of a new or existing web vulnerability scan policy. The maximum length is 63 characters.

To display the list of existing policies, enter:

edit ?

No default.

type {runonce | schedule}

Select either:

runonce

schedule "<wvs-schedule_name>"

Enter the name of an existing web vulnerability scan schedule. The maximum length is 63 characters. For details, see wvs schedule.

To display the list of existing schedules, enter:

set schedule ?

This setting is applicable only if type {runonce | schedule} is schedule.

No default.

profile "<wvs-profile_name>"

Enter the name of an existing web vulnerability scan profile. The maximum length is 63 characters.

To display a list of the existing profiles, enter:

set profile ?

No default.

email "<email-policy_name>"

Enter the name of an existing email policy. When the scan completes, the FortiWeb appliance will send email in the specified format to the email addresses in the policy. The maximum length is 63 characters. For details, see log email-policy.

To display the list of existing policy, enter:

set email ?

No default.

report_format {html pdf xml}

Select one or more file formats of the report to attach when emailing it.

html

runtime <count_int>

Not configurable.

To reset the value to zero, enter:

set runtime 0

No default.

Example

The following example defines a recurring vulnerability scan with email report output in RTF and text format.

config wvs policy

edit "wvs-policy1"

set type schedule

set schedule "wvs-schedule1"

set report_format xml

set profile "wvs-profile1"

set email "EmailPolicy1"

next

end

Related topics