License failure is seen on QFX5k devices after upgrading to version 20.3R1 or later releases with the flex license model.
root@QFX5120> request system license add /tmp/license.txt
error: license key format not valid for this product error: License validation failed. License addition failed due to invalid license add license failed (1 errors) root@QFX5120> show system license License usage: none Licenses installed: none
You will need to obtain a new license key format compatible with the updated software version.In release 20.3R1, the license system changed to the Juniper Agile Licensing. Because of this, the license key format has been changed from prior versions. If you encounter an error message on your QFX, it’s likely due to the new license key format required by the updated software version.In addition, both 20.3R1 and 20.4R1 utilize a specific license key format. Therefore, when upgrading from either of these versions, ensure you have the new license key to avoid any issues.
Refer to the following TSB:PTX10K and QFX5K running on 20.3R1 with flex license need to exchange a license key with new format when upgrading to 20.3R2 or later
There are three types of license key formats:
A new license key format is needed when upgrading to a version across 20.3R1 and later releases.
Upgrading from an LKG old license version to an LKG new license version also requires exchanging license key format.How to obtain a new license key format with the updated software version?
If you need a different license key format after upgrading your software to a later version of JUNOS for any of the products that allow Flex Licensing, you may need to trade in your non-Flex license key for a new version of Flex key.1. To do the upgrade, click the “Upgrade” button in Juniper Agile Licensing Portal.
2. Supply the needed information.
Note: This applies to both Perpetual and Subscription licenses. If you are unable to follow the instructions above or encounter an error message, you can contact Customer Care for help. The Customer Care Team can assist you in obtaining the updated license keys.
2025-12-01: Article checked for accuracy 2024-06-27: Updated the Description, and paraphrased the first and second paragraphs of the solution part. Also added self-service option (Upgrade).