Skip to main content
rameshk_FTNT
Staff
Staff
March 18, 2015

Technical Tip: How to identify and restore previous versions of firmware

  • March 18, 2015
  • 0 replies
  • 12060 views

Description

 
This article provides a method to identify and, if necessary, to restore a previous firmware image from a flash disk (downgrade to a previous version).

The relevant release notes and admin guides should be consulted before any firmware version changes to understand the implications of the change.


Scope

 
FortiGate.


Solution

 

The following example illustrates how to restore the firmware from v7.0.6 to v7.4.9.
 
  1. Determine the Image revision ID on flash using the command:

diagnose system flash list

Capture.png

Use the build number to determine the precise firmware version and compare it to support.fortinet.com or the upgrade tool, which allows one to confirm which build number corresponds to the firmware version.

 

builde number.PNG

 

An alternative way to confirm the firmware version would be from the backup config; the first line consists of the firmware version along with the build number such as '#config-version=FGT-7.0.15-FW-build0632-240403:opmode=0:vdom=0:'.

 

  1.  Use the following command to restore the firmware held in partition 2:


Captdfsgseure.PNG

 

The device will reboot and load the previously selected version.

 

  1. As an alternative, the command execute set-next-reboot {primary | secondary} can be used to restore to the previous version of firmware. For further details on usage, see Technical Tip: Selecting an alternate firmware for the next reboot.
Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!