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.
Umer221
Staff
Staff
Article Id 290906
Description This article describes how to fix an issue where, when trying to change the central management type from FortiManager to FortiGuard or none, administrators may run into an error that prevents them with the error 'Please unregister-device from FortiManager first. -582'.
Scope FortiOS, FortiGate, FortiManager.
Solution
  1. The error:

 

FMG_error_1.png

 

config system central-management
    set type none
end

Please unregister-device from FortiManager first.
object set operator error, -582 discard the setting
Command fail. Return code -582

 

  1. A FortiManager serial number will be necessary to proceed further. Upon obtaining the serial number, run the following commands as shown in the photo:
 
 

FMG_error_2.png

 

execute central-mgmt unregister-device <FortiManager serial number>

 

  1. Finally, set the type to either 'FortiGuard' or 'none' using the following commands:

FMG_error_3.png

 

config system central-management
    set type fortiguard <----- Alternatively, specify 'none'.
end