Description

How to remove a license key from an SRX  devices once it is installed.

Solution

To delete a specific license key, you need to specify the license identifier, not the serial number.

Review as follows:

root@PayDay# run show system license <-- This will give you the information regarding licenses
License usage:
Licenses Licenses Licenses
Expiry
Feature name used installed needed
j-flow 0 1 0
permanent
bgp-reflection 0 1 0
permanent

Licenses installed:

License identifier: JUNOS201481 <-- This is the license identifier
License version: 2
Valid for device: JN10E8E75ADD
Features:
bgp-reflection - Border Gateway Protocol route reflection
permanent
j-flow - J-FLOW traffic analysis (CFLOW reporting)
permanent


root@PayDay> request system license delete JUNOS201481 <-- This will remove the license

IMPORTANT NOTE: If autorecovery state has the deleted license information saved, it will be recover later during reboot.

show system autorecovery state
:
Licenses:
File                                    Recovery Information              Integrity Check              Action / Status
JUNOS201481.lic          Saved                                         Passed                           None
:

The following messages are logged in messages file

Sep 8 11:58:35 PayDay /kernel: JUNOS201481.lic: Failed
Sep 8 11:58:35 PayDay /kernel: JUNOS201481.lic: Performing recovery
Sep 8 11:58:35 PayDay /kernel: JUNOS201481.lic: Recovered

To avoid this issue, it is a good practice to issue the following CLI in sequence as described below.

show system license
show system autorecovery state
request system autorecovery state clear
request system license delete JUNOS201481
show system autorecovery state
request system autorecovery state save
show system autorecovery state
show system license

Modification History

2020-09-25: Article reviewed for accuracy. Minor non-technical changes made.

Related Information