Bug 7850 - Difficult to get current license usage
Summary: Difficult to get current license usage
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Other (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.19.0
Assignee: Frida Flodin
URL:
Keywords: relnotes, samuel_tester
Depends on:
Blocks:
 
Reported: 2022-03-02 10:50 CET by Frida Flodin
Modified: 2025-04-23 18:10 CEST (History)
2 users (show)

See Also:
Acceptance Criteria:
MUST: * tlctl must show number of currently used licenses * tlctl must show total number of available licenses SHOULD: * tlctl should show peak license usage over a certain period COULD: * tlctl could warn about unloaded licenses * tlctl could warn about invalid licenses * tlctl could warn about expiring licenses * tlctl could warn about approaching license limit * tlctl could be able to delete invalid licenses * tlctl could be able to download licenses


Attachments

Description Frida Flodin cendio 2022-03-02 10:50:58 CET
It would be nice to have a command to quickly find out how many licenses are in use. 

With `tlctl session list` you can get the total number of sessions right now and for most systems, this is equal to the number of used licenses. But this is not always true when, for example, allowing multiple sessions per user.
Comment 1 Pierre Ossman cendio 2022-03-08 12:44:21 CET
We don't currently have any convenient way to get license usage. tlwebadm only has the graphs, and no textual information. The only way is to dig around in the log files at the moment.
Comment 2 Linn cendio 2022-03-11 08:53:15 CET
It is now possible to list sessions with tlctl (bug 425) which gives a summary at the end over how many sessions were listed. This summary should in theory correspond to the number of licenses used but without any documentation highlighting it, this might not be clear to the user.
Comment 4 Frida Flodin cendio 2025-03-28 13:56:53 CET
This might not be something we want to document, but I looked closer into when vsmserver updates the license data that it uses. We currently have a timer that loads files once every 12 hours. So an admin might see different results from 'tlctl license list' even without restarting vsmserver.
Comment 5 Frida Flodin cendio 2025-03-28 14:56:55 CET
Here are some things that are left before the MUST criteria are met:
- Write new documentation for 'tlctl license show'
- Maybe refer to 'tlctl license show' in other parts of documentation?
- Write release notes
Comment 18 Linn cendio 2025-04-16 11:24:04 CEST
(In reply to Frida Flodin from comment #5)
> Here are some things that are left before the MUST criteria are met:
> - Write new documentation for 'tlctl license show'
> - Maybe refer to 'tlctl license show' in other parts of documentation?
> - Write release notes
The documentation and release notes have now been taken care of.

This bug also includes the removal of command "tl-show-licenses". This command showed the total number of ThinLinc licencses (soft limit), the hard limit for the licenses and which version of ThinLinc that was installed.

For "tlctl license show" to fully replace "tl-show-licenses", the hard limit is now also included in the tlctl command. The ThinLinc version could already be shown with "tlctl --version", so no extra implementation was needed there.
Comment 19 Linn cendio 2025-04-16 13:09:17 CEST
> MUST:
> 
> ✅ tlctl must show number of currently used licenses
> 
> ✅ tlctl must show total number of available licenses
It does. Tested running the command when a number of sessions were running, and it shows the number of licenses used and how many are available. See output below:

$ sudo tlctl license show
Current license usage: 2 concurrent user(s) out of 10 available.
Hard limit: 10 concurrent user(s).

> SHOULD:
> 
> ❌ tlctl should show peak license usage over a certain period
> 
> ❌ tlctl should show license expiration date
> 
> COULD:
> 
> ❌ tlctl could warn about unloaded licenses
> 
> ❌ tlctl could warn about invalid licenses
> 
> ❌ tlctl could warn about expiring licenses
> 
> ❌ tlctl could warn about approaching license limit
> 
> ❌ tlctl could show the maximum ThinLinc version your licenses are valid for
> 
> ❌ tlctl could be able to delete invalid licenses
> 
> ❌ tlctl could be able to download licenses
None of these features were added at this time.
Comment 21 Samuel Mannehed cendio 2025-04-21 14:24:12 CEST
> * tlctl could show the maximum ThinLinc version your licenses are valid for
This was moved to bug 8578.
Comment 22 Samuel Mannehed cendio 2025-04-21 16:06:00 CEST
> * tlctl should show license expiration date
This was moved to bug 8579.
Comment 24 Samuel Mannehed cendio 2025-04-23 18:10:25 CEST
Looks good. Tested build 4011 on Fedora 41:

 * One valid license - counted
 * Two valid licenses - counted together
 * Expired licenses (by date) - not counted
 * Old licenses (old version) - not counted
 * User sessions take up licenses

Tested both Web Admin and `tlctl license show`. Commits, release notes and documentation all look good.

Note You need to log in before you can comment on or make changes to this bug.