Add a license without copying the file - ASR9K

From DocWiki

Jump to: navigation, search


Sometimes it may be desirable to copy a license to a router without using TFTP or FTP. This procedure shows to use the nano editor to create a file on the ASR-9000 that can then be added to the license database.


A license for the ASR9K is XML, like the below.

<?xml version="1.0" encoding="UTF-8"?><CISCO_WT_ARTIFACTS version="1.0"><CISCO_WT_LICENSE version="1.0">


  • Locate the zip from Licensing, unzip it
  • Open the file inside with a text editor

On the router, follow this procedure:

RP/0/RSP0/CPU0:ASR9001-E# cd harddisk:
RP/0/RSP0/CPU0:ASR9001-E# run
# nano license.lic

This opens the nano editor

Nano license.jpg

  • Paste in the xml text from inside the license file into nano
  • Press CTRL+X to Exit

A9K LIC 1.jpg

  • Press SHIFT+Y to save the file.

A9K LIC 2.jpg

  • Press Enter to quit the editor

A9K LIC 3.jpg

Exit the K shell

# exit
  • See if the license was saved.
RP/0/RSP0/CPU0:ASR9000# dir | i lic
964860      -rw-  9           Mon Mar  7 20:18:21 2016  license.lic
  • Add it
RP/0/RSP0/CPU0:ASR9000# admin license add harddisk:/license.lic

Info: License add successful for feature(s): "A9K-ADV-OPTIC-LIC"

Rating: 0.0/5 (0 votes cast)

Personal tools