Managing Junos OS Services Licenses with the CLI

To manage Junos OS licenses with the CLI, perform the following tasks:

Adding New Licenses with the CLI

To add a new license key to the device with the CLI:

  1. Enter operational mode in the CLI.
  2. Enter one of the following CLI commands:
    • To add a license key from a file or URL, enter the following command, specifying the filename or the URL where the key is located:
      request system license add filename | url

      Use the filename option to activate a perpetual license directly on the device. (Most feature licenses are perpetual.)

      Use the url option to send a subscription-based license key entitlement (such as UTM) to the Juniper Networks licensing server for authorization. If authorized, the server downloads the license to the device and activates it.

    • To add a license key from the terminal, enter the following command:
      request system license add terminal
  3. When prompted, enter the license key, separating multiple license keys with a blank line.

    If the license key you enter is invalid, an error is generated when you press Ctrl-D to exit license entry mode.

    If you added the SRX100 Memory Upgrade license, the device reboots immediately and comes back up as a high-memory device.

  4. Go on to Verifying Junos OS Services License Management.

Deleting a License with the CLI

To delete a license key from the device with the CLI:

  1. Enter operational mode in the CLI.
  2. Enter the following command for each license, specifying the license ID. You can delete only one license at a time.
    request system license delete license-id

    If you deleted the SRX100 Memory Upgrade license, the device reboots immediately and comes back up as a low-memory device.

  3. Go on to Verifying Junos OS Services License Management.

Updating New Licenses with the CLI

To update a license key from the device with the CLI:

  1. Enter operational mode in the CLI.
  2. Enter one of the following CLI commands:
    • To automatically update the license keys, enter the following command:
      request system license update

      Note: The request system license update command will always use the default Juniper license server https://ae1.juniper.net

      You can only use this command to update subscription-based licenses (such as UTM).

    • To automatically update the trial license keys, enter the following command:
      request system license update trial
  3. Go on to Verifying Junos OS Services License Management.

Saving License Keys with the CLI

To save the licenses installed on the device to a file with the CLI:

  1. Enter operational mode in the CLI.
  2. To save the installed license keys to a file or URL, enter the following command:
    request system license save filename | url

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

    request system license save ftp://user@host/license.conf
  3. Go on to Verifying Junos OS Services License Management.