Managing Junos OS Licenses
Displaying License Keys in J-Web
To display license keys installed on the device:
Downloading License Keys
To download license keys installed on the device:
- In the J-Web interface, under Administration>License Management>Installed Licenses, click Download Keys to download all the license keys installed on the device to a single file.
- Select Save it to disk and specify the file to which the license keys are to be written.
Generating a License Key
To generate a license key:
Saving License Keys
To save license keys installed on the device:
user@host>request system license save filename | url
For example, the following command saves the installed license
keys to a file named license.config
:
request system license save ftp://user@host/license.conf
See Also
Updating License Keys (CLI)
Use this task to update a subscription license or a trial license. You can do immediate update from command mode or set up automatic updates using the CLI.
You can set up a proxy server to allow indirect access to the license portal. To set up a proxy server for license updates, see Example: Configuring a Proxy Server for License Updates.
The products supported by the Juniper Agile Licensing (JAL) portal includes: QFX series, SRX Series, EX Series, NFX, vBNG, vMX, vSRX, and ACX. For other Juniper products (SPACE, JSA, SBR Carrier, Screen OS and so on) access the License Management System (LMS).
To do immediate update of a license key from command mode:
Update the license keys immediately from the license portal. You can only use this command to update subscription-based licenses (such as UTM).
user@host> request system license update
The request system license update command always uses the default license portal.
Update the trial license keys immediately from the license portal.
user@host>request system license update trial
To enable automatic license updates from the CLI:
Contact your account team or Juniper Networks Customer Care to extend the validity period of existing license keys and obtain the URL for a valid update server.
Once you have successfully extended your license key and received the update server URL, configure the auto-update parameter:
user@host> set system license autoupdate url https://ae1.juniper.net/
(Optional) Configure renew options. The following sample allows the device to contact the license server 30 days before the current license expires and sends an automatic update request every 6 hours.
user@host> set system license renew before-expiration 30
user@host> set system license renew interval 6
See Also
Example: Adding a New License Key
This example shows how to add a new license key.
Requirements
Before you begin, confirm that your Junos OS feature requires you to purchase, install, and manage a separate software license.
Overview
You can add a license key from a file or URL, from a terminal,
or from the J-Web user interface. Use the filename
option to activate a perpetual license directly on the device.
(Most feature licenses are perpetual.) Use the url
to send a subscription-based license key entitlement (such
as UTM) to the Juniper Networks licensing server for authorization.
If authorized, the server downloads the license to the device and
activates it.
In this example, the file name is bgp-reflection.
Configuration
Procedure
CLI Quick Configuration
To quickly configure this section of the example,
copy the following commands, paste them into a text file, remove any
line breaks, change any details necessary to match your network configuration,
copy and paste the commands into the CLI at the [edit]
hierarchy
level, and then enter commit
from configuration mode.
From operational mode, you can add a license key in either way:
From a file or URL:
user@hostname> request system license add bgp-reflection
From the terminal:
user@hostname> request system license add terminal
GUI Quick Configuration
Step-by-Step Procedure
To add a new license key:
In the J-Web user interface, under Administration>License Management>Installed Licenses, click Add to add a new license key.
Do one of the following, using a blank line to separate multiple license keys:
In the
License File URL
box, type the full URL to the destination file containing the license key to be added.In the
License Key Text
box, paste the license key text, in plain-text format, for the license to be added.
Click OK to add the license key.
If you added the SRX100 Memory Upgrade license, the device reboots immediately and comes back up as a high-memory device.
Click OK to check your configuration and save it as a candidate configuration.
If you are done configuring the device, click Commit Options>Commit.
Step-by-Step Procedure
To add a new license key:
From operational mode, add a license key in either way:
From a file or URL:
user@host> request system license add bgp-reflection
From the terminal:
user@host>request system license add terminal
When prompted, enter the license key, separating multiple license keys with a blank line. If the license key you enter is invalid, an error is generated when you press Ctrl-D to exit license entry mode.
If you added the SRX100 Memory Upgrade license, the device reboots immediately and comes back up as a high-memory device.
Results
From operational mode, confirm your configuration by
entering the show system license
command. If the output
does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
user@hostname> show system license
License usage: Licenses Licenses Licenses Expiry Feature name used installed needed bgp-reflection 0 1 0 permanent Licenses installed: License identifier: G0300000xxxx License version: 2 Valid for device: JN001875AB Features: bgp-reflection - Border Gateway Protocol route reflection permanent License identifier: G0300000xxxx License version: 2 Valid for device: JN001875AB
If you are done configuring the device, enter commit
from configuration mode.
Verification
Confirm that the configuration is working properly.
Verifying Installed Licenses
Purpose
Verify that the expected licenses have been installed and are active on the device.
Action
From operational mode, enter the show system license
command.
The output shows a list of the licenses used and a list of the licenses installed on the device and when they expire.
Verifying License Usage
Purpose
Verify that the licenses fully cover the feature configuration on the device.
Action
From operational mode, enter the show system license
usage
command.
user@hostname> show system license usage
Licenses Licenses Licenses Expiry Feature name used installed needed bgp-reflection 1 1 0 permanent
The output shows a list of the licenses installed on the device and how they are used.
Verifying Installed License Keys
Purpose
Verify that the license keys were installed on the device.
Action
From operational mode, enter the show system license
keys
command.
user@hostname> show system license keys
XXXXXXXXXX xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx
The output shows a list of the license keys installed on the device. Verify that each expected license key is present.
Example: Deleting a License Key
This example shows how to delete a license key.
Requirements
Before you delete a license key, confirm that it is no longer needed.
Overview
You can delete a license key from the CLI or J-Web user interface. In this example, the license ID is G0300000xxxx.
Configuration
Procedure
CLI Quick Configuration
To quickly configure this section of the example,
copy the following commands, paste them into a text file, remove any
line breaks, change any details necessary to match your network configuration,
copy and paste the commands into the CLI at the [edit]
hierarchy
level, and then enter commit
from configuration mode.
user@host> request system license delete G0300000xxxx
GUI Quick Configuration
Step-by-Step Procedure
To delete a license key:
In the J-Web user interface, under Administration>License Management>Installed Licenses.
Select the check box of the license or licenses you want to delete.
Click Delete.
If you deleted the SRX100 Memory Upgrade license, the device reboots immediately and comes back up as a low-memory device.
Click OK to check your configuration and save it as a candidate configuration.
If you are done configuring the device, click Commit Options>Commit.
Step-by-Step Procedure
To delete a license key:
From operational mode, for each license, enter the following command and specify the license ID. You can delete only one license at a time.
user@host> request system license delete G0300000xxxx
If you deleted the SRX100 Memory Upgrade license, the device reboots immediately and comes back up as a low-memory device.
Results
From configuration mode, confirm your deletion by entering
the show system license
command. The license key you deleted
will be removed. If the output does not display the intended configuration,
repeat the configuration instructions in this example to correct it.
If you are done configuring the device, enter commit
from configuration mode.