Symptoms:
- I am using Build Server Licenses or Floating Licenses.
- An IT admin wants to track the license usage.
- I want to know how many licenses are currently assigned.
- I want to track license usage in a date range.
Causes:
-
Resolution:
Server admins can view a full list of machines that are currently using licenses from the server by going to the http://[host]:[port]/v1/admin/lease endpoint.
The output of this API follows the JSON format so that you can parse this information to use it however you need.
You can also view license usage during a specific date range by modifying this endpoint:
http://[host]:[port]/v1/admin/audit/usage/license/floating?rangeStart=[startdate]&rangeEnd=[enddate]
Example:
http://192.168.0.1:80/v1/admin/audit/usage/license/floating?rangeStart=2022-01-01&rangeEnd=2022-01-31
More Information:
You can add admins to the server by adding the IP addresses during the server setup process or by adding additional admin IPs in the license server config manually. To do this, you need to modify the adminIpAllowlist field in licensing-server-config.json file.
You can find this file in the following locations:
Windows: %LOCALAPPDATA%\Unity\LicensingServer\config\licensing-server-config.json
Linux: ~/.config/unity3d/Unity/LicensingServer/config/licensing-server-config.json