Fortinet white logo
Fortinet white logo

Administration Guide

Revisions

Revisions

You can revert your FortiSwitch configuration to a previous revision.

Using the GUI:
  1. Go to System > Config > Revisions.
    The system displays a new page with an entry for each configuration file revision.
  2. Select a revision and then click Revert to revert the system configuration to the selected revision.
  3. In the Confirm Revert dialog, click Revert.
Using the CLI to revert to the last saved configuration:

config system global

set cfg-save revert

set cfg-revert-timeout <10-2147483647 seconds>

end

For example:

config system global

set cfg-save revert

set cfg-revert-timeout 20

end

This example saves the current configuration, waits 20 seconds, restarts the FortiSwitch unit, and reverts to the last saved configuration if the configuration was not manually saved within the timeout period. Before FortiSwitchOS 7.2.1, there was no restart before the configuration was reverted.

Using the CLI to check the configuration file revisions:

Use the following command to display the list of configuration file revisions:

execute revision list config

The FortiSwitch unit assigns a numerical ID to each configuration file. To display a particular configuration file contents, use the following command and specify the ID of the configuration file:

execute revision show config id <ID number>

The following example displays the list of configuration file revisions:

# execute revision list config 

ID TIME ADMIN FIRMWARE VERSION COMMENT
1 2015-08-31 11:11:00 admin V3.0.0-build117-REL0 Automatic backup (session expired)
2 1969-12-31 16:06:29 admin V3.0.0-build150-REL0 baseline
3 2015-08-31 15:19:31 admin V3.0.0-build150-REL0 baseline
4 2015-08-31 15:28:00 admin V3.0.0-build150-REL0 with admin timeout 
	

The following example displays the configuration file contents for revision ID 62:

 
# execute revision show config id 62
			
#config-version=FS1D24-3.04-FW-build171-160201:opmode=0:vdom=0:user=admin
#conf_file_ver=1784779075679102577
#buildno=0171
#global_vdom=1
config system global
   set admin-concurrent enable
       ...
   (output truncated)			

Revisions

Revisions

You can revert your FortiSwitch configuration to a previous revision.

Using the GUI:
  1. Go to System > Config > Revisions.
    The system displays a new page with an entry for each configuration file revision.
  2. Select a revision and then click Revert to revert the system configuration to the selected revision.
  3. In the Confirm Revert dialog, click Revert.
Using the CLI to revert to the last saved configuration:

config system global

set cfg-save revert

set cfg-revert-timeout <10-2147483647 seconds>

end

For example:

config system global

set cfg-save revert

set cfg-revert-timeout 20

end

This example saves the current configuration, waits 20 seconds, restarts the FortiSwitch unit, and reverts to the last saved configuration if the configuration was not manually saved within the timeout period. Before FortiSwitchOS 7.2.1, there was no restart before the configuration was reverted.

Using the CLI to check the configuration file revisions:

Use the following command to display the list of configuration file revisions:

execute revision list config

The FortiSwitch unit assigns a numerical ID to each configuration file. To display a particular configuration file contents, use the following command and specify the ID of the configuration file:

execute revision show config id <ID number>

The following example displays the list of configuration file revisions:

# execute revision list config 

ID TIME ADMIN FIRMWARE VERSION COMMENT
1 2015-08-31 11:11:00 admin V3.0.0-build117-REL0 Automatic backup (session expired)
2 1969-12-31 16:06:29 admin V3.0.0-build150-REL0 baseline
3 2015-08-31 15:19:31 admin V3.0.0-build150-REL0 baseline
4 2015-08-31 15:28:00 admin V3.0.0-build150-REL0 with admin timeout 
	

The following example displays the configuration file contents for revision ID 62:

 
# execute revision show config id 62
			
#config-version=FS1D24-3.04-FW-build171-160201:opmode=0:vdom=0:user=admin
#conf_file_ver=1784779075679102577
#buildno=0171
#global_vdom=1
config system global
   set admin-concurrent enable
       ...
   (output truncated)