How to retrieve License ID
If you can access Management Console WebUI
To retrieve your license identifier from the Management Console:
- Log in to the Management Console.
- Select Settings > Licensing.
- Locate your license identifier in the GENERAL section.
If you don't have access to your Management Console WebUI
You'll need access to the host where Management Console is installed to extract License ID from the MC database.
Warning
Make sure the MC service/daemon is down before running commands below.
Windows
- Make sure Resilio Connect Management Console service is stopped.
- Run powershell command prompt as administrator
-
Run command
Install-Module PSSqlite
, agree to install NuGet provider and confirm installation from the untrusted repository
-
Run the following one-liner
Import-Module PSSQlite; $a = ((Invoke-SqliteQuery -DataSource 'C:\ProgramData\Resilio\Connect Server\data\data.db' -Query "select settings from app_config where id=3;").settings | ConvertFrom-Json).license.TrimStart("btos1_"); $b = ([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($a)) | ConvertFrom-Json).d; ([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($b)) | ConvertFrom-Json).info.cst
Linux
- Make sure that resilio-connect-server daemon is not running.
- Install
sqlite3
command line tool in your Linux distro - Execute the following code, specify the correct path to data.db
sqlite3 "file:/home/ubuntu/resilio-connect-server/var/data/data.db?mode=ro" "select settings from app_config where id=3;" | awk -F '"' '{print $10}' | cut -c 7- | base64 -d | awk -F '"' '{print $8}' | base64 -d | awk -F '"' '{print $94}'