Description
This article describes how to upload VM license from CLI via FTP/TFTP server.
Scope
FortiGate.
Solution
In certain scenarios, uploading the VM license via an external FTP/TFTP server is needed but the GUI only allows uploading the license from a local machine.
The following command can be used to restore the VM license via an external FTP/TFTP server:
exec restore vmlicense ftp/tftp <license_file_name> <ip:port> <username> <password> Bezza-kvm44
exec restore vmlicense tftp FGT.lic 10.47.1.117
This operation will overwrite the current VM license!
Do you want to continue? (y/n)y
Please wait...
Connect to tftp server 10.47.1.117 ...
Get VM license from tftp server OK.
VM license install succeeded. Rebooting firewall.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.