It’s sometimes helpful to monitor 4D licenses on your server. That’s why with 4D v19 R4, we decided to provide you with a new command giving all the information about your license usage: Get License Usage. Let me introduce you to this new tool.
Get License Usage is a brand new command available in v19R4. It gives a list of all the 4D Client licenses used on your server with a lot of information on each of them. Here is an example of the result of this command on a server with a single user:
This example gives a lot of information. First, we see that the 4D license has been retained at 15:36, thanks to the time field. And at that time, no other license was retained, as the ProductUsedCount field is equal to 1. It also gives us information about the user (HenryDupont), the machine he logged from, and its system. The token is a unique id for each retaining of licenses that we can follow across multiple calls to Get License Usage.
We have also expanded our diagnostic logs. If you activate them, you’ll see that every time a license is retained or released a line appears in the logs:
29 2021-12-14T14:40:26.191 [LICUSAGE] INFO - License 4D Client retained (current use 1) by user HenryDupont with IP 192.168.1.2 with token 1: CLIENT ()
96 2021-12-14T14:41:06.004 [LICUSAGE] INFO - License 4D Client released (current use 0) by user HenryDupont with IP 192.168.1.2 with token 1: CLIENT ()
More importantly, an error will appear if a license is refused to a user.
By getting the license usage and these extra log lines, you’ll be able to follow the license consumption on your server, optimize your usage and plan ahead for your future needs.
We hope this new command will answer your needs, and if you have any comments, feel free to share them with us on the official 4D forum.