Deleting License key from CLI fails if the file name is longer than 64 characters
2359
Created On 12/29/23 00:36 AM - Last Modified 02/02/24 06:12 AM
Symptom
Sometimes firewall or Panorama administrators needs to delete license files, for example when the trial license expires.
If the file name of the license key installed on the firewall is longer than 64 characters, CLI returns an error message as shown below and the file cannot be deleted from the device.
admin@PA-FW> delete license key Advanced_WildFire_Licensed_Access_to_Advanced_WildFire_signatur_2023_10_01_I1234567.key
Advanced_WildFire_Licensed_Access_to_Advanced_WildFire_signatur_2023_10_01_I1234567.key should be less than or equal to 64 characters
Invalid syntax.
admin@PA-FW>
Environment
Next Generation Firewall
Panorama
Cause
CLI is expecting the file name is less than or equal to 64 characters.
Resolution
The file can be deleted by shortening the file name and adding wildcard "*" character.
admin@PA-FW> delete license key Advanced_WildFire_Licensed_Access_to_Advanced_WildFire* successfully removed Advanced_WildFire_Licensed_Access_to_Advanced_WildFire*