Fortinet Document Library

Version:


Table of Contents

1.0.0
Download PDF
Copy Link

Injecting tokens into FortiGate-VM

Use the CLI console to inject the licensing token into FortiGate-VM. You are not required to inject the token after you update a configuration.

Note

You cannot download a VM license file you created in Flex-VM from FortiCloud > Assets > Manage/View Assets.

To inject the token in the CLI:
  1. Ensure the FortiGate-VM can connect to directregistration.fortinet.com.

    exec ping directregistration.fortinet.com

  2. Inject the token into the virtual machine.

    exec vm-license <License File Token>

    This operation will reboot the system !

    Do you want to continue? (y/n)

    The virtual machine installs the VM license and reboots.

  3. Verify the token was injected into the virtual machine.

    diag debug vm-print-license

After the token is injected into the virtual machine, a strikethrough appears across the License File Token in the Virtual Machine Details.

Injecting tokens into FortiGate-VM

Use the CLI console to inject the licensing token into FortiGate-VM. You are not required to inject the token after you update a configuration.

Note

You cannot download a VM license file you created in Flex-VM from FortiCloud > Assets > Manage/View Assets.

To inject the token in the CLI:
  1. Ensure the FortiGate-VM can connect to directregistration.fortinet.com.

    exec ping directregistration.fortinet.com

  2. Inject the token into the virtual machine.

    exec vm-license <License File Token>

    This operation will reboot the system !

    Do you want to continue? (y/n)

    The virtual machine installs the VM license and reboots.

  3. Verify the token was injected into the virtual machine.

    diag debug vm-print-license

After the token is injected into the virtual machine, a strikethrough appears across the License File Token in the Virtual Machine Details.