Example of adding an offline device by pre-shared key
This section describes how to add a FortiGate model by using the pre-shared key for FortiGate for zero-touch provisioning (ZTP). You must perform some steps using FortiManager and some steps using FortiOS.
To add a model device by pre-shared key:
- If ADOMs are enabled, select the ADOM to which you want to add the device.
- Go to Device Manager > Device & Groups.
- Click Add Device. The Add Device wizard displays.
- Click Add Model Device and type a name for the model device.
- Beside Link Device By, select Pre-shared Key, and type the pre-shared key from FortiGate.
- Set the remaining options, and click Next. The device is created in the FortiManager database.
- Click Finish to exit the wizard.
After the device model is added to FortiManager, you can use FortiManager to configure the model device.
- In FortiOS, configure the FortiManager IP address or FQDN in device central management by using the following command:
config system central-management
set type fortimanager
set fmg {<ip address> | <FQDN>}
end
-
In FortiOS, use the following command to link the model device to the real device, and to install configurations to the real device:
exe central-mgmt register-device <fmg-serial-number> <pre-shared key>
After the command is executed, FortiManager automatically links the model device to the real device, and installs configurations to the device.