Monitor Junos Licenses
Learn how to monitor Junos licenses.
Add License
- Add License Through Configuration Mode
- Add License Through Operational Mode
- Add License Through RPC Command
Before adding a new license, complete the following tasks:
-
Purchase the required license.
-
Establish basic network connectivity with the router or switch. For instructions on establishing basic connectivity, see the Getting Started Guide or Quick Start Guide for your device.
-
Activate the license.
- Add License Through Configuration Mode
- Add License Through Operational Mode
- Add License Through RPC Command
You can add license to the Junos device in following ways:
-
Configuration Mode: Use the
set system license keys key license-key
configuration mode command to add license. -
Operational Mode: Use the
request system license add
operational mode command to add license. -
RPC command: Add license using RPC commands.
- Add License Through Configuration Mode
- Add License Through Operational Mode
- Add License Through RPC Command
Add License Through Configuration Mode
To add an individual license key using the Junos OS CLI:
To install an individual license key using the Junos OS CLI:
Issue the
set system license keys key name
statement.The
name
parameter includes the license ID and the license key. For example:[edit] user@device# set system license keys key "JUNOS_TEST_LIC_FEAT xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx"
To add multiple license keys in the Junos OS CLI, issue the
set system license keys key name
statement for each license key to install. For example:[edit] user@device# set system license keys key "key_1" set system license keys key "key_2" set system license keys key "key_2" set system license keys key "key_4"
You must commit the configuration using the
commit
command.You have successfully installed the license. You can verify the installed licenses using the
show system license
command from operational mode.
Add License Through Operational Mode
To add a new license key to the device using an operational command:
From the CLI operational mode, enter one of the following CLI commands:
To add a license key from a file or URL, enter the following command, specify the filename or the URL where the key is located:
user@host> request system license add filename | url
To add a license key from the terminal, enter the following command:
user@host> request system license add terminal
When prompted, enter the license key, separate the multiple license keys with a blank line.
If the license keys you enter is invalid, an error appears in the CLI output when you press Ctrl+d to exit license entry mode.
You have successfully installed the license. You can verify the installed licenses using the
show system license
command from operational mode.
Add License Through RPC Command
To add a new license key to the device using an RPC command:
Issue the RPC command to add license key from a file or URL.
<rpc><request-license-add><source>/var/tmp/sample.lic</source></request-license-add></rpc>
Issue the RPC command to add license key from a key content.
<rpc><request-license-add><key-data>JUNOS639151947 xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx</key-data></request-license-add></rpc>
You have successfully installed the license. You can verify the installed licenses using the
show system license
command from operational mode.
Autoupdate Your License
Learn how to autoupdate license on your Junos devices.
Before you autoupdate license, complete the following tasks:
-
Purchase the required license.
-
Establish basic network connectivity with the router or switch. For instructions on establishing basic connectivity, see the Getting Started Guide or Quick Start Guide for your device.
-
Activate the license.
To autoupdate licenses using a configuration command:
From the CLI configuration mode, enter the following CLI command:
set system license autoupdate url <URL>
You can autoupdate the license using the proxy server available in the private network to be able to connect to the EMS server and download the license updates. The devices in the private network connect to the proxy server to download the license or license updates.
set system proxy server IP address set system proxy port port number set system proxy username user name set system proxy password password
The license-check process reads the URL from the configuration and validates it.
For hardware products, the URL query uses the device chassis serial number to fetch the required license key. The physical products support first time license fetching and license renewal.
For virtual software products, you need to do the first-time installation. Subsequent fetching and renewal of the license key from the EMS portal can be done based on Software Serial Number (SSN).
You must commit the configuration using the
commit
command.
By default, the autoupdate
command sets renew before-expiration days as 60
days and renew time interval as 24 hours. The last devices are allowed to contact the EMS
server 60 days before the current license expiry and check for an automatic update every 24
hours.
Renew Your License
Learn how to renew the license on your Junos devices.
Before renewing licenses, complete the following tasks:
-
Purchase the required licenses.
-
Establish basic network connectivity with the router or switch. For instructions on establishing basic connectivity, see the Getting Started Guide or Quick Start Guide for your device.
To renew licenses using a configuration command:
From the CLI configuration mode, enter the following CLI command:
set system license renew before-expiration days
set system license renew interval hours
- You must commit the configuration using the
commit
command. -
You have successfully renewed the license.
Delete License
Learn how to delete the installed license on your Junos devices.
- Using the Operational Command to Delete Licenses
- Using a Configuration Command to Delete Licenses
- Delete License Through RPC Command
Before you delete a new license, ensure that the features enabled by the license will not be needed.
You can use the request system license delete
operational command, or the
delete
or deactivate
configuration command to delete a
license:
-
If you installed license through configuration mode, use the configurational mode command to delete the license.
-
If you installed license through operation mode, use the operational mode command to delete the license.
- Using the Operational Command to Delete Licenses
- Using a Configuration Command to Delete Licenses
- Delete License Through RPC Command
You can delete license from Junos device in following ways:
-
Configuration Mode: Use the
delete system license keys
configuration mode command to delete license. -
Operational Mode: Use the
request system license delete license-identifier-list identifier-list
operational mode command to delete license. -
RPC command: Delete license using RPC commands.
- Using the Operational Command to Delete Licenses
- Using a Configuration Command to Delete Licenses
- Delete License Through RPC Command
Using the Operational Command to Delete Licenses
You can delete the installed license through operational mode using the request
system license delete
command.
Display the licenses available to be deleted.
user@host> request system license delete license-identifier-list? Possible completions: E00468XXX4 License key identifier JUNOS10XXX1 License key identifier JUNOS10XXX2 License key identifier JUNOS10XXX3 License key identifier JUNOS10XXX4 License key identifier [ Open a set of values
To delete a license key or keys from a device using the CLI operational mode, select one of the following methods:
Delete a single license by specifying the license ID. Using this option, you can delete only one license at a time.
user@host> request system license delete license-identifier
Delete all license keys from the device.
user@host> request system license delete all
Delete multiple license keys from the device. Specify the license identifier for each key and enclose the list of identifiers in brackets.
user@host> request system license delete license-identifier-list [JUNOS10XXX1 JUNOS10XXX3 JUNOS10XXX4 ...]
Delete license(s) ? [yes,no] (no) yes
You have successfully deleted the license. Verify the license was deleted by entering the
show system license
command.
Using a Configuration Command to Delete Licenses
You can delete the installed license through configuration mode using the delete
system license keys
command.
Delete the license or licenses you want.
To delete a single license, for example:
[edit] user@host# delete system license keys key [License key]
To delete all licenses, for example:
[edit] user@host# delete system license keys
You must commit the configuration using the
commit
command.You have successfully deleted the license. Verify the license was deleted by entering the
show system license
command.
Delete License Through RPC Command
Issue the RPC command to delete all license keys.
<rpc><request-license-delete><all/></request-license-delete></rpc>
Issue the RPC command to delete specific license key.
<rpc><request-license-add><key-data>JUNOS639151947 xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx</key-data></request-license-add></rpc>
You have successfully deleted the license. You can verify the licenses using the
show system license
command from operational mode.
View License
Learn how to view the installed license on your Junos devices.
You can view the installed licenses on the device using the show system
license
command from operational mode.
Verify the expected licenses are installed and active on the device.
user@host> show system license License usage: Licensed Licensed Licensed Feature Feature Feature Feature name used installed needed Expiry l3static 1 1 0 2023-02-25 05:30:00 IST ADV Bandwidth (in gbps) 150 100 50 2023-02-25 05:30:00 IST Licenses installed: License identifier: JUNOS100365120 License version: 4 Order Type: commercial Features: l3static - L3 Static feature date-based, 2022-02-25 05:30:00 IST - 2023-02-25 05:30:00 IST ADV Bandwidth (in gbps) - ADVANCE Bandwidth (in gbps) Capacity: 100 date-based, 2022-02-25 05:30:00 IST - 2023-02-25 05:30:00 IST
The output shows a list of the Feature name, Licensed Feature used, Licenses Feature installed, Licensed Feature needed, and Expiry fields.
license
Syntax
license { autoupdate { url name { password password; } } keys { key name; } log-frequency(time-interval seconds | time-of-day time-of-day); renewbefore-expiration before-expirationinterval interval; traceoptions { file< filename><files files><match match><size size><(world-readable | no-world-readable)>; flag name; no-remote-trace; } }
Hierarchy Level
[edit system]
Description
License configuration for this router
Options
autoupdate |
You can autoupdate the license using the proxy server available in the private network to be able to connect to the EMS server and download the license updates. The devices in the private network connect to the proxy server to download the license or license updates. By default, the |
keys |
You can install the license using license key. |
log-frequency | You can configure frequency of alarms and non-compliance license log messages. By default, the alarms raised and logs are generated at 06:00 AM. |
renewbefore-expiration | You can renew the license before the license expires. |
traceoptions |
You can set the trace options for licenses. |
The remaining statements are explained separately. See CLI Explorer.
Required Privilege Level
trace—To view this statement in the configuration.
trace-control—To add this statement to the configuration.
maintenance.
Release Information
Statement introduced in Junos OS Release 8.5.
show system license
Syntax
show system license ? Possible completions: <[Enter]> Execute this command bandwidth Show license bandwidth summary brief Display brief output (default) detail Display detailed output feature-list Show all applicable licensed features fpc Show license fpc information installed Show installed feature licenses key-content Display license key contents keys Show license keys usage Show licensed features | Pipe through a command
Description
Display detailed output of the license.
Required Privilege Level
View
Output Fields
Table 1 lists the output fields for the show system license
command.
Field Name |
Field Description |
---|---|
Advance Bandwidth Usage |
Displays bandwidth usage of the advanced features |
Expiry |
Indicates the license expiry date |
Feature ID |
Displays the feature ID |
Feature Name |
Displays the feature name |
Features |
Lists the installed license feature with details |
Flex capable linecards |
Displays bandwidth usage of flex capable line cards |
Flex only linecards |
Displays bandwidth usage of the flex only line cards |
License identifier |
Indicates the license ID |
License key |
Displays the license key information |
License version |
Indicates the version of the license |
Licensed Feature available |
Indicates the available licenses for the feature |
Licensed Feature installed |
Indicates the installed feature license |
Licensed Feature needed |
Indicates the additional license required for the feature |
Licensed Feature used |
Indicates the used licensed feature |
Linecard Type |
Displays the line cards on the device |
Premium Bandwidth Usage |
Displays bandwidth usage of the premium features |
Invalid |
No feature license is installed, and no default license is included For MX Series devices: No license is installed including no bandwidth license installed |
Permanent |
Permanent or perpetual license is installed |
Date (2023-02-25 05:30:00) |
Timed or subscription license is installed |
Expired |
Timed license has expired |
Sample Output
- show system license bandwidth flex-only
- show system license bandwidth
- show system license bandwidth fpc 0
- show system license bandwidth fpc port-details 0
- show system license brief
- show system license detail
- show system license feature-list
- show system license fpc
- show system license installed
- show system license key-content
- show system license keys
- show system license usage
- show system license (License not installed and no default license)
- show system license (License not installed and there is a default license)
- show system license (Installed a perpetual license )
- show system license (Installed a subscription-based license)
- show system license (License expired)
- show system license (License not installed and no bandwidth license)
- show system license (Installed subscription-based advanced tier license installed with Layer 3 static feature)
- show system license (License from point 2 has expired)
show system license bandwidth flex-only
user@host> show system license bandwidth flex-only
Licensed Licensed Licensed Feature Feature Feature Linecard Type used installed needed LC4800 Bandwidth (in gbps) 500 800 0 Other Flex-only Bandwidth (in gbps) 200 1000 0
show system license bandwidth
user@host> show system license bandwidth
Advance Bandwidth Usage: 20 Premium Bandwidth Usage: 0
show system license bandwidth fpc 0
user@host> show system license bandwidth fpc 0
Advance Bandwidth Usage: 20 Premium Bandwidth Usage: 0
show system license bandwidth fpc port-details 0
user@host> show system license bandwidth fpc port-details 0
Bandwidth License Port name used(in gbps) tier xe-0/0/1:0 10 advance xe-0/0/1:1 10 advance
show system license brief
user@host> show system license brief
License usage: Licensed Licensed Licensed Feature Feature Feature Feature name used installed needed Expiry Filter Based Forwarding 0 1 0 2025-11-17 05:30:00 IST FIB Scale 0 65000 0 2025-11-17 05:30:00 IST RIB Scale 24 65000 0 2025-11-17 05:30:00 IST LSP Scale 0 1000 0 2025-11-17 05:30:00 IST GRE Tunnel 1 0 1 invalid Firewall Filters Scale 0 1000 0 permanent Firewall Filters Terms Scale 0 4000 0 permanent Licenses installed: License identifier: JUNOS719106327 License version: 4 Order Type: commercial Features: FIB Scale - Forwarding Information Base Scale Capacity: 1000 date-based, 2022-11-17 05:30:00 IST - 2025-11-17 05:30:00 IST RIB Scale - Routing Information Base Scale Capacity: 1000 date-based, 2022-11-17 05:30:00 IST - 2025-11-17 05:30:00 IST LSP Scale - Label Switched Path Scale Capacity: 1000 date-based, 2022-11-17 05:30:00 IST - 2025-11-17 05:30:00 IST Filter Based Forwarding - Filter Based Forwarding date-based, 2022-11-17 05:30:00 IST - 2025-11-17 05:30:00 IST
show system license detail
user@host> show system license detail
show system license detail Licensed Licensed Licensed Licensed Feature Feature Feature Feature Feature name used installed needed available Expiry Filter Based Forwarding 0 1 0 1 2025-11-17 05:30:00 IST FIB Scale 0 65000 0 65000 2025-11-17 05:30:00 IST RIB Scale 24 65000 0 64976 2025-11-17 05:30:00 IST LSP Scale 0 1000 0 1000 2025-11-17 05:30:00 IST GRE Tunnel 1 0 1 0 invalid Firewall Filters Scale 0 1000 0 1000 permanent Firewall Filters Terms Scale 0 4000 0 4000 permanent Licenses installed: License identifier: JUNOS719106327 License version: 4 Order Type: commercial Features: FIB Scale - Forwarding Information Base Scale Capacity: 1000 date-based, 2022-11-17 05:30:00 IST - 2025-11-17 05:30:00 IST RIB Scale - Routing Information Base Scale Capacity: 1000 date-based, 2022-11-17 05:30:00 IST - 2025-11-17 05:30:00 IST LSP Scale - Label Switched Path Scale Capacity: 1000 date-based, 2022-11-17 05:30:00 IST - 2025-11-17 05:30:00 IST Filter Based Forwarding - Filter Based Forwarding date-based, 2022-11-17 05:30:00 IST - 2025-11-17 05:30:00 IST Licensing Mode: Agile Licensing Standalone Licensing Persona: JUNOS LKG
show system license feature-list
The show system license feature-list
command displays all the feature
names and feature IDs supported for your product and Junos release.
user@host> show system license feature-list
33 subscriber-vlan 34 subscriber-ip 40 subscriber-res-dpc 41 subscriber-res-ic 42 video-service-dhcp-relay 43 video-service-mcac 64 feeva-media-enabler 105 radware-adc 118 virtual-chassis
show system license fpc
user@host> show system license fpc
Flex only linecards: FPC Serial Number 0 BUILTIN Advance Bandwidth Usage: 20 Premium Bandwidth Usage: 0 Flex capable linecards: FPC bandwidth usage: none
show system license installed
user@host> show system license installed
License identifier: JUNOS719106327 License version: 4 Order Type: commercial Features: FIB Scale - Forwarding Information Base Scale Capacity: 1000 date-based, 2022-11-17 05:30:00 IST - 2025-11-17 05:30:00 IST RIB Scale - Routing Information Base Scale Capacity: 1000 date-based, 2022-11-17 05:30:00 IST - 2025-11-17 05:30:00 IST LSP Scale - Label Switched Path Scale Capacity: 1000 date-based, 2022-11-17 05:30:00 IST - 2025-11-17 05:30:00 IST Filter Based Forwarding - Filter Based Forwarding date-based, 2022-11-17 05:30:00 IST - 2025-11-17 05:30:00 IST
show system license key-content
user@host> show system license key-content /var/tmp/license.txt
License Key Content: License version: 4 Order Type: commercial Features: LSP Scale - Label Switched Path Scale Capacity: 1000 date-based, 2022-11-17 05:30:00 IST - 2025-11-17 05:30:00 IST RIB Scale - Routing Information Base Scale Capacity: 1000 date-based, 2022-11-17 05:30:00 IST - 2025-11-17 05:30:00 IST FIB Scale - Forwarding Information Base Scale Capacity: 1000 date-based, 2022-11-17 05:30:00 IST - 2025-11-17 05:30:00 IST Filter Based Forwarding - Filter Based Forwarding date-based, 2022-11-17 05:30:00 IST - 2025-11-17 05:30:00 IST
show system license keys
user@host> show system license keys
JUNOS719106327 aeaqie blakaq xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx
show system license usage
user@host> show system license usage
License usage: Licensed Licensed Licensed Feature Feature Feature Feature name used installed needed Expiry Filter Based Forwarding 0 1 0 2025-11-17 05:30:00 IST FIB Scale 0 65000 0 2025-11-17 05:30:00 IST RIB Scale 24 65000 0 2025-11-17 05:30:00 IST LSP Scale 0 1000 0 2025-11-17 05:30:00 IST GRE Tunnel 1 0 1 invalid Firewall Filters Scale 0 1000 0 permanent Firewall Filters Terms Scale 0 4000 0 permanent
show system license (License not installed and no default license)
user@host> show system license
License usage: Licensed Licensed Licensed Feature Feature Feature Feature name used installed needed Expiry l3static 1 0 1 invalid Licenses installed: none
show system license (License not installed and there is a default license)
user@host> show system license
License usage: Licensed Licensed Licensed Feature Feature Feature Feature name used installed needed Expiry scale-subscriber 0 10 0 permanent Licenses installed: none
show system license (Installed a perpetual license )
user@host> show system license
License usage: Licensed Licensed Licensed Feature Feature Feature Feature name used installed needed Expiry l3static 1 1 0 permanent evpn-vxlan 0 1 0 permanent Licenses installed: License identifier: JUNOS100365120 License version: 4 Order Type: commercial Features: l3static - L3 Static feature permanent License identifier: JUNOS081157102 License version: 4 Order Type: commercial Features: evpn-vxlan - EVPN feature with VXLAN encapsulation permanent
show system license (Installed a subscription-based license)
user@host> show system license
License usage: Licensed Licensed Licensed Feature Feature Feature Feature name used installed needed Expiry l3static 1 1 0 2023-02-25 05:30:00 IST ADV Bandwidth (in gbps) 150 100 50 2023-02-25 05:30:00 IST Licenses installed: License identifier: JUNOS100365120 License version: 4 Order Type: commercial Features: l3static - L3 Static feature date-based, 2022-02-25 05:30:00 IST - 2023-02-25 05:30:00 IST ADV Bandwidth (in gbps) - ADVANCE Bandwidth (in gbps) Capacity: 100 date-based, 2022-02-25 05:30:00 IST - 2023-02-25 05:30:00 IST
show system license (License expired)
user@host> show system license
License usage: Licensed Licensed Licensed Feature Feature Feature Feature name used installed needed Expiry l3static 1 1 1 expired ADV Bandwidth (in gbps) 150 100 150 expired Licenses installed: License identifier: JUNOS100365120 License version: 4 Order Type: commercial Features: l3static - L3 Static feature date-based, 2022-02-25 05:30:00 IST - 2023-02-25 05:30:00 IST ADV Bandwidth (in gbps) - ADVANCE Bandwidth (in gbps) Capacity: 100 date-based, 2022-02-25 05:30:00 IST - 2023-02-25 05:30:00 IST
show system license (License not installed and no bandwidth license)
user@host> show system license
License usage: Licensed Licensed Licensed Feature Feature Feature Feature name used installed needed Expiry l3static 1 0 1 license not installed Licenses installed: none
show system license (Installed subscription-based advanced tier license installed with Layer 3 static feature)
user@host> show system license
License usage: Licensed Licensed Licensed Feature Feature Feature Feature name used installed needed Expiry l3static 1 1 0 expired ADV Bandwidth (in gbps) 0 100 0 expired Licenses installed: License identifier: JUNOS100365120 License version: 4 Order Type: commercial Features: l3static - L3 Static feature date-based, 2022-02-25 05:30:00 IST - 2023-02-25 05:30:00 IST ADV Bandwidth (in gbps) - ADVANCE Bandwidth (in gbps) Capacity: 100 date-based, 2022-02-25 05:30:00 IST - 2023-02-25 05:30:00 IST
show system license (License from point 2 has expired)
The non-commercial license such as emergency, lab, and test licenses are automatically removed from the device on license expiry.
user@host> show system license
License usage: Licensed Licensed Licensed Feature Feature Feature Feature name used installed needed Expiry l3static 1 1 0 2023-02-25 05:30:00 IST ADV Bandwidth (in gbps) 100 100 0 2023-02-25 05:30:00 IST Licenses installed: License identifier: JUNOS100365120 License version: 4 Order Type: commercial Features: l3static - L3 Static feature date-based, 2022-02-25 05:30:00 IST - 2023-02-25 05:30:00 IST ADV Bandwidth (in gbps) - ADVANCE Bandwidth (in gbps) Capacity: 100 date-based, 2022-02-25 05:30:00 IST - 2023-02-25 05:30:00 IST
Release Information
Command introduced before Junos OS Release 7.4.
The options feature-list
and bandwidth
are introduced in
Junos OS Release 24.2R1.
System Log for License
After you add or delete a license, the system might take up to one minute to synchronize license between master and backup. You must allow one minute interval before performing any actions such as switchover or reboot.
Junos OS generates alarms for capacity (scale) features such as bandwidth to indicate the license requirement if the feature usage on a device exceeds the added license. The alarm detail shows the current feature usage information.
You can see the list of alarms at System Log Explorer.
For example, see the below scenarios where alarms are generated for license requirement:
-
Scenario 1
If a device is configured with a 100G bandwidth license and current usage is 200G bandwidth, the Junos OS generates an alarm as the bandwidth usage exceeded the added license.
The alarm specifies that the current usage of 200G bandwidth requires a license.
-
Scenario 2
If a device is configured with a 128K RIB license and uses 130K RIB, the Junos OS generates an alarm as the RIB feature scale exceeded the added licenses.
The alarm specifies 130K RIB requires a license.