Fortinet white logo
Fortinet white logo

CLI Reference

add-vm-license

add-vm-license

Add a VM license to the FortiAnalyzer.

This command is only available on FortiAnalyzer VM models.

Syntax

execute add-vm-license {<vm license string> | ftp | sftp | scp>} <server:port> <file path> <user> {<password> | <ssh-cert>}

Variable

Description

{<vm license string> | ftp | sftp | scp>}

Enter the string of license, or enter license retrieval method (ftp/sftp/scp) .

If entering the license string, copy and paste the string from the license file. The license string must be enclosed with double quotes. Do not removed line breaks from the string.

<server:port>

Enter the server:port to retrieve license from.

<file path>

Enter the filename and path to license file on the server.

<user>

Enter the username to use on server.

{<password> | <ssh-cert>}

Enter the password to use on server (for FTP/SFTP) or the SSH certificate (for SCP).

Example

The contents of the license file needs to be in quotes in order for it to work.

execute add-vm-license "-----BEGIN FAZ VM LICENSE-----

QAAAAJ09s+LTe...ISJTTYPcKoDmMa6

-----END FAZ VM LICENSE-----"

add-vm-license

add-vm-license

Add a VM license to the FortiAnalyzer.

This command is only available on FortiAnalyzer VM models.

Syntax

execute add-vm-license {<vm license string> | ftp | sftp | scp>} <server:port> <file path> <user> {<password> | <ssh-cert>}

Variable

Description

{<vm license string> | ftp | sftp | scp>}

Enter the string of license, or enter license retrieval method (ftp/sftp/scp) .

If entering the license string, copy and paste the string from the license file. The license string must be enclosed with double quotes. Do not removed line breaks from the string.

<server:port>

Enter the server:port to retrieve license from.

<file path>

Enter the filename and path to license file on the server.

<user>

Enter the username to use on server.

{<password> | <ssh-cert>}

Enter the password to use on server (for FTP/SFTP) or the SSH certificate (for SCP).

Example

The contents of the license file needs to be in quotes in order for it to work.

execute add-vm-license "-----BEGIN FAZ VM LICENSE-----

QAAAAJ09s+LTe...ISJTTYPcKoDmMa6

-----END FAZ VM LICENSE-----"