execute : restore vmlicense
 
restore vmlicense
Use this command to upload a FortiWeb-VM license file from an FTP or TFTP server.
After you enter the command, FortiWeb prompts you to confirm the upload.
After the license is authenticated successfully, the following message is displayed:
“*ATTENTION*: license registration status changed to 'VALID', please logout and re-login”
To use this command, your administrator account’s access control profile must have either w or rw permission to the mntgrp area. For more information, see “Permissions”.
For more information on FortiWeb-VM licenses, see the FortiWeb-VM Install Guide.
Syntax
execute restore vmlicense {ftp | tftp} <license-file_str> {<ftp_ipv4> | <user_str>:<password_str>@<ftp_ipv4> | <tftp_ipv4>}
Variable
Description
Default
{ftp | tftp}
Specify whether to connect to the server using file transfer protocol (FTP) or trivial file transfer protocol (TFTP).
No default.
<license-file_str>
The name of the license file.
No default.
<ftp_ipv4>
The IP address of the FTP server.
No default.
<user_str>
The user name that FortiWeb uses to authenticate with the server.
No default.
<password_str>
The password for the account specified by <user_str>.
No default.
<tftp_ipv4>
The IP address of the TFTP server.
No default.
Example
This example uploads the license file FVVM040000010871.lic from the TFTP server 192.168.1.23 to the FortiWeb appliance.
execute restore vmlicense tftp FVVM040000010871.lic 192.168.1.23
The FortiWeb appliance uploads the file, and then prompts you to log out and log in again.