Skip to main content

Activate license keys on multiple LGS instances

Activate one license key on up to 10 offline LGS machines, one machine at a time or on several LGS instances at once with the batch commands. The examples on this page use ptl. The command name depends on your installation, as listed in Activate license keys offline.

Activate one license key on multiple machines​

Multi-machine activation requires LGS version 1.3.1030 or later.

Check LGS version

To check the version of your LGS installation, run the following command:

ptl --version

A single license key supports activation on up to 10 separate offline LGS machines. Each machine requires its own LGS installation, configuration, and a separate activation. Deactivating on one machine doesn’t affect the other machines using the same license key.

To activate the same license key on multiple machines:

  1. Install and configure the LGS on each offline machine as described in Set up full offline mode.
  2. Activate the license key on each machine individually by following the steps in Activate a license key.
  3. Reactivate the license key on each machine before the 365-day activation period expires, as described in Reactivate a license key.

To activate the same license key on more than 10 machines, contact Pdftools through the Contact form.

Manage stored endpoints​

When managing multiple LGS instances, save frequently used endpoint URLs so you don’t have to specify them on every batch command invocation.

CommandDescription
ptl endpoints-add <url>Save an LGS endpoint URL (must be a valid HTTP or HTTPS URL).
ptl endpoints-remove <url>Remove a stored endpoint.
ptl endpoints-listList all stored endpoints.

Stored endpoints are saved in the "Endpoints" array in appsettings.json. You can also edit this field manually.

When batch commands (activate-all, deactivate-all, batch-export-activation, batch-export-deactivation) are called without endpoint URL arguments, they automatically use the stored endpoints. Endpoint URLs provided on the command line always take priority over stored ones.

Batch activation across multiple LGS instances​

To activate the same license key across multiple LGS instances, such as several Docker containers, Linux servers, or Windows machines, use the batch commands. The machine running ptl must be able to reach all listed LGS endpoints over the network. Whether the machine running ptl also needs internet access depends on the method: the Pdftools Portal method doesn’t need it, and the CLI method does.

Stored endpoints

Save your LGS endpoint URLs with ptl endpoints-add to avoid specifying them on every batch command. For details, refer to Manage stored endpoints.

Batch activate a license key​

To activate a license key across multiple LGS instances:

  1. Generate a batch activation token from all LGS endpoints:

    ptl batch-export-activation "LICENSE_KEY_VALUE" ENDPOINT_1 ENDPOINT_2
    • Replace LICENSE_KEY_VALUE with your license key.
    • Replace ENDPOINT_1 ENDPOINT_2 with the addresses of your LGS instances (for example, http://localhost:9991 http://localhost:9992). Omit the endpoint arguments to use stored endpoints.
  2. Copy the generated batch activation token.

  3. Exchange the batch activation token for a license activation token:

    1. If the machine running ptl doesn’t have internet access, transfer the token to a machine that does.
    2. Log in to the Pdftools Portal.
    3. Go to the Licenses tab.
    4. Paste the batch activation token into the field marked as Insert your token here….
      Pdftools Portal Offline Activation / Deactivation page with the 'insert your token here...' field.
    5. Click Activate, and then click Continue.
    6. Copy the generated license activation token. If necessary, transfer it back to the machine running ptl.
  4. Import the activation across all LGS instances:

    ptl batch-import-activation "LICENSE_ACTIVATION_TOKEN"
    • Replace LICENSE_ACTIVATION_TOKEN with the token from the previous step.

The license key is activated across all specified LGS instances.

Shortcut: activate-all​

If the machine running ptl has internet access, use the activate-all command as a shortcut that combines the export, activate, and import steps:

ptl activate-all "LICENSE_KEY_VALUE" ENDPOINT_1 ENDPOINT_2
  • Replace LICENSE_KEY_VALUE with your license key.
  • Replace ENDPOINT_1 ENDPOINT_2 with the addresses of your LGS instances. Omit the endpoint arguments to use stored endpoints.

Batch deactivate a license key​

To deactivate a license key across multiple LGS instances:

  1. Generate a batch deactivation token from all LGS endpoints:

    ptl batch-export-deactivation "LICENSE_KEY_VALUE" ENDPOINT_1 ENDPOINT_2
    • Replace LICENSE_KEY_VALUE with your license key.
    • Replace ENDPOINT_1 ENDPOINT_2 with the addresses of your LGS instances. Omit the endpoint arguments to use stored endpoints.
  2. Copy the generated batch deactivation token.

  3. Exchange the batch deactivation token for a license deactivation token:

    1. If the machine running ptl doesn’t have internet access, transfer the token to a machine that does.
    2. Log in to the Pdftools Portal.
    3. Go to the Licenses tab.
    4. Click Deactivate.
    5. Paste the batch deactivation token into the field marked as Insert your token here….
      Pdftools Portal Offline Activation / Deactivation page, deactivation tab, with the 'insert your token here...' field.
    6. Click Deactivate, and then click Continue.
    7. Copy the generated license deactivation token. If necessary, transfer it back to the machine running ptl.
  4. Import the deactivation across all LGS instances:

    ptl batch-import-deactivation "LICENSE_DEACTIVATION_TOKEN"
    • Replace LICENSE_DEACTIVATION_TOKEN with the token from the previous step.

The license key is deactivated across all specified LGS instances.

Shortcut: deactivate-all​

If the machine running ptl has internet access, use the deactivate-all command as a shortcut that combines the export, deactivate, and import steps:

ptl deactivate-all "LICENSE_KEY_VALUE" ENDPOINT_1 ENDPOINT_2
  • Replace LICENSE_KEY_VALUE with your license key.
  • Replace ENDPOINT_1 ENDPOINT_2 with the addresses of your LGS instances. Omit the endpoint arguments to use stored endpoints.