Skip to content
This repository was archived by the owner on May 3, 2020. It is now read-only.

User Defined Variables

BuffaloWill edited this page Dec 24, 2015 · 6 revisions

User Defined Variables give the ability to add global variables to a report. For example, say that you wanted the following network range to be shown through the report:

192.168.1.0/24

There are two ways to do this:

Adding a UDV Through the UI

Go to Report > Additional Features > Edit User Defined Variables and add

Name: ip_range

Value: 192.168.1.0/24

Save.

Go into your report template and add §ip_range§ where this range should appear. The ips will be inserted when the report is generated.

Adding a Global UDV variable in config.json

It is also possible to add a User Defined Variable into the config.json. This will save the effort of having to re-create the UDV through the UI and will be automatically added to each new report. To do this, edit config.json and edit the user_defined_variables value:

"user_defined_variables":["ip_range"]

Go to Report > Additional Features > Edit User Defined Variables and modify the value to the range of your choice:

Value: 192.168.1.0/24

Go into your report template and add §ip_range§ where this range should appear. The ips will be inserted when the report is generated.

Clone this wiki locally