Installing a License on the VE License Server

Contents

Important Information to Protect the License Validity

Certain actions can invalidate your license. Therefore, once you have installed your license, please note the following points:

If supported by the cloud provider, the VE license server instance can be moved to a different subnet, as long as the original instance can be moved. It is also possible to backup and restore (to the same instance) the license server data.

However, the following actions will invalidate the license:

  • Changing the number of CPU cores of the license server system.
  • Copying the license server data to a different instance
  • Seriously damaging the root filesystem of the license server system
  • Re-installing the license server system

Requesting and Installing a License

Perform the following basic steps to request and install a license:

  • Collect the fingerprintĀ (the customer-to-vendor, or C2V, file) on the license server and (if applicable) the backup license server.
  • Send the fingerprint data to Stromasys stating license requirements based on your contract with Stromasys (product version, number of concurrent instances, is this the main or the backup license, etc.). Stromasys will send you the license data.
  • Install the license dataĀ (the vendor-to-customer, or V2C, file) on the license server and (if applicable) on the backup license server.
  • Verify the license installation.

These basic steps are described in more detail below.


Collecting the Fingerprint Data on the License Server

The fingerprint is collected on the license server using the c2v utility.

Perform the following steps to collect the fingerprint on the license server and (if applicable) the backup license server:

  1. Use ssh to log in on the license server instance.
    # ssh -i ~/.ssh/<mykey> <user>@<license-server-ip>
    where
    1. <mykey> is the private key of the key-pair you associated with your cloud instance
    2. <user> is the user for interactive login associated with your license server instance (e.g., opc on OCI, or centos for a CentOS instance on AWS; for an instance installed from a prepackaged Charon-SSP VE image, use sshuser)
    3. <license-server-ip> is the ip address of your cloud instance
  2. Become the privileged user and run the c2v program.
    1. Become the root user: # sudo -i
    2. Run the c2v program: # /opt/license-server/c2v --filename <my-file>.c2v --platform <my-platform>
      where
      1. <my-file>.c2v is the path and name under which you want to store the fingerprint; the file type is C2V (customer-to-vendor)
      2. <my-platform> indicates the platform on which the license server runs (possible values: aws, oci, gcp, or azure; the value ibm shown in the help output is reserved for future use)
  3. Copy the resulting C2V file to your local system (unless you can send email from the license server system).

Sending the C2V File to Stromasys and Receive License Data File

Stromasys or your Stromasys VAR will provide you with an email address to which you should send the C2V file you created in the previous step.

In response, you will receive a so-called V2C (vendor-to-customer) file which contains the license data. The content of the license (type of emulated SPARC, expiration date, number of concurrent instances, etc.) depends on your contract with Stromasys. You may also receive a text file containing the license content in human readable form.

Installing the License Data on the License Server

The license data is installed on the license server using the v2c utility.

Perform the following steps to install the license on the license server:

  1. Copy the V2C file to the license server (e.g., with SFTP).
  2. Use ssh to log in on the license server instance.
    # ssh -i ~/.ssh/<mykey> <user>@<license-server-ip>
    where
    1. <mykey> is the private key of the key-pair you associated with your license server instance
    2. <user> is the user for interactive login associated with your cloud instance (e.g., opc on OCI, or centos for a CentOS instance on AWS; for an instance installed from a prepackaged Charon-SSP VE image, use sshuser)
    3. <license-server-ip> is the ip address of your cloud instance
  3. Become the privileged user and run the v2c program.
    1. Become the root user: # sudo -i
    2. Run the v2c program: # /opt/license-server/v2c -f <my-file>.v2c
      where <my-file>.v2c is the path and name under which you want to store the fingerprint. The file type is V2C (vendor-to-customer).

After the installation of the V2C file, the license server will be restarted.

Please note:

  • Starting with version 1.0.35, a previously installed license will be cleanly removed once a new license is installed with the v2c command.
  • In versions before 1.0.17, the license server will not start until a valid license has been installed.

The following example shows the installation of a V2C file:

$ sudo /opt/license-server/v2c -f mylicense.v2c 
<<V2C>> Going to import "mylicense.v2c" ...
<<V2C>> Imported "mylicense.v2c" successfully.
<<V2C>> Restarting license server ...
<<V2C>> Done

Verifying the License Installation

Using the license_viewer Program

The license server provides a license_viewer program to view the content of the license. To run it, use the following command (as the privileged user):

# /opt/license-server/license_viewer

The following sample shows the output of an active license:

# /opt/license-server/license_viewer 
<<License Viewer>> Current license:
KEYSEC
K_FINGER=58ca76281dd3d99b49252b2c877c88329691c328240156615db293f545055359
K_LICENSE_ID=01.00000001.002.044
K_TYPE=NORMAL
K_CUSTOMER=Stromasys/Testing
K_PLATFORM=amazon.aws
K_R_DATE=1593308781
K_INTERVAL=60
KEYEND
PRODSEC
P_NAME=Charon-SSP/4U,Charon-SSP/4U+,Charon-SSP/4V,Charon-SSP/4V+
P_CODE=test
P_RLSD=31-DEC-2020 23:55:00
P_MAJV=4
P_MINV=2
P_CPU_NUM=4
P_MAX_MEM=4096MB
P_INSTANCE=4
PRODEND
PRODSEC
P_NAME=Charon-SSP/4M
P_CODE=test
P_RLSD=31-DEC-2020 23:55:00
P_MAJV=4
P_MINV=2
P_CPU_NUM=4
P_MAX_MEM=512MB
P_INSTANCE=4
PRODEN

Important product-specific license parameters:

  • P_RLSD is the expiration date.

  • P_MAJV and P_MINV are the major and minor product versions.

  • P_CPU_NUM defines the maximum number of CPUs in an emulated SPARC system.

  • P_MAX_MEM defines the maximum amount of RAM in an emulated SPARC system.

  • P_INSTANCE defines the maximum number of concurrently running emulated SPARC systems.

Important key-specific license parameters:

  • K_PLATFORM: the platform for which the license has been created.
  • K_LICENSE_ID: in older versions, the license ID changed if the license server software was reinstalled; in newer versions, it will remain unchanged as long as the license server host instance is not re-installed.
  • K_TYPE: possible values are NORMAL (time-limited or perpetual license) or COUNTDOWN (limited to a certain number of emulator runtime hours).
  • K_EXPIRED: configured number of emulator runtime hours. The remaining hours can be seen in the web interface of the license server and the emulator log file.
  • K_INTERVAL: configured license check interval.

Using the Web Interface

The license server provides a web interface to display important license characteristics and a list of currently connected client systems and emulator instances.

Prerequisite: access to TCP port 8084 of the license server must be possible.

The following image shows sample output of a backup license with 179 hours and 57 minutes of runtime remaining:


The following image shows sample output of a regular license with an expiration date and one client attached:

The first section of the samples shows the characteristics of the license. The second section shows the client running a Charon-SSP instance that is connected to the license server. In this example, client and license server are installed on the same system and the client uses product section 1 (4M) of the three product sections on theĀ  license.



© Stromasys, 1999-2024  - All the information is provided on the best effort basis, and might be changed anytime without notice. Information provided does not mean Stromasys commitment to any features described.