Connectware Licensing

Your Cybus Connectware installation is running according to the enabled features and expiration duration as set in the License.

How to perform an online activation

Upon each start-up of the Connectware, the license activation is done automatically, if the Connectware has connectivity to the Internet as shown in the Internet connectivity section. In particular, the automatic license activation requires connectivity to the Cybus Portal at https://portal.cybus.io .

If this connectivity is available, an extra update of the online activation can manually be triggered in the License View. This may be needed if the license details have been upgraded from Cybus, but the Connectware does not show the updated information. Navigate to System -> License to see the License View showing the current license details.

../_images/license-view.png

To perform an online activation or renewal of the license, on the license detail view press the Refresh button, the second from right at the top. This will refresh the current license information over the Internet from the Cybus Portal.

../_images/license-refresh.png

How to perform an offline activation

If the Connectware installation does not have Internet connectivity, you need to perform an offline activation of your license. These steps are described in the following text.

Most importantly, you need to retrieve a license file from the Cybus Portal, and upload this file into the offline Connectware.

Downloading license file by installer

If the Connectware has been installed using the connectware-online-installer.sh shell script (as explained in this Cybus Learn article), the retrieval of the license file can also be performed by running this script with a different command line option --download-license-file. When using this script with this option, you need to supply the license key that was also necessary on initial Connectware installation. When calling the script, you can either specify the license key directly as command line option, or specify an installation directory on that computer where the Connectware instance is already installed.

To download the license by the script with the license key (e.g. ABCABCABC) available:

./connectware-online-installer.sh --download-license-file -k ABCABCABC

To download the license by the script if the Connectware target installation is in /opt/connectware:

./connectware-online-installer.sh --download-license-file -d /opt/connectware

In either case, the script will download the file and print the filename upon successful completion. This license file can subsequently be used to activate an offline instance of the Connectware.

Downloading license file by Portal website

Prerequisites

  • Valid username/password credentials for logging into the https://portal.cybus.io website

  • Your running Connectware instance that needs to be activated

  • A valid Connectware license key (this has to be the key that was used when the Connectware was installed)

Download license file

  1. To obtain a license file, log into portal.cybus.io with the username/password credentials provided in your activation email. If no such credentials have been issued to you yet, please contact sales@cybus.io so that we can get in contact with you.

  2. Click on the Selfhosted Appliances menu item, and click on the instance you want to activate from your list of available appliances.

../_images/portal-appliance-detail.png
  1. In this Selfhosted Applicance details page, you can download a license file but you must have your licence key of that particular appliance available for input, too. Click on the Download License File icon in the upper right corner of the page.

../_images/portal-download-license-file.png
  1. Enter the license key of that particular appliance and press Download license file.

  2. Transfer the license file to the host machine running you Connectware instance.

Upload license file into Connectware

To activate the license, you need to upload the obtained license file into your Connectware installation. The upload of the file can be performed by the Admin User Interface, or by accessing the REST endpoint using a command line client.

Using the Connectware Admin User Interface at Startup

Open a browser window for the Admin User interface. If the offline Connectware does not yet have a valid license file, the user interface will just show the activation dialog as shown below.

../_images/startup-nolicense.png

In this activation dialog, press the Upload License File button and upload the license file that has been downloaded as explained in the previous section.

After a quick refresh the license file has been uploaded and validated. Your Connectware is now ready for productive use.

Using the Connectware Admin User Interface after Startup

If you have uploaded a valid license file previously, but would like to update that file, navigate to System -> License, and press the Upload button in the top right.

../_images/license-upload-button.png

After a quick refresh the license file has been uploaded and validated. Your Connectware is now ready for productive use.

Alternatively: Using the REST endpoint with a command line client

To upload a license file directly from a shell environment you first need to install a data transfer client capable of communicating with REST endpoints. One such example tool is curl, to be used as follows:

curl -X PUT –insecure -u <USERNAME>:<PASSWORD> -d ‘payload=<LICENSE-FILE-CONTENT>’ https://<HOSTNAME>:443/api/system/licensefile

As can be seen in the example above you need to provide your user credentials (e.g. the admin username with suitable password) as well as the content of the license file as value of the property payload. The endpoint to upload the license file is located at https://<HOSTNAME>:443/api/system/licensefile .

Using the REST endpoint can be done both at first Startup or later to update the file.