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
- 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
- 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
- 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...
|