FortiWeb
A FortiWeb can be configured to join a Security Fabric through the root or downstream FortiGate.
ldsouza
Staff
Staff
Article Id 343815
Description This article describes how to revert the configuration changes using 'batch' mode
Scope FortiWeb, FortiWeb-VM.
Solution

This command enables the execution of a group of commands.
If a command fails or an operation cannot be completed, the entire group of commands can be rolled back, even if some were executed successfully.


execute batch start <----- To enter into the batch mode.
execute batch status<----- To verify if the match mode is enabled/disabled
execute batch recover<----- To revert the commands executed in the Batch mode.
execute batch end <----- To exit from the batch mode


For example

 

  1. From the below example, the disk logging is disabled, and attack logging is enabled.

 

FortiWeb # show log disk
    config log disk
        set status disable
        set logtype alog
    end

 

  1. Batch mode is used to enable disk logging and disable attack log.

 

FortiWeb # execute batch start

Enter batch mode...

FortiWeb # config log disk

FortiWeb (disk) # unset status

FortiWeb (disk) # unset logtype

FortiWeb (disk) # end

 

FortiWeb # show log disk
    config log disk
end

 

  1. The configuration is reverted using 'execute batch recover' and exits the batch mode..

 

FortiWeb # "execute batch recover"

 

FortiWeb # show log disk
    config log disk
        set status disable
        set logtype alog
    end

 

Fortiweb # execute batch end

Exit batch mode...

Contributors