Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

CLI Reference

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 details, see Permissions.

For more information on FortiWeb-VM licenses, see the FortiWeb-VM Install Guide:

HTTPs://docs.fortinet.com/fortiweb/hardware

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>"

Enter the name of the license file.

No default.

"<ftp_ipv4>"

Enter the IP address of the FTP server.

No default.

"<user_str>"

Enter the user name that FortiWeb uses to authenticate with the server.

No default.

"<password_str>"

Enter the password for the account specified by <user_str>.

No default.

"<tftp_ipv4>"

Enter the IP address of the TFTP server.

No default.

Example

This example uploads the license file FVVM040000010871.lic from the TFTP server 192.0.2.23 to the FortiWeb appliance.

execute restore vmlicense tftp FVVM040000010871.lic 192.0.2.23

 

The FortiWeb appliance uploads the file, and then prompts you to log out and log in again.

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 details, see Permissions.

For more information on FortiWeb-VM licenses, see the FortiWeb-VM Install Guide:

HTTPs://docs.fortinet.com/fortiweb/hardware

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>"

Enter the name of the license file.

No default.

"<ftp_ipv4>"

Enter the IP address of the FTP server.

No default.

"<user_str>"

Enter the user name that FortiWeb uses to authenticate with the server.

No default.

"<password_str>"

Enter the password for the account specified by <user_str>.

No default.

"<tftp_ipv4>"

Enter the IP address of the TFTP server.

No default.

Example

This example uploads the license file FVVM040000010871.lic from the TFTP server 192.0.2.23 to the FortiWeb appliance.

execute restore vmlicense tftp FVVM040000010871.lic 192.0.2.23

 

The FortiWeb appliance uploads the file, and then prompts you to log out and log in again.