FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
ssteo
Staff
Staff
Article Id 230982
Description This article describes how to proceed a factory reset with an enabled VDOM.
Scope FortiGate.
Solution

When a VDOM is enabled, it is not possible to proceed a factory reset  without going to global mode without facing the below issue:

 

Fortigate # execute factoryreset
8497: Unknown action 0
Command fail. Return code -1

 

With keyboard help shortcut (?) all available commands are listed but execute is not there.

 

FGT # ?
config     Configure object.
get        Get dynamic and system information.
show       Show configuration.
exit       Exit the CLI.


Go to global mode and run the command 'execute factoryreset'

 

Below is the sample output:

 

Fortigate # config global

Fortigate (global) # execute factoryreset
This operation will reset the system to factory default!
Do you want to continue? (y/n)y


System is resetting to factory default...


The system is going down NOW !!

Fortigate (global) #
Please stand by while rebooting the system.
Restarting system.

System is starting...
Serial number is FGVMxxxxxxx


FortiGate-VM64-KVM login: