FortiSwitch
FortiSwitch: secure, simple and scalable Ethernet solutions
zendodg
Staff
Staff
Article Id 335271
Description This article describes how to recover a password on a FortiSwitch managed by a FortiGate.
Scope FortiSwitch, FortiGate.
Solution

If the password has been lost for a FortiSwitch managed by FortiGate, it can still be modified.

Requirement:

The Switch must be 'online' in FortiSwitch view.

 

exec switch-controller get-sync-status all

 

syncokay.PNG

 

On the FortiGate, modify the default switch profile to apply the same password to all FortiSwitches managed by the same FortiGate.

 

config switch-controller switch-profile

edit "default"

set login-passwd-override enable      <- Enable password override on FortiSwitch.

set login-passwd ********             <- Set new password.

next

end

 

If it would be preferred to avoid changing the admin password on all FortiSwitches, create a switch profile and assign it to one switch.

 

config switch-controller switch-profile

edit "setpass"                            <- New switch profile.

set login-passwd-override enable       <- Enable the password override on the FortiSwitch.

set login-passwd ********              <- Set a new password.

next

end

 

config switch-controller managed-switch

edit "S224EPXXXXXXXX"                    <- Switch ID to modify.

set switch-profile "setpass"          <- Assign switch profile.

end

 

FortiSwitch in standalone mode does not have a way to recover the admin password. The only way to do this is to perform a factory reset.