[an error occurred while processing this directive] [an error occurred while processing this directive]

Managing Licenses for the EX-series Switch (CLI Procedure)

To enable some JUNOS software features on an EX-series switch, you must purchase, install, and manage separate software licenses. Each switch requires one license per licensed feature. The licenses are on an honor system, meaning that after you have configured the features, you have a 30-day grace period to install the license. You will see a warning message if the switch does not have a license for the feature after those 30 days.

Before you begin managing licenses, be sure that you have:

  • Obtained the needed licenses. For information about how to purchase software licenses, contact your Juniper Networks sales representative.

This topic includes the following tasks:

Adding New Licenses

To add a new license key on the switch with CLI:

  1. Enter one of the following operational mode CLI commands:
    • To add a license key from a file or URL, enter the following command, specifying the filename of the file or the URL where the key is located:
      user@switch> request system license add filename | url
    • To add a license key from the terminal, enter the following command:
      user@switch> request system license add terminal
  2. When prompted, enter the license key, separating multiple license keys with a blank line.

    If the license key you enter is invalid, an error appears in the CLI output when you press Ctrl+d to exit license entry mode.

Deleting Licenses

To delete one or more license keys from the switch with the CLI, enter the following operational mode CLI command for each license, specifying the license ID.


user@switch> request system license delete license-id

You can delete only one license at a time.

    Saving License Keys

    To save the installed license keys to a file (which can be a URL) or to the terminal, enter the following operational mode CLI command:


    user@switch> request system license save filename | url

    For example, the following command saves the installed license keys to a file named license.conf:


    user@switch> request system license save ftp://user@switch/license.conf
      [an error occurred while processing this directive]