Creating a Configuration File

Using the configure command, you can create a custom configuration file that can be used to pass parameters and options to the QScanner easily. This helps you store commonly used configurations in a file and reuse them without any need to provide them to QScanner on each run. 

To create a custom configuration file, use:
./qscanner configure [file path] [FLAGS]

 

Example 1: 
./qscanner configure --proxy <proxy url> (or --skip-verify-tls) --mode inventory-only

This creates /root/.config/qualys/qscanner/config.json configuration file that can be used like:
./qscanner image ubuntu --config-file <config file location>

If --config-file parameter is not specified, QScanner loads the configuration from the default config location /root/.config/qualys/qscanner/config.json (if it exists).

 

Example 2:
./qscanner configure /root/myconfig.json --pod <POD name> --skip-verify-tls

This creates myconfig.json/root/ that has custom values for --pod <POD name>, and --skip-verify-tls flag arguments and default values for all other arguments. To use this configuration file, use the following command:

./qscanner image ubuntu --config-file /root/myconfig.json