How to Install OAS License Host in Linux
This guide aims to walk you through the installation of the OAS License Host on a Linux host machine.
When running OAS in a virtualized environment, such as Docker or other virtualization platforms, it is not possible to license each OAS instance using the standard licensing method as licensing relies on the hardware thumbprint of the underlying host and will not work correctly in an environment where virtualized hardware is present.
The OAS License Host is a service that handles licensing in these situations. The license host must be installed either locally on the host machine (for example the machine the Docker engine is installed onto) or on a separate host that is on the same network as the containers running OAS. The OAS license is applied on the License Host by using the Configure OAS application's Container License screen.
For this guide on how to install the OAS License Host in Linux you will need:
- Access to the OAS platform installed either on the same host or on another host on the same network so that you can use the Configure OAS application.
- A supported Linux based operating system, see: System Requirements.
- Access to a user account under which the License Host service will run. This guide assumes that the username of this user is
oas
. If you are using a different username you will have to replace all instances ofoas
with your own username.
1 - Download License Host
In this section you will download and prepare the OAS License Host service for installation.
Change directory into your user's home directory. For example:
cd /home/oas
Download the OAS License Host using the following command:
wget https://filedownloads.openautomationsoftware.com/license-host/oas-linux-license-host.zip
Your output should look something like this:
Extract the
oas-linux-license-host.zip
file to the current directory. This will create a new folder calledoas-linux-license-host
.Tips
To unzip a
zip
file you might need to install the unzip utilities. In a Debain based Linux system you can do this using the following command:sudo apt-get install unzip
Move into the
oas-linux-license-host
folder.cd oas-linux-license-host
Give the
OASLicenseHost
binary the execute permission.chmod +x OASLicenseHost
2 - Create License Host Service
You will now set up a new user service called oas-license-host
to run the OAS License Host as a service. You will also enable it to start automatically on reboot.
Create a new folder for
systemd
user services.mkdir -p /home/oas/.config/systemd/user/
Create a new service definition file
oas-license-host.service
.touch /home/oas/.config/systemd/user/oas-license-host.service
Edit the service definition using your favorite text editor.
nano /home/oas/.config/systemd/user/oas-license-host.service
Paste the following definition into the
oas-license-host.service
file.[Unit] Description=Open Automation Software License Host [Service] ExecStart=/home/oas/oas-linux-license-host/OASLicenseHost WorkingDirectory=/home/oas/oas-linux-license-host SyslogIdentifier=oas-license-host PrivateTmp=false KillMode=process [Install] WantedBy=default.target
Enable the service so that it starts automatically.
systemctl --user enable oas-license-host
Start the service.
systemctl --user start oas-license-host
Check that the service is running.
systemctl --user status
3 - Configure License Host License
To configure the OAS License Host license you will need access to the Configure OAS application to view the license configuration screen. You can do this by installing the OAS platform on the same machine as the License Host, or by using another machine with OAS installed that is reachable on the same network as the License Host.
Open the Configure OAS application.
Select Configure > Container License from the top menu.
Tips
If you are accessing a License Host on a remote machine, change the Network Node field to the IP address of the License Host server.
If your license is invalid or maintenance has expired you may see a message such as this:
Click OK to continue if you see this message.
On the Container License screen copy the License Code by clicking on the COPY CODE button.
Depending on whether you wish to activate a demo license or a production license there are a number of possible scenarios:
- A - Activate a Demo or Production license using the License Key Generator
- B - Activate a Production license using Electronic Activation
- C - Activate a Demo or Production license by contacting support
A. License Key Generator
The License Key Generator is an online tool for activating demo licenses and managing production licenses where a serial number has been issued to you.
To activate a demo license
- Make sure Demo License is selected.
- Paste your license code into the License Code field.
- Enter your Email address into the Email field.
- Click on the I'm not a robot checkbox.
- Click on Generate Key to request an activation. You will receive an Email with the License Key.
Tips
You only have a limited number of activations. If you require further activations please contact your sales rep or contact support@oasiot.com.
To activate a production license
- Make sure Purchased License is selected.
- Enter your serial number into the Serial Number field.
- Paste your license code into the License Code field.
- Click on the I'm not a robot checkbox.
- Click on Generate Key to request an activation. You will receive an Email with the License Key.
B. Electronic Activation
The electronic activation method can only be used for production licenses. On the Container License screen click on the ELECTRONIC ACTIVATION button. You will be asked for the serial number that you received after purchasing a license.
Enter the serial number and click on OK. If you have available servers for activation on your license your OAS license will be activated. If you are having any issues, please contact support@oasiot.com with your serial number and license code.
C. Contact Support
If you are looking to activate a demo license, Email the license code that you copied to support@oasiot.com and request a demo license.
If you are looking to activate a production license, Email both the serial number that you received after purchasing a license and the license code that you copied to support@oasiot.com.
In both cases, the support team will review your request and provide you with the relevant License Key.
4 - Review Container License
Once your license has been activated, you can review the license details on the Configure > Container License screen. This screen will give you details about your license status and lists the enabled products and drivers.
The maintenance information section contains:
- Maintenance expiration date
- License type
- Number of tags
- Networking enabled or disabled
- Number of containers
- Serial number
The products and drivers section lists the enabled products and drivers.
You are now ready to run OAS in your Docker containers. For more details see: