Fortinet black logo

Managing config files

Managing config files

This pane stores the command files and backup files of FortiWeb devices. Also, you can configure command files, and push them to related devices with Config Wizard.

Managing command files

This tab stores the config files that can be called by the plugin push-command-file-to-fortiweb. Two command file templates are provided here, and you can create new command files with the templates and store them in the default or newly created directory. After the command file is created, you can push the config to certain device.

To create a new directory:

  1. Click the icon.
  2. Input a directory name, for example, FWB111.
  3. Click OK, and you can see the new directory.


To create a new command file:

  1. Right click the directory name FWB111.
  2. Click Add.


    You can click Delete to remove a directory.
  3. Input a command file name, for example, configure_policy.
  4. Click OK, and you can see the new command file.


  5. Edit the command file in Edit Command File section. You can also refer to the template file and make updates accordingly.
  6. Click OK to finish the command file.
  7. Right click the command file name.
  8. Click Push Config.


    Also, you can click Add to add a new command file, or click Delete and Download to delete or download a command file.
  9. Configure the push settings below.
    Name A default name is available here.
    Description Enter a description for the operation.
    Device Select a device for this push.
    Plugin A default plugin name.
    Plugin Option The parameter descriptions of plugins.
    Force Enable this option to execute the config file by force or not.
    Push Type Only one type is available currently.
    Config File A default config file is included here, or you can select one file from the right list.
  10. Click Launch to push the configuration to the device, and this goes to Job Events pane.

In addition, a variable list for devices or device groups is displayed on the right side of the page. Choose the variable in Edit Command File section, double click the variable on the right, and the variables (highlighted in red) in the command file are updated.

Managing backup files

This tab stores the config files that are generated by backup-config-for-fortiweb related jobs and can be called by restore-config-for-fortiweb to restore the configurations of related FortiWeb devices.



tooltip icon

You can schedule automatic deletion of backup files from System Settings > File Management. Check the box for backup config, and set the time periods and deletion time accordingly.


To create a new directory:

  1. Click the icon.
  2. Input a directory name, for example, FWB111.
  3. Click OK, and you can see the new directory.

To create a new backup file:

  1. Right click the directory name.
  2. Click Add.


    You can click Delete to remove a directory, or click Download to fetch the backup file.
  3. Input a backup file name. Check the highest sequence number from the backup file list, for example, 1178_20180912_044109_UTC.conf, then use 1179, followed by the date when the file is created to name the file.
  4. Click OK, and you can see the new backup file.


  5. Edit the backup file in Edit Command File section.
  6. Click OK to finish the backup file.

Using Config Wizard

With this wizard, you can take configurations of a FortiWeb device as a template, generate new configurations by GUI, and push such configurations to FortiWeb devices.

note icon

This feature allows you to change your operations on GUI to command lines and generate config files.

Follow steps below to use this wizard:

  1. Configure the basic settings below. Click Next.
    FortiWeb Select the FortiWeb device, whose configurations you want to take as the template.
    Command File Directory Select the directory where the new file is put.
    Command File Name Enter the command file name. This file name can not be the same with that in Command Files.
  2. Wait for the synchronization from the selected device to FortiWeb Manager.




    Once the synchronization is finished, the Config Management tab is opened in new tab.
  3. caution icon

    Do not enable the Block Pop-ups option of the browser.

  4. Configure your settings with Config Management tab, and click Next when you are done. The Generating diff content .. page shows for minutes.
  5. Edit the command file, and click Next. Or just click Save to save the file and leave Config Wizard if you do not want to push the config.
  6. On the Push Config pane, configure related settings and click Launch.
    You can view the details from Job Events.

Managing config files

This pane stores the command files and backup files of FortiWeb devices. Also, you can configure command files, and push them to related devices with Config Wizard.

Managing command files

This tab stores the config files that can be called by the plugin push-command-file-to-fortiweb. Two command file templates are provided here, and you can create new command files with the templates and store them in the default or newly created directory. After the command file is created, you can push the config to certain device.

To create a new directory:

  1. Click the icon.
  2. Input a directory name, for example, FWB111.
  3. Click OK, and you can see the new directory.


To create a new command file:

  1. Right click the directory name FWB111.
  2. Click Add.


    You can click Delete to remove a directory.
  3. Input a command file name, for example, configure_policy.
  4. Click OK, and you can see the new command file.


  5. Edit the command file in Edit Command File section. You can also refer to the template file and make updates accordingly.
  6. Click OK to finish the command file.
  7. Right click the command file name.
  8. Click Push Config.


    Also, you can click Add to add a new command file, or click Delete and Download to delete or download a command file.
  9. Configure the push settings below.
    Name A default name is available here.
    Description Enter a description for the operation.
    Device Select a device for this push.
    Plugin A default plugin name.
    Plugin Option The parameter descriptions of plugins.
    Force Enable this option to execute the config file by force or not.
    Push Type Only one type is available currently.
    Config File A default config file is included here, or you can select one file from the right list.
  10. Click Launch to push the configuration to the device, and this goes to Job Events pane.

In addition, a variable list for devices or device groups is displayed on the right side of the page. Choose the variable in Edit Command File section, double click the variable on the right, and the variables (highlighted in red) in the command file are updated.

Managing backup files

This tab stores the config files that are generated by backup-config-for-fortiweb related jobs and can be called by restore-config-for-fortiweb to restore the configurations of related FortiWeb devices.



tooltip icon

You can schedule automatic deletion of backup files from System Settings > File Management. Check the box for backup config, and set the time periods and deletion time accordingly.


To create a new directory:

  1. Click the icon.
  2. Input a directory name, for example, FWB111.
  3. Click OK, and you can see the new directory.

To create a new backup file:

  1. Right click the directory name.
  2. Click Add.


    You can click Delete to remove a directory, or click Download to fetch the backup file.
  3. Input a backup file name. Check the highest sequence number from the backup file list, for example, 1178_20180912_044109_UTC.conf, then use 1179, followed by the date when the file is created to name the file.
  4. Click OK, and you can see the new backup file.


  5. Edit the backup file in Edit Command File section.
  6. Click OK to finish the backup file.

Using Config Wizard

With this wizard, you can take configurations of a FortiWeb device as a template, generate new configurations by GUI, and push such configurations to FortiWeb devices.

note icon

This feature allows you to change your operations on GUI to command lines and generate config files.

Follow steps below to use this wizard:

  1. Configure the basic settings below. Click Next.
    FortiWeb Select the FortiWeb device, whose configurations you want to take as the template.
    Command File Directory Select the directory where the new file is put.
    Command File Name Enter the command file name. This file name can not be the same with that in Command Files.
  2. Wait for the synchronization from the selected device to FortiWeb Manager.




    Once the synchronization is finished, the Config Management tab is opened in new tab.
  3. caution icon

    Do not enable the Block Pop-ups option of the browser.

  4. Configure your settings with Config Management tab, and click Next when you are done. The Generating diff content .. page shows for minutes.
  5. Edit the command file, and click Next. Or just click Save to save the file and leave Config Wizard if you do not want to push the config.
  6. On the Push Config pane, configure related settings and click Launch.
    You can view the details from Job Events.