Skip to content

How to retrieve License ID

If you can access Management Console WebUI

To retrieve your license identifier from the Management Console:

  1. Log in to the Management Console.
  2. Select Settings > Licensing.
  3. Locate your license identifier in the GENERAL section. Mc License Id

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

  1. Make sure Resilio Connect Management Console service is stopped.
  2. Run powershell command prompt as administrator
  3. Run command Install-Module PSSqlite, agree to install NuGet provider and confirm installation from the untrusted repository
    mceclip1.png

  4. 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
    

    The output you see is the license ID:
    mceclip2.png

Linux

  1. Make sure that resilio-connect-server daemon is not running.
  2. Install sqlite3 command line tool in your Linux distro
  3. 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}'