Skip to main content
mvlasak
Staff
Staff
November 29, 2024

Technical Tip: Delete FortiLink via CLI script on Device database

  • November 29, 2024
  • 0 replies
  • 4337 views
Description This article describes how to delete FortiLink via the CLI script in the Device database.
Scope FortiManager 7.x.
Solution

Create and execute the following CLI script on the device database in the FortiGate default config:

 

config system ntp

    unset interface

    set server-mode disable
end

 

config system dhcp server
    delete 2
end


config system interface
    edit "fortilink"
        set fortilink disable
        unset member
    next
    delete fortilink
end

 

If it is not possible to successfully delete the interface, check if FortiLink is being used by other entries by running the command below:

 

diagnose sys cmdb refcnt show system.interface.name fortilink